Skip to content

Commit fb5296f

Browse files
authored
Zg/update next js function calling example (#233)
1 parent 5f24367 commit fb5296f

File tree

3 files changed

+32
-402
lines changed

3 files changed

+32
-402
lines changed

evi/evi-next-js-function-calling/README.md

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,15 @@ See the [Tool Use guide](https://dev.hume.ai/docs/empathic-voice-interface-evi/f
4747

4848
```json
4949
{
50-
"evi_version": "2",
50+
"evi_version": "3",
5151
"name": "Weather Assistant Config",
52+
"voice": {
53+
"name": "Male English Actor",
54+
"provider": "HUME_AI"
55+
},
5256
"language_model": {
5357
"model_provider": "ANTHROPIC",
54-
"model_resource": "claude-3-7-sonnet-latest"
58+
"model_resource": "claude-sonnet-4-5-20250929"
5559
},
5660
"tools": [
5761
{
@@ -64,15 +68,18 @@ See the [Tool Use guide](https://dev.hume.ai/docs/empathic-voice-interface-evi/f
6468
Sample cURL Request
6569

6670
```cURL
67-
curl -X POST https://api.hume.ai/v0/evi/configs \
71+
curl https://api.hume.ai/v0/evi/configs \
6872
-H "X-Hume-Api-Key: <YOUR_API_KEY>" \
69-
-H "Content-Type: application/json" \
70-
-d '{
71-
"evi_version": "2",
73+
--json '{
74+
"evi_version": "3",
7275
"name": "Weather Assistant Config",
76+
"voice": {
77+
"name": "Male English Actor",
78+
"provider": "HUME_AI"
79+
},
7380
"language_model": {
7481
"model_provider": "ANTHROPIC",
75-
"model_resource": "claude-3-7-sonnet-latest"
82+
"model_resource": "claude-sonnet-4-5-20250929"
7683
},
7784
"tools": [
7885
{

evi/evi-next-js-function-calling/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"lint": "next lint"
1111
},
1212
"dependencies": {
13-
"@humeai/voice-react": "^0.2.0",
13+
"@humeai/voice-react": "^0.2.9",
1414
"@radix-ui/react-slot": "^1.0.2",
1515
"@radix-ui/react-switch": "^1.0.3",
1616
"@radix-ui/react-toggle": "^1.0.3",
@@ -19,7 +19,7 @@
1919
"clsx": "^2.1.1",
2020
"framer-motion": "^11.2.10",
2121
"geist": "^1.3.0",
22-
"hume": "^0.11.4",
22+
"hume": "^0.15.6",
2323
"lucide-react": "^0.394.0",
2424
"next": "14.2.3",
2525
"react": "^18",

0 commit comments

Comments
 (0)