Towhidul commited on
Commit
226a83a
·
verified ·
1 Parent(s): 3e40bd6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -1
app.py CHANGED
@@ -320,7 +320,18 @@ def main():
320
  model_options = ["gpt-4o", "gpt-4o-mini"]
321
  selected_model = st.selectbox("Choose a GPT model", model_options)
322
 
323
- llm = ChatOpenAI(
 
 
 
 
 
 
 
 
 
 
 
324
  model=selected_model,#"gpt-4o-mini",
325
  temperature=0,
326
  max_tokens=None,
 
320
  model_options = ["gpt-4o", "gpt-4o-mini"]
321
  selected_model = st.selectbox("Choose a GPT model", model_options)
322
 
323
+ # llm = ChatOpenAI(
324
+ # model=selected_model,#"gpt-4o-mini",
325
+ # temperature=0,
326
+ # max_tokens=None,
327
+ # timeout=None,
328
+ # max_retries=2,
329
+ # api_key=os.getenv("OPENAI_API_KEY"), # if you prefer to pass api key in directly instaed of using env vars
330
+ # # base_url="...",
331
+ # # organization="...",
332
+ # # other params...
333
+ # )
334
+ llm = OpenAI(
335
  model=selected_model,#"gpt-4o-mini",
336
  temperature=0,
337
  max_tokens=None,