File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ class FastAPIAppContext(BaseModel):
29
29
openai_chat_model : str
30
30
openai_embed_model : str
31
31
openai_embed_dimensions : int
32
- openai_chat_deployment : str
33
- openai_embed_deployment : str
32
+ openai_chat_deployment : str | None
33
+ openai_embed_deployment : str | None
34
34
35
35
36
36
async def common_parameters ():
@@ -51,10 +51,10 @@ async def common_parameters():
51
51
openai_chat_deployment = os .getenv ("AZURE_OPENAI_CHAT_DEPLOYMENT" , "gpt-35-turbo" )
52
52
openai_chat_model = os .getenv ("AZURE_OPENAI_CHAT_MODEL" , "gpt-35-turbo" )
53
53
elif OPENAI_CHAT_HOST == "ollama" :
54
- openai_chat_deployment = "phi3:3.8b"
54
+ openai_chat_deployment = None
55
55
openai_chat_model = os .getenv ("OLLAMA_CHAT_MODEL" , "phi3:3.8b" )
56
56
else :
57
- openai_chat_deployment = "gpt-3.5-turbo"
57
+ openai_chat_deployment = None
58
58
openai_chat_model = os .getenv ("OPENAICOM_CHAT_MODEL" , "gpt-3.5-turbo" )
59
59
return FastAPIAppContext (
60
60
openai_chat_model = openai_chat_model ,
You can’t perform that action at this time.
0 commit comments