Louis
05/16/2024, 2:13 AMVapi Support
05/16/2024, 2:13 AMVapi Support
05/16/2024, 2:14 AMPLEASE DON'T RESPOND IN MORE THAN 2-3 SENTENCES. THIS IS A VOICE CONVERSATION.
This can help prevent the assistant from getting stuck in long responses [(1)]() .
2. **Use a Reliable LLM**: Consider switching to a more reliable model like GPT-4 if you're currently using a lower-tier model. Lower-tier models may hallucinate and behave unpredictably [(2)]() .
3. **Check Configuration**: Ensure your assistant's configuration is set up correctly. You can create an assistant configuration object and pass it to the .start()
method:
javascript
const assistantOptions = {
name: "Demo Assistant",
firstMessage: "Hello, how can I assist you today?",
transcriber: {
provider: "deepgram",
model: "nova-2",
language: "en-US",
},
voice: {
provider: "playht",
voiceId: "jennifer",
},
model: {
provider: "openai",
model: "gpt-4",
messages: [
{
role: "system",
content: `You are a voice assistant for a demo. Please keep responses short and to the point.`,
},
],
},
};
vapi.start(assistantOptions);
Vapi Support
05/16/2024, 2:14 AMSahil
05/16/2024, 10:25 AM