From 0c0d20405a96167f060a03a2b8a58a49d9a1c7c8 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 21 Feb 2024 01:52:55 +0000 Subject: [PATCH] feat: update via SDK Studio (#10) --- .github/workflows/ci.yml | 4 ++-- README.md | 8 ++++---- pyproject.toml | 2 +- requirements-dev.lock | 12 ++++++------ requirements.lock | 12 ++++++------ 5 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fca066e..dfb911f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,10 +2,10 @@ name: CI on: push: branches: - - main + - stainless pull_request: branches: - - main + - stainless jobs: lint: diff --git a/README.md b/README.md index 449ef18..5c0abdd 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Groq Python API library -[![PyPI version](https://img.shields.io/pypi/v/groq-sdk.svg)](https://pypi.org/project/groq-sdk/) +[![PyPI version](https://img.shields.io/pypi/v/groq.svg)](https://pypi.org/project/groq/) The Groq Python library provides convenient access to the Groq REST API from any Python 3.7+ application. The library includes type definitions for all request params and response fields, @@ -13,7 +13,7 @@ The REST API documentation can be found [on console.groq.com](https://console.gr ## Installation ```sh -pip install groq-sdk +pip install groq ``` ## Usage @@ -261,9 +261,9 @@ completion = response.parse() # get the object that `chat.completions.create()` print(completion.id) ``` -These methods return an [`APIResponse`](https://github.com/groq/groq-python/tree/main/src/groq/_response.py) object. +These methods return an [`APIResponse`](https://github.com/groq/groq-python/tree/stainless/src/groq/_response.py) object. -The async client returns an [`AsyncAPIResponse`](https://github.com/groq/groq-python/tree/main/src/groq/_response.py) with the same structure, the only difference being `await`able methods for reading the response content. +The async client returns an [`AsyncAPIResponse`](https://github.com/groq/groq-python/tree/stainless/src/groq/_response.py) with the same structure, the only difference being `await`able methods for reading the response content. #### `.with_streaming_response` diff --git a/pyproject.toml b/pyproject.toml index 9a9918f..f3c156b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,5 @@ [project] -name = "groq-sdk" +name = "groq" version = "0.1.0" description = "The official Python library for the groq API" readme = "README.md" diff --git a/requirements-dev.lock b/requirements-dev.lock index 36fa001..fb76b53 100644 --- a/requirements-dev.lock +++ b/requirements-dev.lock @@ -11,7 +11,7 @@ annotated-types==0.6.0 # via pydantic anyio==4.1.0 - # via groq-sdk + # via groq # via httpx argcomplete==3.1.2 # via nox @@ -26,7 +26,7 @@ dirty-equals==0.6.0 distlib==0.3.7 # via virtualenv distro==1.8.0 - # via groq-sdk + # via groq exceptiongroup==1.1.3 # via anyio filelock==3.12.4 @@ -36,7 +36,7 @@ h11==0.14.0 httpcore==1.0.2 # via httpx httpx==0.25.2 - # via groq-sdk + # via groq # via respx idna==3.4 # via anyio @@ -60,7 +60,7 @@ pluggy==1.3.0 py==1.11.0 # via pytest pydantic==2.4.2 - # via groq-sdk + # via groq pydantic-core==2.10.1 # via pydantic pyright==1.1.332 @@ -79,14 +79,14 @@ six==1.16.0 # via python-dateutil sniffio==1.3.0 # via anyio - # via groq-sdk + # via groq # via httpx time-machine==2.9.0 tomli==2.0.1 # via mypy # via pytest typing-extensions==4.8.0 - # via groq-sdk + # via groq # via mypy # via pydantic # via pydantic-core diff --git a/requirements.lock b/requirements.lock index 579ab69..991544f 100644 --- a/requirements.lock +++ b/requirements.lock @@ -11,13 +11,13 @@ annotated-types==0.6.0 # via pydantic anyio==4.1.0 - # via groq-sdk + # via groq # via httpx certifi==2023.7.22 # via httpcore # via httpx distro==1.8.0 - # via groq-sdk + # via groq exceptiongroup==1.1.3 # via anyio h11==0.14.0 @@ -25,19 +25,19 @@ h11==0.14.0 httpcore==1.0.2 # via httpx httpx==0.25.2 - # via groq-sdk + # via groq idna==3.4 # via anyio # via httpx pydantic==2.4.2 - # via groq-sdk + # via groq pydantic-core==2.10.1 # via pydantic sniffio==1.3.0 # via anyio - # via groq-sdk + # via groq # via httpx typing-extensions==4.8.0 - # via groq-sdk + # via groq # via pydantic # via pydantic-core