Skip to content

Commit

Permalink
feat:default ollama version
Browse files Browse the repository at this point in the history
  • Loading branch information
高广超 committed Feb 18, 2025
1 parent 977ff52 commit 2be16f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
# 使用os.getenv获取环境变量,确保Docker传递的变量优先
os.environ['WHISPER_MODEL_SIZE'] = os.getenv('WHISPER_MODEL_SIZE', 'base') # 默认值为 'base'
os.environ['OLLAMA_MODEL_NAME'] = os.getenv('OLLAMA_MODEL_NAME', 'deepseek-r1:7b') # 默认值
os.environ['OLLAMA_IP_PORT'] = os.getenv('OLLAMA_IP_PORT', 'http://192.168.3.73:11434') # 默认值
os.environ['OLLAMA_IP_PORT'] = os.getenv('OLLAMA_IP_PORT', 'http://localhost:11434') # 默认值

0 comments on commit 2be16f8

Please sign in to comment.