bstraehle commited on
Commit
2dca231
·
verified ·
1 Parent(s): 930a9f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -13
app.py CHANGED
@@ -14,8 +14,7 @@ AGENT_LANGCHAIN = "LangChain"
14
  AGENT_LLAMAINDEX = "LlamaIndex"
15
 
16
  config = {
17
- "model": "gpt-4o",
18
- "model_llamaindex": "gpt-4",
19
  "temperature": 0
20
  }
21
 
@@ -70,17 +69,17 @@ def invoke(openai_api_key, prompt, agent_option):
70
  finally:
71
  end_time_ms = round(time.time() * 1000)
72
 
73
- #trace_wandb(
74
- # config,
75
- # agent_option,
76
- # prompt,
77
- # completion,
78
- # result,
79
- # callback,
80
- # err_msg,
81
- # start_time_ms,
82
- # end_time_ms
83
- #)
84
 
85
  return result
86
 
 
14
  AGENT_LLAMAINDEX = "LlamaIndex"
15
 
16
  config = {
17
+ "model": "gpt-4-0613",
 
18
  "temperature": 0
19
  }
20
 
 
69
  finally:
70
  end_time_ms = round(time.time() * 1000)
71
 
72
+ trace_wandb(
73
+ config,
74
+ agent_option,
75
+ prompt,
76
+ completion,
77
+ result,
78
+ callback,
79
+ err_msg,
80
+ start_time_ms,
81
+ end_time_ms
82
+ )
83
 
84
  return result
85