Rublo
01/26/2025, 1:50 PMclient.assistants.update(
id: "e00731a7-a7a3-4471-8a4b-e04f99c8bc1e",
name: update_assistant_version(assistant.name),
model: {
"provider" => "openai",
"model" => assistant.model.member.model,
"messages" => [{
"role" => "assistant",
"content" => escape_unescaped_characters(new_prompt),
}],
},
)
Although the prompt in the updated assistant is empty, even if inspecting the request in the api logs looks fineShubham Bajaj
01/27/2025, 5:06 AMRublo
01/27/2025, 3:33 PMShubham Bajaj
01/28/2025, 6:16 AMcurl -X PATCH https://api.vapi.ai/assistant/insert-your-assistant-id-here \
-H "Authorization: Bearer insert-your-assistant-id-here" \
-H "Content-Type: application/json" \
-d '{
"model": {
"provider": "openai",
"model": "gpt-4o",
"messages": [
{
"role": "system",
"content": "insert-your-system-prompt-here"
}
],
"toolIds": [],
"maxTokens": 50,
"temperature": 0,
...restOfModelConfig
}
...restOfAssistantConfig
}'
Shubham Bajaj
01/28/2025, 6:17 AM