Skip to content

Commit

Permalink
feat: update via SDK Studio (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Feb 21, 2024
1 parent b9b55b4 commit 0c0d204
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: CI
on:
push:
branches:
- main
- stainless
pull_request:
branches:
- main
- stainless

jobs:
lint:
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -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
Expand Down Expand Up @@ -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`

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
12 changes: 6 additions & 6 deletions requirements-dev.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
12 changes: 6 additions & 6 deletions requirements.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,33 +11,33 @@
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
# via httpcore
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

0 comments on commit 0c0d204

Please sign in to comment.