mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-10 22:41:41 +00:00
fix llm responses
This commit is contained in:
parent
1a56bb5bdd
commit
bbf1962540
1 changed files with 7 additions and 2 deletions
|
|
@ -44,5 +44,10 @@ async def test_mcp_agent():
|
|||
print("LLM RESPONSE: ", json.dumps(llm_response, indent=4, default=str))
|
||||
|
||||
# Add assertions to verify the response
|
||||
assert isinstance(llm_response, dict)
|
||||
print(llm_response)
|
||||
assert llm_response["choices"][0]["message"]["tool_calls"] is not None
|
||||
assert (
|
||||
llm_response["choices"][0]["message"]["tool_calls"][0]["function"][
|
||||
"name"
|
||||
]
|
||||
== "add"
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue