chore(groq): fix integration tests (#33478)

- add missing cassette
- update streaming metadata test for v1
This commit is contained in:
ccurme
2025-10-14 10:16:34 -04:00
committed by GitHub
parent 9105573cb3
commit 41fe18bc80
2 changed files with 3 additions and 1 deletions

View File

@@ -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 = (