Skip to content

Conversation

@quantstruct-bot
Copy link
Collaborator

  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 and server urls (aka webhooks) 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.

For example, create a webhook credential with CreateCustomLLMCredentialDTO with the following payload:

{
    "provider": "custom-llm",
    "apiKey": "your-api-key-max-10000-characters",
    "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"
}

This returns a CustomLLMCredential object as follows:

custom-llm-credential

This can be used to authenticate successive requests to your custom LLM or server URL.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 6, 2024

@nikhilro nikhilro merged commit 1ec946f into main Dec 8, 2024
1 of 4 checks passed
@quantstruct-bot quantstruct-bot deleted the changelog branch December 9, 2024 19:23
skeptrunedev referenced this pull request in devflowinc/vapi-docs Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants