Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed May 16, 2024
1 parent 18bce01 commit ed1ea2a
Show file tree
Hide file tree
Showing 11 changed files with 327 additions and 327 deletions.
64 changes: 32 additions & 32 deletions src/groq/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@


class Groq(SyncAPIClient):
embeddings: resources.EmbeddingsResource
chat: resources.ChatResource
audio: resources.AudioResource
models: resources.ModelsResource
embeddings: resources.Embeddings
chat: resources.Chat
audio: resources.Audio
models: resources.Models
with_raw_response: GroqWithRawResponse
with_streaming_response: GroqWithStreamedResponse

Expand Down Expand Up @@ -107,10 +107,10 @@ def __init__(
_strict_response_validation=_strict_response_validation,
)

self.embeddings = resources.EmbeddingsResource(self)
self.chat = resources.ChatResource(self)
self.audio = resources.AudioResource(self)
self.models = resources.ModelsResource(self)
self.embeddings = resources.Embeddings(self)
self.chat = resources.Chat(self)
self.audio = resources.Audio(self)
self.models = resources.Models(self)
self.with_raw_response = GroqWithRawResponse(self)
self.with_streaming_response = GroqWithStreamedResponse(self)

Expand Down Expand Up @@ -220,10 +220,10 @@ def _make_status_error(


class AsyncGroq(AsyncAPIClient):
embeddings: resources.AsyncEmbeddingsResource
chat: resources.AsyncChatResource
audio: resources.AsyncAudioResource
models: resources.AsyncModelsResource
embeddings: resources.AsyncEmbeddings
chat: resources.AsyncChat
audio: resources.AsyncAudio
models: resources.AsyncModels
with_raw_response: AsyncGroqWithRawResponse
with_streaming_response: AsyncGroqWithStreamedResponse

Expand Down Expand Up @@ -281,10 +281,10 @@ def __init__(
_strict_response_validation=_strict_response_validation,
)

self.embeddings = resources.AsyncEmbeddingsResource(self)
self.chat = resources.AsyncChatResource(self)
self.audio = resources.AsyncAudioResource(self)
self.models = resources.AsyncModelsResource(self)
self.embeddings = resources.AsyncEmbeddings(self)
self.chat = resources.AsyncChat(self)
self.audio = resources.AsyncAudio(self)
self.models = resources.AsyncModels(self)
self.with_raw_response = AsyncGroqWithRawResponse(self)
self.with_streaming_response = AsyncGroqWithStreamedResponse(self)

Expand Down Expand Up @@ -395,34 +395,34 @@ def _make_status_error(

class GroqWithRawResponse:
def __init__(self, client: Groq) -> None:
self.embeddings = resources.EmbeddingsResourceWithRawResponse(client.embeddings)
self.chat = resources.ChatResourceWithRawResponse(client.chat)
self.audio = resources.AudioResourceWithRawResponse(client.audio)
self.models = resources.ModelsResourceWithRawResponse(client.models)
self.embeddings = resources.EmbeddingsWithRawResponse(client.embeddings)
self.chat = resources.ChatWithRawResponse(client.chat)
self.audio = resources.AudioWithRawResponse(client.audio)
self.models = resources.ModelsWithRawResponse(client.models)


class AsyncGroqWithRawResponse:
def __init__(self, client: AsyncGroq) -> None:
self.embeddings = resources.AsyncEmbeddingsResourceWithRawResponse(client.embeddings)
self.chat = resources.AsyncChatResourceWithRawResponse(client.chat)
self.audio = resources.AsyncAudioResourceWithRawResponse(client.audio)
self.models = resources.AsyncModelsResourceWithRawResponse(client.models)
self.embeddings = resources.AsyncEmbeddingsWithRawResponse(client.embeddings)
self.chat = resources.AsyncChatWithRawResponse(client.chat)
self.audio = resources.AsyncAudioWithRawResponse(client.audio)
self.models = resources.AsyncModelsWithRawResponse(client.models)


class GroqWithStreamedResponse:
def __init__(self, client: Groq) -> None:
self.embeddings = resources.EmbeddingsResourceWithStreamingResponse(client.embeddings)
self.chat = resources.ChatResourceWithStreamingResponse(client.chat)
self.audio = resources.AudioResourceWithStreamingResponse(client.audio)
self.models = resources.ModelsResourceWithStreamingResponse(client.models)
self.embeddings = resources.EmbeddingsWithStreamingResponse(client.embeddings)
self.chat = resources.ChatWithStreamingResponse(client.chat)
self.audio = resources.AudioWithStreamingResponse(client.audio)
self.models = resources.ModelsWithStreamingResponse(client.models)


class AsyncGroqWithStreamedResponse:
def __init__(self, client: AsyncGroq) -> None:
self.embeddings = resources.AsyncEmbeddingsResourceWithStreamingResponse(client.embeddings)
self.chat = resources.AsyncChatResourceWithStreamingResponse(client.chat)
self.audio = resources.AsyncAudioResourceWithStreamingResponse(client.audio)
self.models = resources.AsyncModelsResourceWithStreamingResponse(client.models)
self.embeddings = resources.AsyncEmbeddingsWithStreamingResponse(client.embeddings)
self.chat = resources.AsyncChatWithStreamingResponse(client.chat)
self.audio = resources.AsyncAudioWithStreamingResponse(client.audio)
self.models = resources.AsyncModelsWithStreamingResponse(client.models)


Client = Groq
Expand Down
96 changes: 48 additions & 48 deletions src/groq/resources/__init__.py
Original file line number Diff line number Diff line change
@@ -1,61 +1,61 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from .chat import (
ChatResource,
AsyncChatResource,
ChatResourceWithRawResponse,
AsyncChatResourceWithRawResponse,
ChatResourceWithStreamingResponse,
AsyncChatResourceWithStreamingResponse,
Chat,
AsyncChat,
ChatWithRawResponse,
AsyncChatWithRawResponse,
ChatWithStreamingResponse,
AsyncChatWithStreamingResponse,
)
from .audio import (
AudioResource,
AsyncAudioResource,
AudioResourceWithRawResponse,
AsyncAudioResourceWithRawResponse,
AudioResourceWithStreamingResponse,
AsyncAudioResourceWithStreamingResponse,
Audio,
AsyncAudio,
AudioWithRawResponse,
AsyncAudioWithRawResponse,
AudioWithStreamingResponse,
AsyncAudioWithStreamingResponse,
)
from .models import (
ModelsResource,
AsyncModelsResource,
ModelsResourceWithRawResponse,
AsyncModelsResourceWithRawResponse,
ModelsResourceWithStreamingResponse,
AsyncModelsResourceWithStreamingResponse,
Models,
AsyncModels,
ModelsWithRawResponse,
AsyncModelsWithRawResponse,
ModelsWithStreamingResponse,
AsyncModelsWithStreamingResponse,
)
from .embeddings import (
EmbeddingsResource,
AsyncEmbeddingsResource,
EmbeddingsResourceWithRawResponse,
AsyncEmbeddingsResourceWithRawResponse,
EmbeddingsResourceWithStreamingResponse,
AsyncEmbeddingsResourceWithStreamingResponse,
Embeddings,
AsyncEmbeddings,
EmbeddingsWithRawResponse,
AsyncEmbeddingsWithRawResponse,
EmbeddingsWithStreamingResponse,
AsyncEmbeddingsWithStreamingResponse,
)

__all__ = [
"EmbeddingsResource",
"AsyncEmbeddingsResource",
"EmbeddingsResourceWithRawResponse",
"AsyncEmbeddingsResourceWithRawResponse",
"EmbeddingsResourceWithStreamingResponse",
"AsyncEmbeddingsResourceWithStreamingResponse",
"ChatResource",
"AsyncChatResource",
"ChatResourceWithRawResponse",
"AsyncChatResourceWithRawResponse",
"ChatResourceWithStreamingResponse",
"AsyncChatResourceWithStreamingResponse",
"AudioResource",
"AsyncAudioResource",
"AudioResourceWithRawResponse",
"AsyncAudioResourceWithRawResponse",
"AudioResourceWithStreamingResponse",
"AsyncAudioResourceWithStreamingResponse",
"ModelsResource",
"AsyncModelsResource",
"ModelsResourceWithRawResponse",
"AsyncModelsResourceWithRawResponse",
"ModelsResourceWithStreamingResponse",
"AsyncModelsResourceWithStreamingResponse",
"Embeddings",
"AsyncEmbeddings",
"EmbeddingsWithRawResponse",
"AsyncEmbeddingsWithRawResponse",
"EmbeddingsWithStreamingResponse",
"AsyncEmbeddingsWithStreamingResponse",
"Chat",
"AsyncChat",
"ChatWithRawResponse",
"AsyncChatWithRawResponse",
"ChatWithStreamingResponse",
"AsyncChatWithStreamingResponse",
"Audio",
"AsyncAudio",
"AudioWithRawResponse",
"AsyncAudioWithRawResponse",
"AudioWithStreamingResponse",
"AsyncAudioWithStreamingResponse",
"Models",
"AsyncModels",
"ModelsWithRawResponse",
"AsyncModelsWithRawResponse",
"ModelsWithStreamingResponse",
"AsyncModelsWithStreamingResponse",
]
72 changes: 36 additions & 36 deletions src/groq/resources/audio/__init__.py
Original file line number Diff line number Diff line change
@@ -1,47 +1,47 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from .audio import (
AudioResource,
AsyncAudioResource,
AudioResourceWithRawResponse,
AsyncAudioResourceWithRawResponse,
AudioResourceWithStreamingResponse,
AsyncAudioResourceWithStreamingResponse,
Audio,
AsyncAudio,
AudioWithRawResponse,
AsyncAudioWithRawResponse,
AudioWithStreamingResponse,
AsyncAudioWithStreamingResponse,
)
from .translations import (
TranslationsResource,
AsyncTranslationsResource,
TranslationsResourceWithRawResponse,
AsyncTranslationsResourceWithRawResponse,
TranslationsResourceWithStreamingResponse,
AsyncTranslationsResourceWithStreamingResponse,
Translations,
AsyncTranslations,
TranslationsWithRawResponse,
AsyncTranslationsWithRawResponse,
TranslationsWithStreamingResponse,
AsyncTranslationsWithStreamingResponse,
)
from .transcriptions import (
TranscriptionsResource,
AsyncTranscriptionsResource,
TranscriptionsResourceWithRawResponse,
AsyncTranscriptionsResourceWithRawResponse,
TranscriptionsResourceWithStreamingResponse,
AsyncTranscriptionsResourceWithStreamingResponse,
Transcriptions,
AsyncTranscriptions,
TranscriptionsWithRawResponse,
AsyncTranscriptionsWithRawResponse,
TranscriptionsWithStreamingResponse,
AsyncTranscriptionsWithStreamingResponse,
)

__all__ = [
"TranscriptionsResource",
"AsyncTranscriptionsResource",
"TranscriptionsResourceWithRawResponse",
"AsyncTranscriptionsResourceWithRawResponse",
"TranscriptionsResourceWithStreamingResponse",
"AsyncTranscriptionsResourceWithStreamingResponse",
"TranslationsResource",
"AsyncTranslationsResource",
"TranslationsResourceWithRawResponse",
"AsyncTranslationsResourceWithRawResponse",
"TranslationsResourceWithStreamingResponse",
"AsyncTranslationsResourceWithStreamingResponse",
"AudioResource",
"AsyncAudioResource",
"AudioResourceWithRawResponse",
"AsyncAudioResourceWithRawResponse",
"AudioResourceWithStreamingResponse",
"AsyncAudioResourceWithStreamingResponse",
"Transcriptions",
"AsyncTranscriptions",
"TranscriptionsWithRawResponse",
"AsyncTranscriptionsWithRawResponse",
"TranscriptionsWithStreamingResponse",
"AsyncTranscriptionsWithStreamingResponse",
"Translations",
"AsyncTranslations",
"TranslationsWithRawResponse",
"AsyncTranslationsWithRawResponse",
"TranslationsWithStreamingResponse",
"AsyncTranslationsWithStreamingResponse",
"Audio",
"AsyncAudio",
"AudioWithRawResponse",
"AsyncAudioWithRawResponse",
"AudioWithStreamingResponse",
"AsyncAudioWithStreamingResponse",
]
Loading

0 comments on commit ed1ea2a

Please sign in to comment.