Skip to content

Commit 1ec946f

Browse files
Changelog page December 6, 2024 (#89)
1 parent d2ce6c7 commit 1ec946f

File tree

4 files changed

+33
-1
lines changed

4 files changed

+33
-1
lines changed

changelog/2024-12-05.mdx renamed to fern/changelog/2024-12-05.mdx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
1. **OAuth2 Support for Custom LLM Credentials and Webhooks**: You can now secure access to your [custom LLMs](https://docs.vapi.ai/customization/custom-llm/using-your-server#step-2-configuring-vapi-with-custom-llm) and [server urls (aka webhooks)](https://docs.vapi.ai/server-url) using OAuth2 (RFC 6749). Create a webhook credential with `CreateWebhookCredentialDTO` and specify the following information.
1+
1. **OAuth2 Support for Custom LLM Credentials and Webhooks**: You can now authorize access to your [custom LLMs](https://docs.vapi.ai/customization/custom-llm/using-your-server#step-2-configuring-vapi-with-custom-llm) and [server urls (aka webhooks)](https://docs.vapi.ai/server-url) using OAuth2 (RFC 6749).
2+
3+
For example, create a webhook credential with `CreateWebhookCredentialDTO` with the following payload:
24

35
```json
46
{
@@ -13,4 +15,10 @@
1315
}
1416
```
1517

18+
This returns a [`WebhookCredential`](https://api.vapi.ai/api) object as follows:
19+
20+
<Frame caption="Refer to the `WebhookCredential` schema for more information">
21+
<img src="../static/images/changelog/webhook-credential.png" />
22+
</Frame>
23+
1624
3. **Removal of Canonical Knowledge Base**: The ability to create, update, and use canoncial knowledge bases in your assistant has been removed from the API(as custom knowledge bases and the Trieve integration supports as superset of this functionality). Please update your implementations as endpoints and models referencing canoncial knowledge base schemas are no longer available.

fern/changelog/2024-12-06.mdx

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
1. **OAuth 2 Authentication for Custom LLM Models and Webhooks**: In addition to (AuthZ)[https://www.okta.com/identity-101/authentication-vs-authorization/], you can now now authenticate users accessing your [custom LLMs](https://docs.vapi.ai/customization/custom-llm/using-your-server#step-2-configuring-vapi-with-custom-llm) and [server urls (aka webhooks)](https://docs.vapi.ai/server-url) using OAuth2 (RFC 6749). Use the `authenticationSession` dictionary which contains an `accessToken` and `expiresAt` datetime to authenticate further requests to your custom LLM or server URL.
2+
3+
For example, create a webhook credential with `CreateCustomLLMCredentialDTO` with the following payload:
4+
```json
5+
{
6+
"provider": "custom-llm",
7+
"apiKey": "your-api-key-max-10000-characters",
8+
"authenticationPlan": {
9+
"type": "oauth2",
10+
"url": "https://your-url.com/your/path/token",
11+
"clientId": "your-client-id",
12+
"clientSecret": "your-client-secret"
13+
},
14+
"name": "your-credential-name-between-1-and-40-characters"
15+
}
16+
```
17+
18+
This returns a [`CustomLLMCredential`](https://api.vapi.ai/api) object as follows:
19+
20+
<Frame caption="Refer to the `CustomLLMCredential` schema for more information">
21+
<img src="../static/images/changelog/custom-llm-credential.png" />
22+
</Frame>
23+
24+
This can be used to authenticate successive requests to your custom LLM or server URL.
286 KB
Loading
289 KB
Loading

0 commit comments

Comments
 (0)