Skip to content

Commit

Permalink
feat: Add initial Stainless SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Feb 16, 2024
1 parent f92fc4f commit 4de80db
Show file tree
Hide file tree
Showing 15 changed files with 14 additions and 509 deletions.
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.4.0"
".": "0.1.0"
}
15 changes: 0 additions & 15 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,5 @@
# Changelog

## 0.4.0 (2024-02-14)

Full Changelog: [v0.1.0...v0.4.0](https://github.com/groq/groq-python/compare/v0.1.0...v0.4.0)

### Features

* Add initial Stainless SDK ([316de2c](https://github.com/groq/groq-python/commit/316de2ccfeb76e36fe34bb8656ea90a8d42a7d00))
* create default branch ([7e00266](https://github.com/groq/groq-python/commit/7e00266e3c691d92d508e753e2c14c03297c09f9))
* update via SDK Studio ([#3](https://github.com/groq/groq-python/issues/3)) ([2241036](https://github.com/groq/groq-python/commit/2241036e9dbee6629ad7ebce5e6f4f5e5f1028ce))


### Chores

* go live ([#2](https://github.com/groq/groq-python/issues/2)) ([13665ad](https://github.com/groq/groq-python/commit/13665ad76705513d99cbaa497ccccc694932f2c3))

## 0.1.0 (2024-02-10)

Full Changelog: [v0.0.1...v0.1.0](https://github.com/definitive-io/groqcloud-python/compare/v0.0.1...v0.1.0)
Expand Down
Empty file modified bin/check-test-server
100755 → 100644
Empty file.
Empty file modified bin/test
100755 → 100644
Empty file.
55 changes: 0 additions & 55 deletions examples/chat_completion.py

This file was deleted.

62 changes: 0 additions & 62 deletions examples/chat_completion_async.py

This file was deleted.

60 changes: 0 additions & 60 deletions examples/chat_completion_async_streaming.py

This file was deleted.

58 changes: 0 additions & 58 deletions examples/chat_completion_stop.py

This file was deleted.

56 changes: 0 additions & 56 deletions examples/chat_completion_streaming.py

This file was deleted.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "groq"
version = "0.4.0"
version = "0.1.0"
description = "The official Python library for the groq API"
readme = "README.md"
license = "Apache-2.0"
Expand Down
4 changes: 0 additions & 4 deletions src/groq/_streaming.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ def __stream__(self) -> Iterator[_T]:
iterator = self._iter_events()

for sse in iterator:
if sse.data.startswith("[DONE]"):
break
yield process_data(data=sse.json(), cast_to=cast_to, response=response)

# Ensure the entire stream is consumed
Expand Down Expand Up @@ -108,8 +106,6 @@ async def __aiter__(self) -> AsyncIterator[_T]:

async def _iter_events(self) -> AsyncIterator[ServerSentEvent]:
async for sse in self._decoder.aiter(self.response.aiter_lines()):
if sse.data.startswith("[DONE]"):
break
yield sse

async def __stream__(self) -> AsyncIterator[_T]:
Expand Down
2 changes: 1 addition & 1 deletion src/groq/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless.

__title__ = "groq"
__version__ = "0.4.0" # x-release-please-version
__version__ = "0.1.0" # x-release-please-version
Loading

0 comments on commit 4de80db

Please sign in to comment.