mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-24 09:30:01 +00:00
fix: use OLLAMA_URL to activate Ollama provider in starter
This commit is contained in:
parent
b69bafba30
commit
c1151e8d81
6 changed files with 23 additions and 41 deletions
|
|
@ -19,7 +19,7 @@ providers:
|
|||
config:
|
||||
base_url: https://api.cerebras.ai
|
||||
api_key: ${env.CEREBRAS_API_KEY:=}
|
||||
- provider_id: ollama
|
||||
- provider_id: ${env.OLLAMA_URL:+ollama}
|
||||
provider_type: remote::ollama
|
||||
config:
|
||||
url: ${env.OLLAMA_URL:=http://localhost:11434}
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ providers:
|
|||
config:
|
||||
base_url: https://api.cerebras.ai
|
||||
api_key: ${env.CEREBRAS_API_KEY:=}
|
||||
- provider_id: ollama
|
||||
- provider_id: ${env.OLLAMA_URL:+ollama}
|
||||
provider_type: remote::ollama
|
||||
config:
|
||||
url: ${env.OLLAMA_URL:=http://localhost:11434}
|
||||
|
|
|
|||
|
|
@ -66,6 +66,7 @@ ENABLED_INFERENCE_PROVIDERS = [
|
|||
]
|
||||
|
||||
INFERENCE_PROVIDER_IDS = {
|
||||
"ollama": "${env.OLLAMA_URL:+ollama}",
|
||||
"vllm": "${env.VLLM_URL:+vllm}",
|
||||
"tgi": "${env.TGI_URL:+tgi}",
|
||||
"cerebras": "${env.CEREBRAS_API_KEY:+cerebras}",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue