From a91771f03466939ba18811680a4833dfecb666a0 Mon Sep 17 00:00:00 2001 From: Xi Yan Date: Thu, 13 Mar 2025 17:36:21 -0700 Subject: [PATCH] fix --- docs/_static/llama-stack-spec.html | 28 ++++++++++++++++++++++++- docs/_static/llama-stack-spec.yaml | 11 ++++++++++ llama_stack/apis/providers/providers.py | 3 ++- 3 files changed, 40 insertions(+), 2 deletions(-) diff --git a/docs/_static/llama-stack-spec.html b/docs/_static/llama-stack-spec.html index 71a80ff81..4a0d7aef4 100644 --- a/docs/_static/llama-stack-spec.html +++ b/docs/_static/llama-stack-spec.html @@ -7972,13 +7972,39 @@ }, "provider_type": { "type": "string" + }, + "config": { + "type": "object", + "additionalProperties": { + "oneOf": [ + { + "type": "null" + }, + { + "type": "boolean" + }, + { + "type": "number" + }, + { + "type": "string" + }, + { + "type": "array" + }, + { + "type": "object" + } + ] + } } }, "additionalProperties": false, "required": [ "api", "provider_id", - "provider_type" + "provider_type", + "config" ], "title": "ProviderInfo" }, diff --git a/docs/_static/llama-stack-spec.yaml b/docs/_static/llama-stack-spec.yaml index 436beaad4..73ca34763 100644 --- a/docs/_static/llama-stack-spec.yaml +++ b/docs/_static/llama-stack-spec.yaml @@ -5448,11 +5448,22 @@ components: type: string provider_type: type: string + config: + type: object + additionalProperties: + oneOf: + - type: 'null' + - type: boolean + - type: number + - type: string + - type: array + - type: object additionalProperties: false required: - api - provider_id - provider_type + - config title: ProviderInfo InvokeToolRequest: type: object diff --git a/llama_stack/apis/providers/providers.py b/llama_stack/apis/providers/providers.py index 51526c1c9..de947d4ba 100644 --- a/llama_stack/apis/providers/providers.py +++ b/llama_stack/apis/providers/providers.py @@ -4,7 +4,7 @@ # This source code is licensed under the terms described in the LICENSE file in # the root directory of this source tree. -from typing import List, Optional, Protocol, runtime_checkable +from typing import Any, Dict, List, Optional, Protocol, runtime_checkable from pydantic import BaseModel @@ -16,6 +16,7 @@ class ProviderInfo(BaseModel): api: str provider_id: str provider_type: str + config: Dict[str, Any] class ListProvidersResponse(BaseModel):