From 007affd05241ff20e3c18c3523015c7a236dc9dd Mon Sep 17 00:00:00 2001 From: Stainless Bot Date: Tue, 27 Aug 2024 15:42:21 +0000 Subject: [PATCH] feat(api): OpenAPI spec update via Stainless API (#115) --- .devcontainer/Dockerfile | 0 .devcontainer/devcontainer.json | 0 .github/workflows/ci.yml | 0 .github/workflows/publish-pypi.yml | 0 .github/workflows/release-doctor.yml | 0 .gitignore | 0 .python-version | 0 .release-please-manifest.json | 0 .stats.yml | 2 +- Brewfile | 0 CHANGELOG.md | 0 CODEOWNERS | 0 CONTRIBUTING.md | 0 LICENSE | 0 README.md | 0 SECURITY.md | 0 api.md | 0 bin/check-release-environment | 0 bin/publish-pypi | 0 examples/.keep | 0 examples/chat_completion.py | 0 examples/chat_completion_async.py | 0 examples/chat_completion_async_streaming.py | 0 examples/chat_completion_stop.py | 0 examples/chat_completion_streaming.py | 0 mypy.ini | 0 noxfile.py | 0 pyproject.toml | 0 release-please-config.json | 0 requirements-dev.lock | 0 requirements.lock | 0 scripts/utils/ruffen-docs.py | 0 src/groq/__init__.py | 0 src/groq/_base_client.py | 0 src/groq/_client.py | 0 src/groq/_compat.py | 0 src/groq/_constants.py | 0 src/groq/_exceptions.py | 0 src/groq/_files.py | 0 src/groq/_models.py | 0 src/groq/_qs.py | 0 src/groq/_resource.py | 0 src/groq/_response.py | 0 src/groq/_streaming.py | 0 src/groq/_types.py | 0 src/groq/_utils/__init__.py | 0 src/groq/_utils/_logs.py | 0 src/groq/_utils/_proxy.py | 0 src/groq/_utils/_reflection.py | 0 src/groq/_utils/_streams.py | 0 src/groq/_utils/_sync.py | 0 src/groq/_utils/_transform.py | 0 src/groq/_utils/_typing.py | 0 src/groq/_utils/_utils.py | 0 src/groq/_version.py | 0 src/groq/lib/.keep | 0 src/groq/py.typed | 0 src/groq/resources/__init__.py | 0 src/groq/resources/audio/__init__.py | 0 src/groq/resources/audio/audio.py | 0 src/groq/resources/audio/transcriptions.py | 2 -- src/groq/resources/audio/translations.py | 0 src/groq/resources/chat/__init__.py | 0 src/groq/resources/chat/chat.py | 0 src/groq/resources/chat/completions.py | 14 -------------- src/groq/resources/embeddings.py | 0 src/groq/resources/models.py | 0 src/groq/types/__init__.py | 0 src/groq/types/audio/__init__.py | 0 src/groq/types/audio/transcription.py | 0 .../types/audio/transcription_create_params.py | 1 - src/groq/types/audio/translation.py | 0 src/groq/types/audio/translation_create_params.py | 0 src/groq/types/chat/__init__.py | 0 src/groq/types/chat/chat_completion.py | 0 .../chat_completion_assistant_message_param.py | 3 --- .../chat_completion_content_part_image_param.py | 0 .../chat/chat_completion_content_part_param.py | 0 .../chat_completion_content_part_text_param.py | 0 .../chat_completion_function_call_option_param.py | 0 .../chat/chat_completion_function_message_param.py | 3 --- src/groq/types/chat/chat_completion_message.py | 0 .../types/chat/chat_completion_message_param.py | 0 .../chat/chat_completion_message_tool_call.py | 0 .../chat_completion_message_tool_call_param.py | 0 .../chat_completion_named_tool_choice_param.py | 0 src/groq/types/chat/chat_completion_role.py | 0 .../chat/chat_completion_system_message_param.py | 4 ---- .../types/chat/chat_completion_token_logprob.py | 0 .../chat_completion_tool_choice_option_param.py | 0 .../chat/chat_completion_tool_message_param.py | 3 --- src/groq/types/chat/chat_completion_tool_param.py | 0 .../chat/chat_completion_user_message_param.py | 5 +---- src/groq/types/chat/completion_create_params.py | 10 +--------- src/groq/types/completion_usage.py | 0 src/groq/types/create_embedding_response.py | 0 src/groq/types/embedding.py | 0 src/groq/types/embedding_create_params.py | 0 src/groq/types/model.py | 0 src/groq/types/model_deleted.py | 0 src/groq/types/model_list_response.py | 0 src/groq/types/shared/__init__.py | 0 src/groq/types/shared/error_object.py | 0 src/groq/types/shared/function_definition.py | 0 src/groq/types/shared/function_parameters.py | 0 src/groq/types/shared_params/__init__.py | 0 .../types/shared_params/function_definition.py | 0 .../types/shared_params/function_parameters.py | 0 tests/__init__.py | 0 tests/api_resources/__init__.py | 0 tests/api_resources/audio/__init__.py | 0 tests/api_resources/audio/test_transcriptions.py | 0 tests/api_resources/audio/test_translations.py | 0 tests/api_resources/chat/__init__.py | 0 tests/api_resources/chat/test_completions.py | 4 ---- tests/api_resources/test_embeddings.py | 0 tests/api_resources/test_models.py | 0 tests/conftest.py | 0 tests/sample_file.txt | 0 tests/test_client.py | 0 tests/test_deepcopy.py | 0 tests/test_extract_files.py | 0 tests/test_files.py | 0 tests/test_models.py | 0 tests/test_qs.py | 0 tests/test_required_args.py | 0 tests/test_response.py | 0 tests/test_streaming.py | 0 tests/test_transform.py | 0 tests/test_utils/test_proxy.py | 0 tests/test_utils/test_typing.py | 0 tests/utils.py | 0 132 files changed, 3 insertions(+), 48 deletions(-) mode change 100644 => 100755 .devcontainer/Dockerfile mode change 100644 => 100755 .devcontainer/devcontainer.json mode change 100644 => 100755 .github/workflows/ci.yml mode change 100644 => 100755 .github/workflows/publish-pypi.yml mode change 100644 => 100755 .github/workflows/release-doctor.yml mode change 100644 => 100755 .gitignore mode change 100644 => 100755 .python-version mode change 100644 => 100755 .release-please-manifest.json mode change 100644 => 100755 .stats.yml mode change 100644 => 100755 Brewfile mode change 100644 => 100755 CHANGELOG.md mode change 100644 => 100755 CODEOWNERS mode change 100644 => 100755 CONTRIBUTING.md mode change 100644 => 100755 LICENSE mode change 100644 => 100755 README.md mode change 100644 => 100755 SECURITY.md mode change 100644 => 100755 api.md mode change 100644 => 100755 bin/check-release-environment mode change 100644 => 100755 bin/publish-pypi mode change 100644 => 100755 examples/.keep mode change 100644 => 100755 examples/chat_completion.py mode change 100644 => 100755 examples/chat_completion_async.py mode change 100644 => 100755 examples/chat_completion_async_streaming.py mode change 100644 => 100755 examples/chat_completion_stop.py mode change 100644 => 100755 examples/chat_completion_streaming.py mode change 100644 => 100755 mypy.ini mode change 100644 => 100755 noxfile.py mode change 100644 => 100755 pyproject.toml mode change 100644 => 100755 release-please-config.json mode change 100644 => 100755 requirements-dev.lock mode change 100644 => 100755 requirements.lock mode change 100644 => 100755 scripts/utils/ruffen-docs.py mode change 100644 => 100755 src/groq/__init__.py mode change 100644 => 100755 src/groq/_base_client.py mode change 100644 => 100755 src/groq/_client.py mode change 100644 => 100755 src/groq/_compat.py mode change 100644 => 100755 src/groq/_constants.py mode change 100644 => 100755 src/groq/_exceptions.py mode change 100644 => 100755 src/groq/_files.py mode change 100644 => 100755 src/groq/_models.py mode change 100644 => 100755 src/groq/_qs.py mode change 100644 => 100755 src/groq/_resource.py mode change 100644 => 100755 src/groq/_response.py mode change 100644 => 100755 src/groq/_streaming.py mode change 100644 => 100755 src/groq/_types.py mode change 100644 => 100755 src/groq/_utils/__init__.py mode change 100644 => 100755 src/groq/_utils/_logs.py mode change 100644 => 100755 src/groq/_utils/_proxy.py mode change 100644 => 100755 src/groq/_utils/_reflection.py mode change 100644 => 100755 src/groq/_utils/_streams.py mode change 100644 => 100755 src/groq/_utils/_sync.py mode change 100644 => 100755 src/groq/_utils/_transform.py mode change 100644 => 100755 src/groq/_utils/_typing.py mode change 100644 => 100755 src/groq/_utils/_utils.py mode change 100644 => 100755 src/groq/_version.py mode change 100644 => 100755 src/groq/lib/.keep mode change 100644 => 100755 src/groq/py.typed mode change 100644 => 100755 src/groq/resources/__init__.py mode change 100644 => 100755 src/groq/resources/audio/__init__.py mode change 100644 => 100755 src/groq/resources/audio/audio.py mode change 100644 => 100755 src/groq/resources/audio/transcriptions.py mode change 100644 => 100755 src/groq/resources/audio/translations.py mode change 100644 => 100755 src/groq/resources/chat/__init__.py mode change 100644 => 100755 src/groq/resources/chat/chat.py mode change 100644 => 100755 src/groq/resources/chat/completions.py mode change 100644 => 100755 src/groq/resources/embeddings.py mode change 100644 => 100755 src/groq/resources/models.py mode change 100644 => 100755 src/groq/types/__init__.py mode change 100644 => 100755 src/groq/types/audio/__init__.py mode change 100644 => 100755 src/groq/types/audio/transcription.py mode change 100644 => 100755 src/groq/types/audio/transcription_create_params.py mode change 100644 => 100755 src/groq/types/audio/translation.py mode change 100644 => 100755 src/groq/types/audio/translation_create_params.py mode change 100644 => 100755 src/groq/types/chat/__init__.py mode change 100644 => 100755 src/groq/types/chat/chat_completion.py mode change 100644 => 100755 src/groq/types/chat/chat_completion_assistant_message_param.py mode change 100644 => 100755 src/groq/types/chat/chat_completion_content_part_image_param.py mode change 100644 => 100755 src/groq/types/chat/chat_completion_content_part_param.py mode change 100644 => 100755 src/groq/types/chat/chat_completion_content_part_text_param.py mode change 100644 => 100755 src/groq/types/chat/chat_completion_function_call_option_param.py mode change 100644 => 100755 src/groq/types/chat/chat_completion_function_message_param.py mode change 100644 => 100755 src/groq/types/chat/chat_completion_message.py mode change 100644 => 100755 src/groq/types/chat/chat_completion_message_param.py mode change 100644 => 100755 src/groq/types/chat/chat_completion_message_tool_call.py mode change 100644 => 100755 src/groq/types/chat/chat_completion_message_tool_call_param.py mode change 100644 => 100755 src/groq/types/chat/chat_completion_named_tool_choice_param.py mode change 100644 => 100755 src/groq/types/chat/chat_completion_role.py mode change 100644 => 100755 src/groq/types/chat/chat_completion_system_message_param.py mode change 100644 => 100755 src/groq/types/chat/chat_completion_token_logprob.py mode change 100644 => 100755 src/groq/types/chat/chat_completion_tool_choice_option_param.py mode change 100644 => 100755 src/groq/types/chat/chat_completion_tool_message_param.py mode change 100644 => 100755 src/groq/types/chat/chat_completion_tool_param.py mode change 100644 => 100755 src/groq/types/chat/chat_completion_user_message_param.py mode change 100644 => 100755 src/groq/types/chat/completion_create_params.py mode change 100644 => 100755 src/groq/types/completion_usage.py mode change 100644 => 100755 src/groq/types/create_embedding_response.py mode change 100644 => 100755 src/groq/types/embedding.py mode change 100644 => 100755 src/groq/types/embedding_create_params.py mode change 100644 => 100755 src/groq/types/model.py mode change 100644 => 100755 src/groq/types/model_deleted.py mode change 100644 => 100755 src/groq/types/model_list_response.py mode change 100644 => 100755 src/groq/types/shared/__init__.py mode change 100644 => 100755 src/groq/types/shared/error_object.py mode change 100644 => 100755 src/groq/types/shared/function_definition.py mode change 100644 => 100755 src/groq/types/shared/function_parameters.py mode change 100644 => 100755 src/groq/types/shared_params/__init__.py mode change 100644 => 100755 src/groq/types/shared_params/function_definition.py mode change 100644 => 100755 src/groq/types/shared_params/function_parameters.py mode change 100644 => 100755 tests/__init__.py mode change 100644 => 100755 tests/api_resources/__init__.py mode change 100644 => 100755 tests/api_resources/audio/__init__.py mode change 100644 => 100755 tests/api_resources/audio/test_transcriptions.py mode change 100644 => 100755 tests/api_resources/audio/test_translations.py mode change 100644 => 100755 tests/api_resources/chat/__init__.py mode change 100644 => 100755 tests/api_resources/chat/test_completions.py mode change 100644 => 100755 tests/api_resources/test_embeddings.py mode change 100644 => 100755 tests/api_resources/test_models.py mode change 100644 => 100755 tests/conftest.py mode change 100644 => 100755 tests/sample_file.txt mode change 100644 => 100755 tests/test_client.py mode change 100644 => 100755 tests/test_deepcopy.py mode change 100644 => 100755 tests/test_extract_files.py mode change 100644 => 100755 tests/test_files.py mode change 100644 => 100755 tests/test_models.py mode change 100644 => 100755 tests/test_qs.py mode change 100644 => 100755 tests/test_required_args.py mode change 100644 => 100755 tests/test_response.py mode change 100644 => 100755 tests/test_streaming.py mode change 100644 => 100755 tests/test_transform.py mode change 100644 => 100755 tests/test_utils/test_proxy.py mode change 100644 => 100755 tests/test_utils/test_typing.py mode change 100644 => 100755 tests/utils.py diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile old mode 100644 new mode 100755 diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json old mode 100644 new mode 100755 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml old mode 100644 new mode 100755 diff --git a/.github/workflows/publish-pypi.yml b/.github/workflows/publish-pypi.yml old mode 100644 new mode 100755 diff --git a/.github/workflows/release-doctor.yml b/.github/workflows/release-doctor.yml old mode 100644 new mode 100755 diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/.python-version b/.python-version old mode 100644 new mode 100755 diff --git a/.release-please-manifest.json b/.release-please-manifest.json old mode 100644 new mode 100755 diff --git a/.stats.yml b/.stats.yml old mode 100644 new mode 100755 index 98dbe58..2740b98 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 7 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/groqcloud%2Fgroqcloud-a10a2e26af1859694bf25612d54e7909296f7aaf82822c6a1681632bf28ec669.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/groqcloud%2Fgroqcloud-1f0d266ba97b03672f10d33a6dc6e324af9a95646f978ffbff6a31f3907bbfe7.yml diff --git a/Brewfile b/Brewfile old mode 100644 new mode 100755 diff --git a/CHANGELOG.md b/CHANGELOG.md old mode 100644 new mode 100755 diff --git a/CODEOWNERS b/CODEOWNERS old mode 100644 new mode 100755 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md old mode 100644 new mode 100755 diff --git a/LICENSE b/LICENSE old mode 100644 new mode 100755 diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/SECURITY.md b/SECURITY.md old mode 100644 new mode 100755 diff --git a/api.md b/api.md old mode 100644 new mode 100755 diff --git a/bin/check-release-environment b/bin/check-release-environment old mode 100644 new mode 100755 diff --git a/bin/publish-pypi b/bin/publish-pypi old mode 100644 new mode 100755 diff --git a/examples/.keep b/examples/.keep old mode 100644 new mode 100755 diff --git a/examples/chat_completion.py b/examples/chat_completion.py old mode 100644 new mode 100755 diff --git a/examples/chat_completion_async.py b/examples/chat_completion_async.py old mode 100644 new mode 100755 diff --git a/examples/chat_completion_async_streaming.py b/examples/chat_completion_async_streaming.py old mode 100644 new mode 100755 diff --git a/examples/chat_completion_stop.py b/examples/chat_completion_stop.py old mode 100644 new mode 100755 diff --git a/examples/chat_completion_streaming.py b/examples/chat_completion_streaming.py old mode 100644 new mode 100755 diff --git a/mypy.ini b/mypy.ini old mode 100644 new mode 100755 diff --git a/noxfile.py b/noxfile.py old mode 100644 new mode 100755 diff --git a/pyproject.toml b/pyproject.toml old mode 100644 new mode 100755 diff --git a/release-please-config.json b/release-please-config.json old mode 100644 new mode 100755 diff --git a/requirements-dev.lock b/requirements-dev.lock old mode 100644 new mode 100755 diff --git a/requirements.lock b/requirements.lock old mode 100644 new mode 100755 diff --git a/scripts/utils/ruffen-docs.py b/scripts/utils/ruffen-docs.py old mode 100644 new mode 100755 diff --git a/src/groq/__init__.py b/src/groq/__init__.py old mode 100644 new mode 100755 diff --git a/src/groq/_base_client.py b/src/groq/_base_client.py old mode 100644 new mode 100755 diff --git a/src/groq/_client.py b/src/groq/_client.py old mode 100644 new mode 100755 diff --git a/src/groq/_compat.py b/src/groq/_compat.py old mode 100644 new mode 100755 diff --git a/src/groq/_constants.py b/src/groq/_constants.py old mode 100644 new mode 100755 diff --git a/src/groq/_exceptions.py b/src/groq/_exceptions.py old mode 100644 new mode 100755 diff --git a/src/groq/_files.py b/src/groq/_files.py old mode 100644 new mode 100755 diff --git a/src/groq/_models.py b/src/groq/_models.py old mode 100644 new mode 100755 diff --git a/src/groq/_qs.py b/src/groq/_qs.py old mode 100644 new mode 100755 diff --git a/src/groq/_resource.py b/src/groq/_resource.py old mode 100644 new mode 100755 diff --git a/src/groq/_response.py b/src/groq/_response.py old mode 100644 new mode 100755 diff --git a/src/groq/_streaming.py b/src/groq/_streaming.py old mode 100644 new mode 100755 diff --git a/src/groq/_types.py b/src/groq/_types.py old mode 100644 new mode 100755 diff --git a/src/groq/_utils/__init__.py b/src/groq/_utils/__init__.py old mode 100644 new mode 100755 diff --git a/src/groq/_utils/_logs.py b/src/groq/_utils/_logs.py old mode 100644 new mode 100755 diff --git a/src/groq/_utils/_proxy.py b/src/groq/_utils/_proxy.py old mode 100644 new mode 100755 diff --git a/src/groq/_utils/_reflection.py b/src/groq/_utils/_reflection.py old mode 100644 new mode 100755 diff --git a/src/groq/_utils/_streams.py b/src/groq/_utils/_streams.py old mode 100644 new mode 100755 diff --git a/src/groq/_utils/_sync.py b/src/groq/_utils/_sync.py old mode 100644 new mode 100755 diff --git a/src/groq/_utils/_transform.py b/src/groq/_utils/_transform.py old mode 100644 new mode 100755 diff --git a/src/groq/_utils/_typing.py b/src/groq/_utils/_typing.py old mode 100644 new mode 100755 diff --git a/src/groq/_utils/_utils.py b/src/groq/_utils/_utils.py old mode 100644 new mode 100755 diff --git a/src/groq/_version.py b/src/groq/_version.py old mode 100644 new mode 100755 diff --git a/src/groq/lib/.keep b/src/groq/lib/.keep old mode 100644 new mode 100755 diff --git a/src/groq/py.typed b/src/groq/py.typed old mode 100644 new mode 100755 diff --git a/src/groq/resources/__init__.py b/src/groq/resources/__init__.py old mode 100644 new mode 100755 diff --git a/src/groq/resources/audio/__init__.py b/src/groq/resources/audio/__init__.py old mode 100644 new mode 100755 diff --git a/src/groq/resources/audio/audio.py b/src/groq/resources/audio/audio.py old mode 100644 new mode 100755 diff --git a/src/groq/resources/audio/transcriptions.py b/src/groq/resources/audio/transcriptions.py old mode 100644 new mode 100755 index e7d7b89..f39363c --- a/src/groq/resources/audio/transcriptions.py +++ b/src/groq/resources/audio/transcriptions.py @@ -75,7 +75,6 @@ def create( "da", "hu", "ta", - "no", "th", "ur", "hr", @@ -274,7 +273,6 @@ async def create( "da", "hu", "ta", - "no", "th", "ur", "hr", diff --git a/src/groq/resources/audio/translations.py b/src/groq/resources/audio/translations.py old mode 100644 new mode 100755 diff --git a/src/groq/resources/chat/__init__.py b/src/groq/resources/chat/__init__.py old mode 100644 new mode 100755 diff --git a/src/groq/resources/chat/chat.py b/src/groq/resources/chat/chat.py old mode 100644 new mode 100755 diff --git a/src/groq/resources/chat/completions.py b/src/groq/resources/chat/completions.py old mode 100644 new mode 100755 index 487cf37..e70cff9 --- a/src/groq/resources/chat/completions.py +++ b/src/groq/resources/chat/completions.py @@ -60,7 +60,6 @@ def create( seed: Optional[int] | NotGiven = NOT_GIVEN, stop: Union[Optional[str], List[str], None] | NotGiven = NOT_GIVEN, stream: Optional[Literal[False]] | NotGiven = NOT_GIVEN, - stream_options: Optional[completion_create_params.StreamOptions] | NotGiven = NOT_GIVEN, temperature: Optional[float] | NotGiven = NOT_GIVEN, tool_choice: Optional[ChatCompletionToolChoiceOptionParam] | NotGiven = NOT_GIVEN, tools: Optional[Iterable[ChatCompletionToolParam]] | NotGiven = NOT_GIVEN, @@ -95,7 +94,6 @@ def create( seed: Optional[int] | NotGiven = NOT_GIVEN, stop: Union[Optional[str], List[str], None] | NotGiven = NOT_GIVEN, stream: Literal[True], - stream_options: Optional[completion_create_params.StreamOptions] | NotGiven = NOT_GIVEN, temperature: Optional[float] | NotGiven = NOT_GIVEN, tool_choice: Optional[ChatCompletionToolChoiceOptionParam] | NotGiven = NOT_GIVEN, tools: Optional[Iterable[ChatCompletionToolParam]] | NotGiven = NOT_GIVEN, @@ -130,7 +128,6 @@ def create( seed: Optional[int] | NotGiven = NOT_GIVEN, stop: Union[Optional[str], List[str], None] | NotGiven = NOT_GIVEN, stream: bool, - stream_options: Optional[completion_create_params.StreamOptions] | NotGiven = NOT_GIVEN, temperature: Optional[float] | NotGiven = NOT_GIVEN, tool_choice: Optional[ChatCompletionToolChoiceOptionParam] | NotGiven = NOT_GIVEN, tools: Optional[Iterable[ChatCompletionToolParam]] | NotGiven = NOT_GIVEN, @@ -164,7 +161,6 @@ def create( seed: Optional[int] | NotGiven = NOT_GIVEN, stop: Union[Optional[str], List[str], None] | NotGiven = NOT_GIVEN, stream: Optional[Literal[False]] | Literal[True] | NotGiven = NOT_GIVEN, - stream_options: Optional[completion_create_params.StreamOptions] | NotGiven = NOT_GIVEN, temperature: Optional[float] | NotGiven = NOT_GIVEN, tool_choice: Optional[ChatCompletionToolChoiceOptionParam] | NotGiven = NOT_GIVEN, tools: Optional[Iterable[ChatCompletionToolParam]] | NotGiven = NOT_GIVEN, @@ -248,8 +244,6 @@ def create( as they become available, with the stream terminated by a `data: [DONE]` message. [Example code](/docs/text-chat#streaming-a-chat-completion). - stream_options: Options for streaming response. Only set this when you set `stream: true`. - temperature: What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. We generally recommend altering this or top_p but not @@ -309,7 +303,6 @@ def create( "seed": seed, "stop": stop, "stream": stream, - "stream_options": stream_options, "temperature": temperature, "tool_choice": tool_choice, "tools": tools, @@ -356,7 +349,6 @@ async def create( seed: Optional[int] | NotGiven = NOT_GIVEN, stop: Union[Optional[str], List[str], None] | NotGiven = NOT_GIVEN, stream: Optional[Literal[False]] | NotGiven = NOT_GIVEN, - stream_options: Optional[completion_create_params.StreamOptions] | NotGiven = NOT_GIVEN, temperature: Optional[float] | NotGiven = NOT_GIVEN, tool_choice: Optional[ChatCompletionToolChoiceOptionParam] | NotGiven = NOT_GIVEN, tools: Optional[Iterable[ChatCompletionToolParam]] | NotGiven = NOT_GIVEN, @@ -391,7 +383,6 @@ async def create( seed: Optional[int] | NotGiven = NOT_GIVEN, stop: Union[Optional[str], List[str], None] | NotGiven = NOT_GIVEN, stream: Literal[True], - stream_options: Optional[completion_create_params.StreamOptions] | NotGiven = NOT_GIVEN, temperature: Optional[float] | NotGiven = NOT_GIVEN, tool_choice: Optional[ChatCompletionToolChoiceOptionParam] | NotGiven = NOT_GIVEN, tools: Optional[Iterable[ChatCompletionToolParam]] | NotGiven = NOT_GIVEN, @@ -426,7 +417,6 @@ async def create( seed: Optional[int] | NotGiven = NOT_GIVEN, stop: Union[Optional[str], List[str], None] | NotGiven = NOT_GIVEN, stream: bool, - stream_options: Optional[completion_create_params.StreamOptions] | NotGiven = NOT_GIVEN, temperature: Optional[float] | NotGiven = NOT_GIVEN, tool_choice: Optional[ChatCompletionToolChoiceOptionParam] | NotGiven = NOT_GIVEN, tools: Optional[Iterable[ChatCompletionToolParam]] | NotGiven = NOT_GIVEN, @@ -460,7 +450,6 @@ async def create( seed: Optional[int] | NotGiven = NOT_GIVEN, stop: Union[Optional[str], List[str], None] | NotGiven = NOT_GIVEN, stream: Optional[Literal[False]] | Literal[True] | NotGiven = NOT_GIVEN, - stream_options: Optional[completion_create_params.StreamOptions] | NotGiven = NOT_GIVEN, temperature: Optional[float] | NotGiven = NOT_GIVEN, tool_choice: Optional[ChatCompletionToolChoiceOptionParam] | NotGiven = NOT_GIVEN, tools: Optional[Iterable[ChatCompletionToolParam]] | NotGiven = NOT_GIVEN, @@ -544,8 +533,6 @@ async def create( as they become available, with the stream terminated by a `data: [DONE]` message. [Example code](/docs/text-chat#streaming-a-chat-completion). - stream_options: Options for streaming response. Only set this when you set `stream: true`. - temperature: What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. We generally recommend altering this or top_p but not @@ -605,7 +592,6 @@ async def create( "seed": seed, "stop": stop, "stream": stream, - "stream_options": stream_options, "temperature": temperature, "tool_choice": tool_choice, "tools": tools, diff --git a/src/groq/resources/embeddings.py b/src/groq/resources/embeddings.py old mode 100644 new mode 100755 diff --git a/src/groq/resources/models.py b/src/groq/resources/models.py old mode 100644 new mode 100755 diff --git a/src/groq/types/__init__.py b/src/groq/types/__init__.py old mode 100644 new mode 100755 diff --git a/src/groq/types/audio/__init__.py b/src/groq/types/audio/__init__.py old mode 100644 new mode 100755 diff --git a/src/groq/types/audio/transcription.py b/src/groq/types/audio/transcription.py old mode 100644 new mode 100755 diff --git a/src/groq/types/audio/transcription_create_params.py b/src/groq/types/audio/transcription_create_params.py old mode 100644 new mode 100755 index f300076..9c09a17 --- a/src/groq/types/audio/transcription_create_params.py +++ b/src/groq/types/audio/transcription_create_params.py @@ -52,7 +52,6 @@ class TranscriptionCreateParams(TypedDict, total=False): "da", "hu", "ta", - "no", "th", "ur", "hr", diff --git a/src/groq/types/audio/translation.py b/src/groq/types/audio/translation.py old mode 100644 new mode 100755 diff --git a/src/groq/types/audio/translation_create_params.py b/src/groq/types/audio/translation_create_params.py old mode 100644 new mode 100755 diff --git a/src/groq/types/chat/__init__.py b/src/groq/types/chat/__init__.py old mode 100644 new mode 100755 diff --git a/src/groq/types/chat/chat_completion.py b/src/groq/types/chat/chat_completion.py old mode 100644 new mode 100755 diff --git a/src/groq/types/chat/chat_completion_assistant_message_param.py b/src/groq/types/chat/chat_completion_assistant_message_param.py old mode 100644 new mode 100755 index 39a1153..1aecfd1 --- a/src/groq/types/chat/chat_completion_assistant_message_param.py +++ b/src/groq/types/chat/chat_completion_assistant_message_param.py @@ -47,8 +47,5 @@ class ChatCompletionAssistantMessageParam(TypedDict, total=False): role. """ - tool_call_id: Optional[str] - """DO NOT USE. This field is present because OpenAI allows it and userssend it.""" - tool_calls: Iterable[ChatCompletionMessageToolCallParam] """The tool calls generated by the model, such as function calls.""" diff --git a/src/groq/types/chat/chat_completion_content_part_image_param.py b/src/groq/types/chat/chat_completion_content_part_image_param.py old mode 100644 new mode 100755 diff --git a/src/groq/types/chat/chat_completion_content_part_param.py b/src/groq/types/chat/chat_completion_content_part_param.py old mode 100644 new mode 100755 diff --git a/src/groq/types/chat/chat_completion_content_part_text_param.py b/src/groq/types/chat/chat_completion_content_part_text_param.py old mode 100644 new mode 100755 diff --git a/src/groq/types/chat/chat_completion_function_call_option_param.py b/src/groq/types/chat/chat_completion_function_call_option_param.py old mode 100644 new mode 100755 diff --git a/src/groq/types/chat/chat_completion_function_message_param.py b/src/groq/types/chat/chat_completion_function_message_param.py old mode 100644 new mode 100755 index 9c8bb6f..5af12bf --- a/src/groq/types/chat/chat_completion_function_message_param.py +++ b/src/groq/types/chat/chat_completion_function_message_param.py @@ -17,6 +17,3 @@ class ChatCompletionFunctionMessageParam(TypedDict, total=False): role: Required[Literal["function"]] """The role of the messages author, in this case `function`.""" - - tool_call_id: Optional[str] - """DO NOT USE. This field is present because OpenAI allows it and users send it.""" diff --git a/src/groq/types/chat/chat_completion_message.py b/src/groq/types/chat/chat_completion_message.py old mode 100644 new mode 100755 diff --git a/src/groq/types/chat/chat_completion_message_param.py b/src/groq/types/chat/chat_completion_message_param.py old mode 100644 new mode 100755 diff --git a/src/groq/types/chat/chat_completion_message_tool_call.py b/src/groq/types/chat/chat_completion_message_tool_call.py old mode 100644 new mode 100755 diff --git a/src/groq/types/chat/chat_completion_message_tool_call_param.py b/src/groq/types/chat/chat_completion_message_tool_call_param.py old mode 100644 new mode 100755 diff --git a/src/groq/types/chat/chat_completion_named_tool_choice_param.py b/src/groq/types/chat/chat_completion_named_tool_choice_param.py old mode 100644 new mode 100755 diff --git a/src/groq/types/chat/chat_completion_role.py b/src/groq/types/chat/chat_completion_role.py old mode 100644 new mode 100755 diff --git a/src/groq/types/chat/chat_completion_system_message_param.py b/src/groq/types/chat/chat_completion_system_message_param.py old mode 100644 new mode 100755 index 7cf2184..94bb3f6 --- a/src/groq/types/chat/chat_completion_system_message_param.py +++ b/src/groq/types/chat/chat_completion_system_message_param.py @@ -2,7 +2,6 @@ from __future__ import annotations -from typing import Optional from typing_extensions import Literal, Required, TypedDict __all__ = ["ChatCompletionSystemMessageParam"] @@ -21,6 +20,3 @@ class ChatCompletionSystemMessageParam(TypedDict, total=False): Provides the model information to differentiate between participants of the same role. """ - - tool_call_id: Optional[str] - """DO NOT USE. This field is present because OpenAI allows it and userssend it.""" diff --git a/src/groq/types/chat/chat_completion_token_logprob.py b/src/groq/types/chat/chat_completion_token_logprob.py old mode 100644 new mode 100755 diff --git a/src/groq/types/chat/chat_completion_tool_choice_option_param.py b/src/groq/types/chat/chat_completion_tool_choice_option_param.py old mode 100644 new mode 100755 diff --git a/src/groq/types/chat/chat_completion_tool_message_param.py b/src/groq/types/chat/chat_completion_tool_message_param.py old mode 100644 new mode 100755 index 3b6b49a..5c590e0 --- a/src/groq/types/chat/chat_completion_tool_message_param.py +++ b/src/groq/types/chat/chat_completion_tool_message_param.py @@ -16,6 +16,3 @@ class ChatCompletionToolMessageParam(TypedDict, total=False): tool_call_id: Required[str] """Tool call that this message is responding to.""" - - name: str - """DO NOT USE. This field is present because OpenAI allows it and userssend it.""" diff --git a/src/groq/types/chat/chat_completion_tool_param.py b/src/groq/types/chat/chat_completion_tool_param.py old mode 100644 new mode 100755 diff --git a/src/groq/types/chat/chat_completion_user_message_param.py b/src/groq/types/chat/chat_completion_user_message_param.py old mode 100644 new mode 100755 index 9c9f5b8..5c15322 --- a/src/groq/types/chat/chat_completion_user_message_param.py +++ b/src/groq/types/chat/chat_completion_user_message_param.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import Union, Iterable, Optional +from typing import Union, Iterable from typing_extensions import Literal, Required, TypedDict from .chat_completion_content_part_param import ChatCompletionContentPartParam @@ -23,6 +23,3 @@ class ChatCompletionUserMessageParam(TypedDict, total=False): Provides the model information to differentiate between participants of the same role. """ - - tool_call_id: Optional[str] - """DO NOT USE. This field is present because OpenAI allows it and userssend it.""" diff --git a/src/groq/types/chat/completion_create_params.py b/src/groq/types/chat/completion_create_params.py old mode 100644 new mode 100755 index 0157906..811c2d1 --- a/src/groq/types/chat/completion_create_params.py +++ b/src/groq/types/chat/completion_create_params.py @@ -11,7 +11,7 @@ from .chat_completion_tool_choice_option_param import ChatCompletionToolChoiceOptionParam from .chat_completion_function_call_option_param import ChatCompletionFunctionCallOptionParam -__all__ = ["CompletionCreateParams", "FunctionCall", "Function", "ResponseFormat", "StreamOptions"] +__all__ = ["CompletionCreateParams", "FunctionCall", "Function", "ResponseFormat"] class CompletionCreateParams(TypedDict, total=False): @@ -121,9 +121,6 @@ class CompletionCreateParams(TypedDict, total=False): message. [Example code](/docs/text-chat#streaming-a-chat-completion). """ - stream_options: Optional[StreamOptions] - """Options for streaming response. Only set this when you set `stream: true`.""" - temperature: Optional[float] """What sampling temperature to use, between 0 and 2. @@ -207,8 +204,3 @@ class Function(TypedDict, total=False): class ResponseFormat(TypedDict, total=False): type: Literal["text", "json_object"] """Must be one of `text` or `json_object`.""" - - -class StreamOptions(TypedDict, total=False): - include_usage: bool - """This field is unused""" diff --git a/src/groq/types/completion_usage.py b/src/groq/types/completion_usage.py old mode 100644 new mode 100755 diff --git a/src/groq/types/create_embedding_response.py b/src/groq/types/create_embedding_response.py old mode 100644 new mode 100755 diff --git a/src/groq/types/embedding.py b/src/groq/types/embedding.py old mode 100644 new mode 100755 diff --git a/src/groq/types/embedding_create_params.py b/src/groq/types/embedding_create_params.py old mode 100644 new mode 100755 diff --git a/src/groq/types/model.py b/src/groq/types/model.py old mode 100644 new mode 100755 diff --git a/src/groq/types/model_deleted.py b/src/groq/types/model_deleted.py old mode 100644 new mode 100755 diff --git a/src/groq/types/model_list_response.py b/src/groq/types/model_list_response.py old mode 100644 new mode 100755 diff --git a/src/groq/types/shared/__init__.py b/src/groq/types/shared/__init__.py old mode 100644 new mode 100755 diff --git a/src/groq/types/shared/error_object.py b/src/groq/types/shared/error_object.py old mode 100644 new mode 100755 diff --git a/src/groq/types/shared/function_definition.py b/src/groq/types/shared/function_definition.py old mode 100644 new mode 100755 diff --git a/src/groq/types/shared/function_parameters.py b/src/groq/types/shared/function_parameters.py old mode 100644 new mode 100755 diff --git a/src/groq/types/shared_params/__init__.py b/src/groq/types/shared_params/__init__.py old mode 100644 new mode 100755 diff --git a/src/groq/types/shared_params/function_definition.py b/src/groq/types/shared_params/function_definition.py old mode 100644 new mode 100755 diff --git a/src/groq/types/shared_params/function_parameters.py b/src/groq/types/shared_params/function_parameters.py old mode 100644 new mode 100755 diff --git a/tests/__init__.py b/tests/__init__.py old mode 100644 new mode 100755 diff --git a/tests/api_resources/__init__.py b/tests/api_resources/__init__.py old mode 100644 new mode 100755 diff --git a/tests/api_resources/audio/__init__.py b/tests/api_resources/audio/__init__.py old mode 100644 new mode 100755 diff --git a/tests/api_resources/audio/test_transcriptions.py b/tests/api_resources/audio/test_transcriptions.py old mode 100644 new mode 100755 diff --git a/tests/api_resources/audio/test_translations.py b/tests/api_resources/audio/test_translations.py old mode 100644 new mode 100755 diff --git a/tests/api_resources/chat/__init__.py b/tests/api_resources/chat/__init__.py old mode 100644 new mode 100755 diff --git a/tests/api_resources/chat/test_completions.py b/tests/api_resources/chat/test_completions.py old mode 100644 new mode 100755 index 01c673f..345a6d4 --- a/tests/api_resources/chat/test_completions.py +++ b/tests/api_resources/chat/test_completions.py @@ -38,7 +38,6 @@ def test_method_create_with_all_params(self, client: Groq) -> None: "content": "content", "role": "system", "name": "name", - "tool_call_id": "tool_call_id", } ], model="string", @@ -71,7 +70,6 @@ def test_method_create_with_all_params(self, client: Groq) -> None: seed=0, stop="\n", stream=False, - stream_options={"include_usage": True}, temperature=1, tool_choice="none", tools=[ @@ -167,7 +165,6 @@ async def test_method_create_with_all_params(self, async_client: AsyncGroq) -> N "content": "content", "role": "system", "name": "name", - "tool_call_id": "tool_call_id", } ], model="string", @@ -200,7 +197,6 @@ async def test_method_create_with_all_params(self, async_client: AsyncGroq) -> N seed=0, stop="\n", stream=False, - stream_options={"include_usage": True}, temperature=1, tool_choice="none", tools=[ diff --git a/tests/api_resources/test_embeddings.py b/tests/api_resources/test_embeddings.py old mode 100644 new mode 100755 diff --git a/tests/api_resources/test_models.py b/tests/api_resources/test_models.py old mode 100644 new mode 100755 diff --git a/tests/conftest.py b/tests/conftest.py old mode 100644 new mode 100755 diff --git a/tests/sample_file.txt b/tests/sample_file.txt old mode 100644 new mode 100755 diff --git a/tests/test_client.py b/tests/test_client.py old mode 100644 new mode 100755 diff --git a/tests/test_deepcopy.py b/tests/test_deepcopy.py old mode 100644 new mode 100755 diff --git a/tests/test_extract_files.py b/tests/test_extract_files.py old mode 100644 new mode 100755 diff --git a/tests/test_files.py b/tests/test_files.py old mode 100644 new mode 100755 diff --git a/tests/test_models.py b/tests/test_models.py old mode 100644 new mode 100755 diff --git a/tests/test_qs.py b/tests/test_qs.py old mode 100644 new mode 100755 diff --git a/tests/test_required_args.py b/tests/test_required_args.py old mode 100644 new mode 100755 diff --git a/tests/test_response.py b/tests/test_response.py old mode 100644 new mode 100755 diff --git a/tests/test_streaming.py b/tests/test_streaming.py old mode 100644 new mode 100755 diff --git a/tests/test_transform.py b/tests/test_transform.py old mode 100644 new mode 100755 diff --git a/tests/test_utils/test_proxy.py b/tests/test_utils/test_proxy.py old mode 100644 new mode 100755 diff --git a/tests/test_utils/test_typing.py b/tests/test_utils/test_typing.py old mode 100644 new mode 100755 diff --git a/tests/utils.py b/tests/utils.py old mode 100644 new mode 100755