M96820
commited on
Commit
·
f994d72
1
Parent(s):
e5013bc
feat: Sarah makes decisions in context of the story
Browse files
client/src/pages/game/App.jsx
CHANGED
|
@@ -191,7 +191,7 @@ function App() {
|
|
| 191 |
const currentChoiceIds = currentChoices.map(choice => choice.id).join(',');
|
| 192 |
await conversation.startSession({
|
| 193 |
agentId: AGENT_ID,
|
| 194 |
-
initialContext: `
|
| 195 |
});
|
| 196 |
console.log('ElevenLabs WebSocket connected');
|
| 197 |
} catch (error) {
|
|
|
|
| 191 |
const currentChoiceIds = currentChoices.map(choice => choice.id).join(',');
|
| 192 |
await conversation.startSession({
|
| 193 |
agentId: AGENT_ID,
|
| 194 |
+
initialContext: `This is the current context : ${storySegments[storySegments.length - 1].text}. Those are your possibilities : ${currentChoices.map((choice, index) => `${index + 1}: ${choice.text}`).join(', ')}`
|
| 195 |
});
|
| 196 |
console.log('ElevenLabs WebSocket connected');
|
| 197 |
} catch (error) {
|