Gpt-3.5-turbo api front end code for chatbot

Help needed please

I have set up an api from openai for gpt-3.5-turbo. The back end code is working fine but I can’t seem to get the frontend code to work to embed it onto my home page.

I’m trying to replicate a chat appearance using a text input and a repeater with text wrappers to display the user prompts and ai response in sequence.

The problem I have is that I can get the repeater to display the user input text but I can’t get the ai response to appear.

Has anyone achieved this who would be happy to share their code?

1 Like

Share the frontend code and people may be able to help you.

Thanks anthony, the issue has evolved since I put this post on so I have made a new post with the code I’m currently using to see if anyone can help.

2 Likes