Skip to content

Commit e2e42c8

Browse files
authored
chore: remove duplicate OpenAI and Gemini data validators (#3513)
# What does this PR do? removes the duplicate OpenAI/GeminiProviderDataValidator the active ones are in config.pys ## Test Plan ci
1 parent 0e43be3 commit e2e42c8

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

llama_stack/providers/remote/inference/gemini/__init__.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,9 @@
44
# This source code is licensed under the terms described in the LICENSE file in
55
# the root directory of this source tree.
66

7-
from pydantic import BaseModel
8-
97
from .config import GeminiConfig
108

119

12-
class GeminiProviderDataValidator(BaseModel):
13-
gemini_api_key: str | None = None
14-
15-
1610
async def get_adapter_impl(config: GeminiConfig, _deps):
1711
from .gemini import GeminiInferenceAdapter
1812

llama_stack/providers/remote/inference/openai/__init__.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,9 @@
44
# This source code is licensed under the terms described in the LICENSE file in
55
# the root directory of this source tree.
66

7-
from pydantic import BaseModel
8-
97
from .config import OpenAIConfig
108

119

12-
class OpenAIProviderDataValidator(BaseModel):
13-
openai_api_key: str | None = None
14-
15-
1610
async def get_adapter_impl(config: OpenAIConfig, _deps):
1711
from .openai import OpenAIInferenceAdapter
1812

0 commit comments

Comments
 (0)