noah007 commited on
Commit
6ce25ea
·
verified ·
1 Parent(s): 94e14bd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -134,7 +134,7 @@ with gr.Blocks() as demo:
134
  "api_base": "",
135
  "api_type": "azure",
136
  "api_version": "2023-07-01-preview",
137
- "model": "gpt-35-turbo",
138
  }
139
  ]
140
  ),
@@ -164,7 +164,7 @@ with gr.Blocks() as demo:
164
  def update_config(config_list):
165
  global assistant, ragproxyagent
166
  config_list = autogen.config_list_from_models(
167
- model_list=[os.environ.get("MODEL", "gpt-35-turbo")],
168
  )
169
  if not config_list:
170
  config_list = [
@@ -173,7 +173,7 @@ with gr.Blocks() as demo:
173
  "api_base": "",
174
  "api_type": "azure",
175
  "api_version": "2023-07-01-preview",
176
- "model": "gpt-35-turbo",
177
  }
178
  ]
179
  llm_config = (
@@ -198,11 +198,10 @@ with gr.Blocks() as demo:
198
  label="Model",
199
  choices=[
200
  "gpt-4",
201
- "gpt-35-turbo",
202
  "gpt-3.5-turbo",
203
  ],
204
  allow_custom_value=True,
205
- value="gpt-35-turbo",
206
  container=True,
207
  )
208
  txt_oai_key = gr.Textbox(
 
134
  "api_base": "",
135
  "api_type": "azure",
136
  "api_version": "2023-07-01-preview",
137
+ "model": "gpt-3.5-turbo",
138
  }
139
  ]
140
  ),
 
164
  def update_config(config_list):
165
  global assistant, ragproxyagent
166
  config_list = autogen.config_list_from_models(
167
+ model_list=[os.environ.get("MODEL", "gpt-3.5-turbo")],
168
  )
169
  if not config_list:
170
  config_list = [
 
173
  "api_base": "",
174
  "api_type": "azure",
175
  "api_version": "2023-07-01-preview",
176
+ "model": "gpt-3.5-turbo",
177
  }
178
  ]
179
  llm_config = (
 
198
  label="Model",
199
  choices=[
200
  "gpt-4",
 
201
  "gpt-3.5-turbo",
202
  ],
203
  allow_custom_value=True,
204
+ value="gpt-3.5-turbo",
205
  container=True,
206
  )
207
  txt_oai_key = gr.Textbox(