ming commited on
Commit
ae3b1b5
·
1 Parent(s): fccbc3a

Fix Ollama host default to use 0.0.0.0 instead of localhost for container environments

Browse files
Files changed (1) hide show
  1. app/core/config.py +1 -1
app/core/config.py CHANGED
@@ -12,7 +12,7 @@ class Settings(BaseSettings):
12
 
13
  # Ollama Configuration
14
  ollama_model: str = Field(default="mistral:7b", env="OLLAMA_MODEL")
15
- ollama_host: str = Field(default="http://localhost:11434", env="OLLAMA_HOST")
16
  ollama_timeout: int = Field(default=60, env="OLLAMA_TIMEOUT", ge=1)
17
 
18
  # Server Configuration
 
12
 
13
  # Ollama Configuration
14
  ollama_model: str = Field(default="mistral:7b", env="OLLAMA_MODEL")
15
+ ollama_host: str = Field(default="http://0.0.0.0:11434", env="OLLAMA_HOST")
16
  ollama_timeout: int = Field(default=60, env="OLLAMA_TIMEOUT", ge=1)
17
 
18
  # Server Configuration