|
| 1 | +## New Query Tool and Vapi Voice Provider, Updates to Language Support and Error Handling |
| 2 | + |
| 3 | +1. **New Query Tool Feature and Knowledge Base Integration** |
| 4 | + |
| 5 | +* The API now supports a new query tool that allows assistants to search through knowledge bases. Add this tool to any assistant model by configuring it at `assistant.model.tools[type=query]` path. |
| 6 | +* You can now link knowledge bases to query tools, providing structured information sources for assistants to access. Define knowledge bases with a name, model, provider, description, and associated file IDs. |
| 7 | + |
| 8 | +<Accordion title='Example configuration for [`QueryTool`](https://api.vapi.ai/api#:~:text=QueryTool)'> |
| 9 | +```json |
| 10 | +{ |
| 11 | + "type": "query", |
| 12 | + "async": false, |
| 13 | + "server": { |
| 14 | + "url": "https://api.example.com/query-handler" |
| 15 | + }, |
| 16 | + "function": { |
| 17 | + "name": "query_knowledge", |
| 18 | + "description": "Query knowledge bases for information", |
| 19 | + "parameters": { |
| 20 | + "type": "object", |
| 21 | + "properties": { |
| 22 | + "query": { |
| 23 | + "type": "string", |
| 24 | + "description": "The query to search for" |
| 25 | + } |
| 26 | + }, |
| 27 | + "required": ["query"] |
| 28 | + } |
| 29 | + }, |
| 30 | + "knowledgeBases": [ |
| 31 | + { |
| 32 | + "name": "Product Documentation", |
| 33 | + "model": "gemini-1.5-flash", |
| 34 | + "provider": "google", |
| 35 | + "description": "Contains all product manuals", |
| 36 | + "fileIds": ["file-123", "file-456"] |
| 37 | + } |
| 38 | + ] |
| 39 | +} |
| 40 | +``` |
| 41 | +</Accordion> |
| 42 | + |
| 43 | + |
| 44 | +2. **New Voice Provider Support** |
| 45 | + |
| 46 | +A new voice provider "vapi" has been added with support for a voice called "Jordan" in [`FallbackVapiVoice`](https://api.vapi.ai/api#:~:text=FallbackVapiVoice). Configure it in our assistant fallback plans at `assistant.voice.fallbackPlan.voices`. |
| 47 | + |
| 48 | +<Frame caption="Vapi Voice Provider"> |
| 49 | + <img src="../static/images/changelog/vapi-voice-configuration.png" alt="Vapi Voice Provider" /> |
| 50 | +</Frame> |
| 51 | + |
| 52 | +3. **Language Support Updates** |
| 53 | + |
| 54 | +Myanmar language ("my") has been added to supported languages, while "jp" and "mymr" codes have been removed. Use "ja" for Japanese language and "my" for Myanmar. Reference [`GladiaTranscriber`](https://api.vapi.ai/api#:~:text=GladiaTranscriber) for more language codes. |
| 55 | + |
| 56 | +4. **Error Handling Improvements** |
| 57 | + |
| 58 | +Added new error code `pipeline-error-11labs-transcriber-failed` for `ServerMessageStatusUpdate.endedReason` and `ServerMessageEndOfCallReport.endedReason`. Also added an explicit `failed` status for test suite runs in [`TestSuiteRun`](https://api.vapi.ai/api#:~:text=TestSuiteRun). These additions provide more detailed error reporting. |
| 59 | + |
| 60 | +5. **Azure OpenAI Model Update** |
| 61 | + |
| 62 | +The model `gpt-4o-2024-08-06-ptu` has been removed from Azure OpenAI credential schemas. Update any credential configurations that were using this model. |
0 commit comments