Cannot update Custom LLM API Key to a new OpenAI A...
# support
c
Hi, In the past, I use an OpenAI API Key as the Custom LLM API Key and it works well for the OpenAI fine-tuned models. Now the old key expires, so I try to update Custom LLM API Key with a new key, but always get the attached error. This new key can be used by other apps, including VAPI's OpenAI API Key settings, but will always cause problem when using as the Custom LLM API Key. Please help. https://cdn.discordapp.com/attachments/1412092951642898463/1412092952330633266/image.png?ex=68b7098b&is=68b5b80b&hm=77f4ffcefe5650bd2b99bbc82e6f90f2ae0e6b0ca6ab3b06806ff70c74717924&
Can anyone help on this issue?
c
Hi ccw, To update the API key for your Custom LLM, ensure that you follow the correct payload structure for your API request. Here is an outline you can use, based on the [December 6, 2024 changelog](https://docs.vapi.ai/changelog/2024/12/6):
Copy code
json
{
    "provider": "custom-llm",
    "apiKey": "your-new-api-key",
    "authenticationPlan": {
        "type": "oauth2",
        "url": "https://your-url.com/your/path/token",
        "clientId": "your-client-id",
        "clientSecret": "your-client-secret"
    },
    "name": "your-credential-name-between-1-and-40-characters"
}
Check that the JSON structure matches your configuration and all fields are correctly populated with your parameters. If the issue persists, ensure there are no additional errors in your input, such as misplaced characters or incorrect field names. If you are still encountering issues, it may help to verify any error messages for specific insights into the problem.
c
How to update via your dashboard? Previously I update the key via your dashboard successfully. And it does not require to input the infor in "authenticationPlan" section.
c
If you would like to update your API key for your custom LLM, please use the integrations page: . Let us know if you need further support
2 Views