mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-07-30 07:39:38 +00:00
fix: litellm_provider_name for llama-api (#2934)
litellm uses "meta_llama" for the provider name, see https://docs.litellm.ai/docs/providers/meta_llama ad https://github.com/BerriAI/litellm/blob/main/litellm/__init__.py#L833
This commit is contained in:
parent
09abdb0a37
commit
3c40c8e583
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ class LlamaCompatInferenceAdapter(OpenAIMixin, LiteLLMOpenAIMixin):
|
||||||
LiteLLMOpenAIMixin.__init__(
|
LiteLLMOpenAIMixin.__init__(
|
||||||
self,
|
self,
|
||||||
model_entries=MODEL_ENTRIES,
|
model_entries=MODEL_ENTRIES,
|
||||||
litellm_provider_name="llama",
|
litellm_provider_name="meta_llama",
|
||||||
api_key_from_config=config.api_key,
|
api_key_from_config=config.api_key,
|
||||||
provider_data_api_key_field="llama_api_key",
|
provider_data_api_key_field="llama_api_key",
|
||||||
openai_compat_api_base=config.openai_compat_api_base,
|
openai_compat_api_base=config.openai_compat_api_base,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue