Skip to content

Commit c4e851b

Browse files
committed
Release 0.0.1-beta3
1 parent 8232b7c commit c4e851b

File tree

186 files changed

+9457
-32135
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

186 files changed

+9457
-32135
lines changed

README.md

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,18 @@ pip install gooeyai
1616
Instantiate and use the client with the following:
1717

1818
```python
19-
from gooey import Gooey
19+
from gooey import AnimationPrompt, Gooey
2020

2121
client = Gooey(
22-
authorization="YOUR_AUTHORIZATION",
2322
api_key="YOUR_API_KEY",
2423
)
25-
client.copilot_integrations.video_bots_stream_create(
26-
integration_id="integration_id",
24+
client.animate(
25+
animation_prompts=[
26+
AnimationPrompt(
27+
frame="frame",
28+
prompt="prompt",
29+
)
30+
],
2731
)
2832
```
2933

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

37-
from gooey import AsyncGooey
41+
from gooey import AnimationPrompt, AsyncGooey
3842

3943
client = AsyncGooey(
40-
authorization="YOUR_AUTHORIZATION",
4144
api_key="YOUR_API_KEY",
4245
)
4346

4447

4548
async def main() -> None:
46-
await client.copilot_integrations.video_bots_stream_create(
47-
integration_id="integration_id",
49+
await client.animate(
50+
animation_prompts=[
51+
AnimationPrompt(
52+
frame="frame",
53+
prompt="prompt",
54+
)
55+
],
4856
)
4957

5058

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

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

8593
```python
86-
client.copilot_integrations.video_bots_stream_create(..., {
94+
client.animate(..., {
8795
"max_retries": 1
8896
})
8997
```
@@ -103,7 +111,7 @@ client = Gooey(
103111

104112

105113
# Override timeout for a specific method
106-
client.copilot_integrations.video_bots_stream_create(..., {
114+
client.animate(..., {
107115
"timeout_in_seconds": 1
108116
})
109117
```

poetry.lock

Lines changed: 14 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "gooeyai"
3-
version = "0.0.1b1"
3+
version = "0.0.1-beta3"
44
description = ""
55
readme = "README.md"
66
authors = []

0 commit comments

Comments
 (0)