Skip to content

Commit 7418acd

Browse files
committed
Refactored the message rendering to fix race condition on assistant message
1 parent 821dd23 commit 7418acd

File tree

9 files changed

+429
-299
lines changed

9 files changed

+429
-299
lines changed

example/src/App.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,9 @@ function App() {
4545
assistant: {
4646
model: {
4747
provider: 'openai',
48-
model: 'gpt-4o-mini',
48+
model: 'gpt-4.1-nano',
4949
messages: [{ role: 'system', content: 'You are a helpful assistant.' }],
5050
},
51-
voice: {
52-
provider: '11labs',
53-
voiceId: 'burt',
54-
},
5551
},
5652
});
5753

example/src/components/builder/VapiConfigurationSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ const VapiConfigurationSection: React.FC<VapiConfigurationSectionProps> = ({
125125
onChange={(e) => handleAssistantObjectChange(e.target.value)}
126126
rows={12}
127127
className="w-full p-2 rounded-md border bg-white border-gray-300 text-gray-900 font-mono text-sm"
128-
placeholder='{"model": {"provider": "openai", "model": "gpt-3.5-turbo"}, "voice": {"provider": "11labs", "voiceId": "burt"}}'
128+
placeholder='{"model": {"provider": "openai", "model": "gpt-4-1-mini"}}'
129129
/>
130130
<p className="text-xs mt-1 text-gray-500">
131131
Complete assistant configuration object (only used for voice calls)

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@
6868
],
6969
"license": "",
7070
"peerDependencies": {
71+
"@vapi-ai/web": "^2.3.7",
7172
"react": ">=16.8.0",
72-
"react-dom": ">=16.8.0",
73-
"@vapi-ai/web": "^2.3.7"
73+
"react-dom": ">=16.8.0"
7474
},
7575
"devDependencies": {
7676
"@playwright/test": "^1.53.1",

0 commit comments

Comments
 (0)