mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-27 21:21:59 +00:00
add context to distinguish multiple credentials for the same (user, provider)
This commit is contained in:
parent
b43cdaaed5
commit
f6fb4a5865
3 changed files with 23 additions and 3 deletions
11
docs/_static/llama-stack-spec.yaml
vendored
11
docs/_static/llama-stack-spec.yaml
vendored
|
|
@ -394,7 +394,8 @@ paths:
|
|||
tags:
|
||||
- Credentials
|
||||
description: >-
|
||||
Create a new set of credentials for a given provider.
|
||||
Create a new set of credentials for a given provider. The unique key is (provider_id,
|
||||
context)
|
||||
parameters: []
|
||||
requestBody:
|
||||
content:
|
||||
|
|
@ -4787,6 +4788,14 @@ components:
|
|||
The time to live for the credential in seconds. Defaults to 3600 seconds.
|
||||
When token_type is oauth2_authorization_code, the TTL is ignored and is
|
||||
obtained from the provider when exchanging the code for an access token.
|
||||
context:
|
||||
type: object
|
||||
additionalProperties:
|
||||
type: string
|
||||
description: >-
|
||||
Context to distinguish between different credentials for the same provider.
|
||||
For example, for the MCP provider, this could be the toolgroup_id (which
|
||||
corresponds to a unique MCP endpoint).
|
||||
additionalProperties: false
|
||||
required:
|
||||
- provider_id
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue