File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414 ENABLE_OLLAMA_API ,
1515 OLLAMA_BASE_URLS ,
1616 OLLAMA_API_CONFIGS ,
17+ OLLAMA_API_PROXYS ,
1718 # OpenAI
1819 ENABLE_OPENAI_API ,
1920 OPENAI_API_BASE_URLS ,
2021 OPENAI_API_KEYS ,
2122 OPENAI_API_CONFIGS ,
23+ OPENAI_API_PROXYS ,
2224 # Direct Connections
2325 ENABLE_DIRECT_CONNECTIONS ,
2426 # Model list
@@ -372,6 +374,7 @@ def init_app_config(app):
372374 app .state .config .ENABLE_OLLAMA_API = ENABLE_OLLAMA_API
373375 app .state .config .OLLAMA_BASE_URLS = OLLAMA_BASE_URLS
374376 app .state .config .OLLAMA_API_CONFIGS = OLLAMA_API_CONFIGS
377+ app .state .config .OLLAMA_API_PROXYS = OLLAMA_API_PROXYS
375378
376379 app .state .OLLAMA_MODELS = {}
377380
@@ -384,6 +387,7 @@ def init_app_config(app):
384387 app .state .config .ENABLE_OPENAI_API = ENABLE_OPENAI_API
385388 app .state .config .OPENAI_API_BASE_URLS = OPENAI_API_BASE_URLS
386389 app .state .config .OPENAI_API_KEYS = OPENAI_API_KEYS
390+ app .state .config .OPENAI_API_PROXYS = OPENAI_API_PROXYS
387391 app .state .config .OPENAI_API_CONFIGS = OPENAI_API_CONFIGS
388392
389393 app .state .OPENAI_MODELS = {}
You can’t perform that action at this time.
0 commit comments