mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-12 20:12:33 +00:00
fix: Update embedding model key format in GeminiInferenceAdapter
Changed the embedding model key from "text-embedding-004" to "models/text-embedding-004" in the GeminiInferenceAdapter class to align with the new model structure.
This commit is contained in:
parent
ef4bc70bbe
commit
b155f92355
1 changed files with 1 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ class GeminiInferenceAdapter(OpenAIMixin):
|
||||||
|
|
||||||
provider_data_api_key_field: str = "gemini_api_key"
|
provider_data_api_key_field: str = "gemini_api_key"
|
||||||
embedding_model_metadata: dict[str, dict[str, int]] = {
|
embedding_model_metadata: dict[str, dict[str, int]] = {
|
||||||
"text-embedding-004": {"embedding_dimension": 768, "context_length": 2048},
|
"models/text-embedding-004": {"embedding_dimension": 768, "context_length": 2048},
|
||||||
}
|
}
|
||||||
|
|
||||||
def get_base_url(self):
|
def get_base_url(self):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue