mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
test: fix test - handle llm api inconsistency
This commit is contained in:
parent
6c51bdebe7
commit
47a18285f1
1 changed files with 3 additions and 2 deletions
|
@ -1062,6 +1062,7 @@ class BaseAnthropicChatTest(ABC):
|
|||
**base_completion_call_args, **args, stream=False
|
||||
)
|
||||
|
||||
assert json.loads(built_response.choices[0].message.content) == json.loads(
|
||||
non_stream_response.choices[0].message.content
|
||||
assert (
|
||||
json.loads(built_response.choices[0].message.content).keys()
|
||||
== json.loads(non_stream_response.choices[0].message.content).keys()
|
||||
), f"Got={json.loads(built_response.choices[0].message.content)}, Expected={json.loads(non_stream_response.choices[0].message.content)}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue