ChatGpt Assistant id for avatar #151814
Replies: 4 comments 1 reply
-
Hey! No worries at all, we all start somewhere! 😊 You're actually pretty close to getting it working. To use your Assistant instead of the default GPT chat, you need to pass the await openAIClientRef.current.updateSession({
assistant_id: "your-assistant-id-here", // Replace with your actual assistant ID
voice: openai_voice,
turn_detection: { type: "server_vad" },
input_audio_transcription: { model: "whisper-1" },
}); This tells OpenAI to use your custom assistant instead of just responding like a regular GPT-4 chat. Hope this helps! Let me know if you have any questions. |
Beta Was this translation helpful? Give feedback.
-
Hi @zverik-a, thanks for being a part of the GitHub Community! The |
Beta Was this translation helpful? Give feedback.
-
It sounds like the RealtimeClient API doesn't have built-in support for switching assistants. You might not need to rewrite the whole project, but you’ll need to work around it. One option is to include your assistant’s behavior in your initial prompt or instructions so that it mimics your custom assistant. Alternatively, check if there's an updated version of the SDK or reach out to Simli support to see if there's a way to specify an assistant ID. |
Beta Was this translation helpful? Give feedback.
-
To add your assistant to your project in Simli, get the Assistant ID from the OpenAI dashboard. Then, update your API call by including the Assistant ID — usually by passing it in the request body or endpoint, depending on Simli’s setup. This will make the bot respond as your custom assistant instead of the default GPT. Let me know if you need help with the exact code! |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
I have a project. The meaning of the project is to say sth to the avatar and it responds with chatGPT. I have general Api of project but it answers as ordinary GPT chat. I created an assistant and i want to add it to my project at Simli. How to add an Asst id to the my project?
Beta Was this translation helpful? Give feedback.
All reactions