fix: Fix chat completions tests (#1442)

This commit is contained in:
Matthew Zhou
2025-03-27 15:45:23 -07:00
committed by GitHub
parent acd0a525aa
commit ba19e7f3ba
2 changed files with 2 additions and 2 deletions

View File

@@ -10,7 +10,7 @@ class OptimisticJSONParser:
tries to tolerate incomplete strings and incomplete numbers.
"""
def __init__(self, strict=True):
def __init__(self, strict=False):
self.strict = strict
self.parsers = {
" ": self.parse_space,

View File

@@ -115,7 +115,7 @@ def agent(client, roll_dice_tool, weather_tool):
agent_state = client.create_agent(
name=f"test_compl_{str(uuid.uuid4())[5:]}",
tool_ids=[roll_dice_tool.id, weather_tool.id],
include_base_tools=False,
include_base_tools=True,
)
yield agent_state
client.delete_agent(agent_state.id)