From 4df0bc08a133152761a1d925f4b8eb562b0f1571 Mon Sep 17 00:00:00 2001 From: stainless-bot Date: Mon, 18 Nov 2024 10:46:40 +0000 Subject: [PATCH] chore: rebuild project due to codegen change --- .../audio/test_transcriptions.py | 4 +- tests/api_resources/chat/test_completions.py | 60 ++----------------- 2 files changed, 6 insertions(+), 58 deletions(-) diff --git a/tests/api_resources/audio/test_transcriptions.py b/tests/api_resources/audio/test_transcriptions.py index 1ced07b7..a583fbc4 100644 --- a/tests/api_resources/audio/test_transcriptions.py +++ b/tests/api_resources/audio/test_transcriptions.py @@ -34,7 +34,7 @@ def test_method_create_with_all_params(self, client: Groq) -> None: prompt="prompt", response_format="json", temperature=0, - timestamp_granularities=["word", "segment"], + timestamp_granularities=["word"], ) assert_matches_type(Transcription, transcription, path=["response"]) @@ -85,7 +85,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncGroq) -> N prompt="prompt", response_format="json", temperature=0, - timestamp_granularities=["word", "segment"], + timestamp_granularities=["word"], ) assert_matches_type(Transcription, transcription, path=["response"]) diff --git a/tests/api_resources/chat/test_completions.py b/tests/api_resources/chat/test_completions.py index a8f506a5..23032f39 100644 --- a/tests/api_resources/chat/test_completions.py +++ b/tests/api_resources/chat/test_completions.py @@ -48,17 +48,7 @@ def test_method_create_with_all_params(self, client: Groq) -> None: "name": "name", "description": "description", "parameters": {"foo": "bar"}, - }, - { - "name": "name", - "description": "description", - "parameters": {"foo": "bar"}, - }, - { - "name": "name", - "description": "description", - "parameters": {"foo": "bar"}, - }, + } ], logit_bias={"foo": 0}, logprobs=True, @@ -80,23 +70,7 @@ def test_method_create_with_all_params(self, client: Groq) -> None: "parameters": {"foo": "bar"}, }, "type": "function", - }, - { - "function": { - "name": "name", - "description": "description", - "parameters": {"foo": "bar"}, - }, - "type": "function", - }, - { - "function": { - "name": "name", - "description": "description", - "parameters": {"foo": "bar"}, - }, - "type": "function", - }, + } ], top_logprobs=0, top_p=1, @@ -175,17 +149,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncGroq) -> N "name": "name", "description": "description", "parameters": {"foo": "bar"}, - }, - { - "name": "name", - "description": "description", - "parameters": {"foo": "bar"}, - }, - { - "name": "name", - "description": "description", - "parameters": {"foo": "bar"}, - }, + } ], logit_bias={"foo": 0}, logprobs=True, @@ -207,23 +171,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncGroq) -> N "parameters": {"foo": "bar"}, }, "type": "function", - }, - { - "function": { - "name": "name", - "description": "description", - "parameters": {"foo": "bar"}, - }, - "type": "function", - }, - { - "function": { - "name": "name", - "description": "description", - "parameters": {"foo": "bar"}, - }, - "type": "function", - }, + } ], top_logprobs=0, top_p=1,