mirror of
https://github.com/microsoft/autogen.git
synced 2025-12-29 16:09:07 +00:00
parent
e1da7f7d68
commit
8760631349
@ -11,7 +11,7 @@ def test_gpt35(human_input_mode="NEVER", max_consecutive_auto_reply=5):
|
||||
import openai
|
||||
except ImportError:
|
||||
return
|
||||
config_list = oai.config_list_from_models(key_file_path=KEY_LOC, model_list=["gpt-3.5-turbo-0613"])
|
||||
config_list = oai.config_list_from_models(key_file_path=KEY_LOC, model_list=["gpt-3.5-turbo-0613"], exclude="aoai")
|
||||
assistant = AssistantAgent(
|
||||
"coding_agent",
|
||||
# request_timeout=600,
|
||||
|
||||
@ -21,7 +21,8 @@ def test_eval_math_responses():
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"responses": {
|
||||
"type": "string",
|
||||
"type": "array",
|
||||
"items": {"type": "string"},
|
||||
"description": "The responses in a list",
|
||||
},
|
||||
"solution": {
|
||||
@ -51,8 +52,8 @@ def test_eval_math_responses():
|
||||
name, arguments = function_call["name"], json.loads(function_call["arguments"])
|
||||
assert name == "eval_math_responses"
|
||||
print(arguments["responses"])
|
||||
if isinstance(arguments["responses"], str):
|
||||
arguments["responses"] = json.loads(arguments["responses"])
|
||||
# if isinstance(arguments["responses"], str):
|
||||
# arguments["responses"] = json.loads(arguments["responses"])
|
||||
arguments["responses"] = [f"\\boxed{{{x}}}" for x in arguments["responses"]]
|
||||
print(arguments["responses"])
|
||||
arguments["solution"] = f"\\boxed{{{arguments['solution']}}}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user