mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-01 16:24:44 +00:00
add expires_at
This commit is contained in:
parent
9a017ba605
commit
e4a7f482de
3 changed files with 12 additions and 1 deletions
7
docs/_static/llama-stack-spec.html
vendored
7
docs/_static/llama-stack-spec.html
vendored
|
@ -6797,6 +6797,10 @@
|
||||||
},
|
},
|
||||||
"token": {
|
"token": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
|
},
|
||||||
|
"expires_at": {
|
||||||
|
"type": "string",
|
||||||
|
"format": "date-time"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
|
@ -6804,7 +6808,8 @@
|
||||||
"credential_id",
|
"credential_id",
|
||||||
"provider_id",
|
"provider_id",
|
||||||
"token_type",
|
"token_type",
|
||||||
"token"
|
"token",
|
||||||
|
"expires_at"
|
||||||
],
|
],
|
||||||
"title": "ProviderCredential"
|
"title": "ProviderCredential"
|
||||||
},
|
},
|
||||||
|
|
4
docs/_static/llama-stack-spec.yaml
vendored
4
docs/_static/llama-stack-spec.yaml
vendored
|
@ -4815,12 +4815,16 @@ components:
|
||||||
description: The type of credential token.
|
description: The type of credential token.
|
||||||
token:
|
token:
|
||||||
type: string
|
type: string
|
||||||
|
expires_at:
|
||||||
|
type: string
|
||||||
|
format: date-time
|
||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
required:
|
required:
|
||||||
- credential_id
|
- credential_id
|
||||||
- provider_id
|
- provider_id
|
||||||
- token_type
|
- token_type
|
||||||
- token
|
- token
|
||||||
|
- expires_at
|
||||||
title: ProviderCredential
|
title: ProviderCredential
|
||||||
OpenAIResponseInput:
|
OpenAIResponseInput:
|
||||||
oneOf:
|
oneOf:
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
# This source code is licensed under the terms described in the LICENSE file in
|
# This source code is licensed under the terms described in the LICENSE file in
|
||||||
# the root directory of this source tree.
|
# the root directory of this source tree.
|
||||||
|
|
||||||
|
from datetime import datetime
|
||||||
from enum import Enum
|
from enum import Enum
|
||||||
from typing import Protocol, runtime_checkable
|
from typing import Protocol, runtime_checkable
|
||||||
|
|
||||||
|
@ -30,6 +31,7 @@ class ProviderCredential(BaseModel):
|
||||||
provider_id: str
|
provider_id: str
|
||||||
token_type: CredentialTokenType
|
token_type: CredentialTokenType
|
||||||
token: str
|
token: str
|
||||||
|
expires_at: datetime
|
||||||
|
|
||||||
|
|
||||||
@runtime_checkable
|
@runtime_checkable
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue