From 8c00eb02ed2c538a860edfbe7258cfac07f3104d Mon Sep 17 00:00:00 2001 From: Quan HL Date: Mon, 14 Apr 2025 09:16:24 +0700 Subject: [PATCH] allow cmpServer configuration in LLM --- specs.json | 12 +++++++++++- test/jambonz-verb-test.js | 18 ++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/specs.json b/specs.json index 76c90ac..f73da6d 100644 --- a/specs.json +++ b/specs.json @@ -447,7 +447,8 @@ "eventHook": "object|string", "toolHook": "object|string", "events": "array", - "llmOptions": "object" + "llmOptions": "object", + "mcpServer": "#mcpServer" }, "required": [ "vendor", @@ -455,6 +456,15 @@ "llmOptions" ] }, + "mcpServer": { + "properties": { + "url": "string", + "auth": "object" + }, + "required": [ + "url" + ] + }, "message": { "properties": { "id": "string", diff --git a/test/jambonz-verb-test.js b/test/jambonz-verb-test.js index 36feed9..26256a4 100644 --- a/test/jambonz-verb-test.js +++ b/test/jambonz-verb-test.js @@ -522,6 +522,24 @@ test("validate correct verbs", async (t) => { }, "dual_streams": true, "timeLimit" : 10 + }, + { + "verb": "llm", + "vendor": 'ultravox', + "model": 'fixie-ai/ultravox', + "auth": { + "apiKey": "sk-1234567890abcdefg" + }, + "llmOptions": { + firstSpeaker: 'FIRST_SPEAKER_AGENT', + }, + "mcpServer": { + url: 'https://mcp.example.com', + auth: { + username: 'username', + password: 'password' + } + } } ]; try {