Skip to content

Commit

Permalink
Release 0.0.1-beta3
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Sep 5, 2024
1 parent 8232b7c commit c4e851b
Show file tree
Hide file tree
Showing 186 changed files with 9,457 additions and 32,135 deletions.
30 changes: 19 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,18 @@ pip install gooeyai
Instantiate and use the client with the following:

```python
from gooey import Gooey
from gooey import AnimationPrompt, Gooey

client = Gooey(
authorization="YOUR_AUTHORIZATION",
api_key="YOUR_API_KEY",
)
client.copilot_integrations.video_bots_stream_create(
integration_id="integration_id",
client.animate(
animation_prompts=[
AnimationPrompt(
frame="frame",
prompt="prompt",
)
],
)
```

Expand All @@ -34,17 +38,21 @@ The SDK also exports an `async` client so that you can make non-blocking calls t
```python
import asyncio

from gooey import AsyncGooey
from gooey import AnimationPrompt, AsyncGooey

client = AsyncGooey(
authorization="YOUR_AUTHORIZATION",
api_key="YOUR_API_KEY",
)


async def main() -> None:
await client.copilot_integrations.video_bots_stream_create(
integration_id="integration_id",
await client.animate(
animation_prompts=[
AnimationPrompt(
frame="frame",
prompt="prompt",
)
],
)


Expand All @@ -60,7 +68,7 @@ will be thrown.
from gooey.core.api_error import ApiError

try:
client.copilot_integrations.video_bots_stream_create(...)
client.animate(...)
except ApiError as e:
print(e.status_code)
print(e.body)
Expand All @@ -83,7 +91,7 @@ A request is deemed retriable when any of the following HTTP status codes is ret
Use the `max_retries` request option to configure this behavior.

```python
client.copilot_integrations.video_bots_stream_create(..., {
client.animate(..., {
"max_retries": 1
})
```
Expand All @@ -103,7 +111,7 @@ client = Gooey(


# Override timeout for a specific method
client.copilot_integrations.video_bots_stream_create(..., {
client.animate(..., {
"timeout_in_seconds": 1
})
```
Expand Down
27 changes: 14 additions & 13 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "gooeyai"
version = "0.0.1b1"
version = "0.0.1-beta3"
description = ""
readme = "README.md"
authors = []
Expand Down
Loading

0 comments on commit c4e851b

Please sign in to comment.