Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.7
rev: v0.16.7
hooks:
- id: ruff-check
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.19.1
rev: v2.3.1
hooks:
- id: mypy
args: [., --strict, --ignore-missing-imports, --exclude=^codegen]
Expand Down
2 changes: 1 addition & 1 deletion docs/how-to/generate-images.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ need a currently available model name; registered users should pass their API ke
## Submit a bounded request

```python
--8<-- "examples/docs/client_recipes.py:image-request"
--8 < --"examples/docs/client_recipes.py:image-request"
```

Pass `timeout=300` to `image_generate_request` when your application has a five-minute upper bound. The returned status
Expand Down
2 changes: 1 addition & 1 deletion docs/how-to/generate-text.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Choose a text model currently reported by AI Horde and decide the maximum output
the request. The simple client polls the text status endpoint and returns typed generations.

```python
--8<-- "examples/docs/client_recipes.py:text-request"
--8 < --"examples/docs/client_recipes.py:text-request"
```

Call `generate_text(model="CURRENT_MODEL_NAME")` and verify that the returned string is non-empty. A model name can
Expand Down
2 changes: 1 addition & 1 deletion docs/how-to/run-alchemy.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The source image must be a public HTTP(S) URL or a base64 string. Choose one or
`KNOWN_ALCHEMY_TYPES`; each form produces its own state and result.

```python
--8<-- "examples/docs/client_recipes.py:alchemy-request"
--8 < --"examples/docs/client_recipes.py:alchemy-request"
```

Call `caption_image("https://example.invalid/public-image.webp")` with a real public URL. Verify that `status.forms`
Expand Down
2 changes: 1 addition & 1 deletion docs/how-to/use-async-client.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Use the async client inside an existing `asyncio` application. The caller owns t
is the observable end of its connection pool and must happen after all Horde calls finish.

```python
--8<-- "examples/docs/client_recipes.py:async-request"
--8 < --"examples/docs/client_recipes.py:async-request"
```

Verify that the coroutine returns non-empty bytes and that no unclosed-session warning appears. For multiple requests,
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial/first-image.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ The example builds one 512 by 512 request. The `dry_run` field is the only diffe
submission.

```python
--8<-- "examples/docs/first_image.py:first-image"
--8 < --"examples/docs/first_image.py:first-image"
```

The simple client owns polling and best-effort cleanup. The request model validates its shape before the first network
Expand Down
Loading