I am trying to make a request to create call in va...
# support
r
I am also adding a custom knowledge base to assistant overrides like below assistantOverrides": { "model": { "provider": "anyscale", "model": "", ...other required fields "knowledgeBase": { "server": { "url": "/api/v1/knowledge-base/query" } } } } Upon calling this, I am getting error message below assistantOverrides.model.each value in knowledgeBase.an unknown value was passed to the validate function According to docs, I think I am sending the right structure. If I remove the
knowledgeBase
object from overrides, the call goes through normally. What am I doing wrong here. I am tried creating a custom knowledge base first using create knowledge base endpoint, but the create call still throws same error
p
Hey! To help track down this issue, could you share: - The call ID This would really help us figure out what went wrong!
r
Thanks. So I was able to fix it by simply passing in the
provider
key to be
custom-knowledge-base
. This is something which is missing from the docs here https://docs.vapi.ai/api-reference/calls/create#request.body.assistantOverrides.model.openai.knowledgeBase. It only states to add server.url as required key under knowledgeBase
p
Thanks Ravi for sharing the feedback regarding the docs. I will make sure that docs get updated with the provider's custom knowledge base type required.