mirror of
https://github.com/hwchase17/langchain.git
synced 2026-03-18 11:07:36 +00:00
chore(groq): fix integration tests (#33478)
- add missing cassette - update streaming metadata test for v1
This commit is contained in:
BIN
libs/partners/groq/tests/cassettes/test_code_interpreter.yaml.gz
Normal file
BIN
libs/partners/groq/tests/cassettes/test_code_interpreter.yaml.gz
Normal file
Binary file not shown.
@@ -111,7 +111,9 @@ async def test_astream() -> None:
|
||||
full = token if full is None else full + token
|
||||
if token.usage_metadata is not None:
|
||||
chunks_with_token_counts += 1
|
||||
if token.response_metadata:
|
||||
if token.response_metadata and not set(token.response_metadata.keys()).issubset(
|
||||
{"model_provider", "output_version"}
|
||||
):
|
||||
chunks_with_response_metadata += 1
|
||||
if chunks_with_token_counts != 1 or chunks_with_response_metadata != 1:
|
||||
msg = (
|
||||
|
||||
Reference in New Issue
Block a user