Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file modified .devcontainer/Dockerfile
100644 → 100755
Empty file.
Empty file modified .devcontainer/devcontainer.json
100644 → 100755
Empty file.
Empty file modified .github/workflows/ci.yml
100644 → 100755
Empty file.
Empty file modified .github/workflows/publish-pypi.yml
100644 → 100755
Empty file.
Empty file modified .github/workflows/release-doctor.yml
100644 → 100755
Empty file.
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified .python-version
100644 → 100755
Empty file.
Empty file modified .release-please-manifest.json
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion .stats.yml
100644 → 100755
Original file line number Diff line number Diff line change
@@ -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
Empty file modified Brewfile
100644 → 100755
Empty file.
Empty file modified CHANGELOG.md
100644 → 100755
Empty file.
Empty file modified CODEOWNERS
100644 → 100755
Empty file.
Empty file modified CONTRIBUTING.md
100644 → 100755
Empty file.
Empty file modified LICENSE
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
Empty file modified SECURITY.md
100644 → 100755
Empty file.
Empty file modified api.md
100644 → 100755
Empty file.
Empty file modified bin/check-release-environment
100644 → 100755
Empty file.
Empty file modified bin/publish-pypi
100644 → 100755
Empty file.
Empty file modified examples/.keep
100644 → 100755
Empty file.
Empty file modified examples/chat_completion.py
100644 → 100755
Empty file.
Empty file modified examples/chat_completion_async.py
100644 → 100755
Empty file.
Empty file modified examples/chat_completion_async_streaming.py
100644 → 100755
Empty file.
Empty file modified examples/chat_completion_stop.py
100644 → 100755
Empty file.
Empty file modified examples/chat_completion_streaming.py
100644 → 100755
Empty file.
Empty file modified mypy.ini
100644 → 100755
Empty file.
Empty file modified noxfile.py
100644 → 100755
Empty file.
Empty file modified pyproject.toml
100644 → 100755
Empty file.
Empty file modified release-please-config.json
100644 → 100755
Empty file.
Empty file modified requirements-dev.lock
100644 → 100755
Empty file.
Empty file modified requirements.lock
100644 → 100755
Empty file.
Empty file modified scripts/utils/ruffen-docs.py
100644 → 100755
Empty file.
Empty file modified src/groq/__init__.py
100644 → 100755
Empty file.
Empty file modified src/groq/_base_client.py
100644 → 100755
Empty file.
Empty file modified src/groq/_client.py
100644 → 100755
Empty file.
Empty file modified src/groq/_compat.py
100644 → 100755
Empty file.
Empty file modified src/groq/_constants.py
100644 → 100755
Empty file.
Empty file modified src/groq/_exceptions.py
100644 → 100755
Empty file.
Empty file modified src/groq/_files.py
100644 → 100755
Empty file.
Empty file modified src/groq/_models.py
100644 → 100755
Empty file.
Empty file modified src/groq/_qs.py
100644 → 100755
Empty file.
Empty file modified src/groq/_resource.py
100644 → 100755
Empty file.
Empty file modified src/groq/_response.py
100644 → 100755
Empty file.
Empty file modified src/groq/_streaming.py
100644 → 100755
Empty file.
Empty file modified src/groq/_types.py
100644 → 100755
Empty file.
Empty file modified src/groq/_utils/__init__.py
100644 → 100755
Empty file.
Empty file modified src/groq/_utils/_logs.py
100644 → 100755
Empty file.
Empty file modified src/groq/_utils/_proxy.py
100644 → 100755
Empty file.
Empty file modified src/groq/_utils/_reflection.py
100644 → 100755
Empty file.
Empty file modified src/groq/_utils/_streams.py
100644 → 100755
Empty file.
Empty file modified src/groq/_utils/_sync.py
100644 → 100755
Empty file.
Empty file modified src/groq/_utils/_transform.py
100644 → 100755
Empty file.
Empty file modified src/groq/_utils/_typing.py
100644 → 100755
Empty file.
Empty file modified src/groq/_utils/_utils.py
100644 → 100755
Empty file.
Empty file modified src/groq/_version.py
100644 → 100755
Empty file.
Empty file modified src/groq/lib/.keep
100644 → 100755
Empty file.
Empty file modified src/groq/lib/chat_completion_chunk.py
100644 → 100755
Empty file.
Empty file modified src/groq/py.typed
100644 → 100755
Empty file.
Empty file modified src/groq/resources/__init__.py
100644 → 100755
Empty file.
Empty file modified src/groq/resources/audio/__init__.py
100644 → 100755
Empty file.
Empty file modified src/groq/resources/audio/audio.py
100644 → 100755
Empty file.
2 changes: 0 additions & 2 deletions src/groq/resources/audio/transcriptions.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ def create(
"da",
"hu",
"ta",
"no",
"th",
"ur",
"hr",
Expand Down Expand Up @@ -274,7 +273,6 @@ async def create(
"da",
"hu",
"ta",
"no",
"th",
"ur",
"hr",
Expand Down
Empty file modified src/groq/resources/audio/translations.py
100644 → 100755
Empty file.
Empty file modified src/groq/resources/chat/__init__.py
100644 → 100755
Empty file.
Empty file modified src/groq/resources/chat/chat.py
100644 → 100755
Empty file.
8 changes: 0 additions & 8 deletions src/groq/resources/chat/completions.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ def create(
seed: Optional[int] | NotGiven = NOT_GIVEN,
stop: Union[Optional[str], List[str], None] | NotGiven = NOT_GIVEN,
stream: Optional[bool] | 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,
Expand Down Expand Up @@ -141,8 +140,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
Expand Down Expand Up @@ -202,7 +199,6 @@ def create(
"seed": seed,
"stop": stop,
"stream": stream,
"stream_options": stream_options,
"temperature": temperature,
"tool_choice": tool_choice,
"tools": tools,
Expand Down Expand Up @@ -246,7 +242,6 @@ async def create(
seed: Optional[int] | NotGiven = NOT_GIVEN,
stop: Union[Optional[str], List[str], None] | NotGiven = NOT_GIVEN,
stream: Optional[bool] | 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,
Expand Down Expand Up @@ -330,8 +325,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
Expand Down Expand Up @@ -391,7 +384,6 @@ async def create(
"seed": seed,
"stop": stop,
"stream": stream,
"stream_options": stream_options,
"temperature": temperature,
"tool_choice": tool_choice,
"tools": tools,
Expand Down
Empty file modified src/groq/resources/embeddings.py
100644 → 100755
Empty file.
Empty file modified src/groq/resources/models.py
100644 → 100755
Empty file.
Empty file modified src/groq/types/__init__.py
100644 → 100755
Empty file.
Empty file modified src/groq/types/audio/__init__.py
100644 → 100755
Empty file.
Empty file modified src/groq/types/audio/transcription.py
100644 → 100755
Empty file.
1 change: 0 additions & 1 deletion src/groq/types/audio/transcription_create_params.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ class TranscriptionCreateParams(TypedDict, total=False):
"da",
"hu",
"ta",
"no",
"th",
"ur",
"hr",
Expand Down
Empty file modified src/groq/types/audio/translation.py
100644 → 100755
Empty file.
Empty file modified src/groq/types/audio/translation_create_params.py
100644 → 100755
Empty file.
Empty file modified src/groq/types/chat/__init__.py
100644 → 100755
Empty file.
Empty file modified src/groq/types/chat/chat_completion.py
100644 → 100755
Empty file.
3 changes: 0 additions & 3 deletions src/groq/types/chat/chat_completion_assistant_message_param.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Empty file.
Empty file modified src/groq/types/chat/chat_completion_content_part_param.py
100644 → 100755
Empty file.
Empty file.
Empty file.
3 changes: 0 additions & 3 deletions src/groq/types/chat/chat_completion_function_message_param.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Empty file modified src/groq/types/chat/chat_completion_message.py
100644 → 100755
Empty file.
Empty file modified src/groq/types/chat/chat_completion_message_param.py
100644 → 100755
Empty file.
Empty file modified src/groq/types/chat/chat_completion_message_tool_call.py
100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file modified src/groq/types/chat/chat_completion_role.py
100644 → 100755
Empty file.
4 changes: 0 additions & 4 deletions src/groq/types/chat/chat_completion_system_message_param.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from __future__ import annotations

from typing import Optional
from typing_extensions import Literal, Required, TypedDict

__all__ = ["ChatCompletionSystemMessageParam"]
Expand All @@ -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."""
Empty file modified src/groq/types/chat/chat_completion_token_logprob.py
100644 → 100755
Empty file.
Empty file.
3 changes: 0 additions & 3 deletions src/groq/types/chat/chat_completion_tool_message_param.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Empty file modified src/groq/types/chat/chat_completion_tool_param.py
100644 → 100755
Empty file.
5 changes: 1 addition & 4 deletions src/groq/types/chat/chat_completion_user_message_param.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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."""
10 changes: 1 addition & 9 deletions src/groq/types/chat/completion_create_params.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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.

Expand Down Expand Up @@ -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"""
Empty file modified src/groq/types/completion_usage.py
100644 → 100755
Empty file.
Empty file modified src/groq/types/create_embedding_response.py
100644 → 100755
Empty file.
Empty file modified src/groq/types/embedding.py
100644 → 100755
Empty file.
Empty file modified src/groq/types/embedding_create_params.py
100644 → 100755
Empty file.
Empty file modified src/groq/types/model.py
100644 → 100755
Empty file.
Empty file modified src/groq/types/model_deleted.py
100644 → 100755
Empty file.
Empty file modified src/groq/types/model_list_response.py
100644 → 100755
Empty file.
Empty file modified src/groq/types/shared/__init__.py
100644 → 100755
Empty file.
Empty file modified src/groq/types/shared/error_object.py
100644 → 100755
Empty file.
Empty file modified src/groq/types/shared/function_definition.py
100644 → 100755
Empty file.
Empty file modified src/groq/types/shared/function_parameters.py
100644 → 100755
Empty file.
Empty file modified src/groq/types/shared_params/__init__.py
100644 → 100755
Empty file.
Empty file modified src/groq/types/shared_params/function_definition.py
100644 → 100755
Empty file.
Empty file modified src/groq/types/shared_params/function_parameters.py
100644 → 100755
Empty file.
Empty file modified tests/__init__.py
100644 → 100755
Empty file.
Empty file modified tests/api_resources/__init__.py
100644 → 100755
Empty file.
Empty file modified tests/api_resources/audio/__init__.py
100644 → 100755
Empty file.
Empty file modified tests/api_resources/audio/test_transcriptions.py
100644 → 100755
Empty file.
Empty file modified tests/api_resources/audio/test_translations.py
100644 → 100755
Empty file.
Empty file modified tests/api_resources/chat/__init__.py
100644 → 100755
Empty file.
4 changes: 0 additions & 4 deletions tests/api_resources/chat/test_completions.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -71,7 +70,6 @@ def test_method_create_with_all_params(self, client: Groq) -> None:
seed=0,
stop="\n",
stream=True,
stream_options={"include_usage": True},
temperature=1,
tool_choice="none",
tools=[
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -200,7 +197,6 @@ async def test_method_create_with_all_params(self, async_client: AsyncGroq) -> N
seed=0,
stop="\n",
stream=True,
stream_options={"include_usage": True},
temperature=1,
tool_choice="none",
tools=[
Expand Down
Empty file modified tests/api_resources/test_embeddings.py
100644 → 100755
Empty file.
Empty file modified tests/api_resources/test_models.py
100644 → 100755
Empty file.
Empty file modified tests/conftest.py
100644 → 100755
Empty file.
Empty file modified tests/sample_file.txt
100644 → 100755
Empty file.
Empty file modified tests/test_client.py
100644 → 100755
Empty file.
Empty file modified tests/test_deepcopy.py
100644 → 100755
Empty file.
Empty file modified tests/test_extract_files.py
100644 → 100755
Empty file.
Empty file modified tests/test_files.py
100644 → 100755
Empty file.
Empty file modified tests/test_models.py
100644 → 100755
Empty file.
Empty file modified tests/test_qs.py
100644 → 100755
Empty file.
Empty file modified tests/test_required_args.py
100644 → 100755
Empty file.
Empty file modified tests/test_response.py
100644 → 100755
Empty file.
Empty file modified tests/test_streaming.py
100644 → 100755
Empty file.
Empty file modified tests/test_transform.py
100644 → 100755
Empty file.
Empty file modified tests/test_utils/test_proxy.py
100644 → 100755
Empty file.
Empty file modified tests/test_utils/test_typing.py
100644 → 100755
Empty file.
Empty file modified tests/utils.py
100644 → 100755
Empty file.