Skip to content

Commit fdc4809

Browse files
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.383.2 (#4)
Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
1 parent 9d48b50 commit fdc4809

9 files changed

Lines changed: 73 additions & 60 deletions

File tree

.speakeasy/gen.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
lockVersion: 2.0.0
22
id: 2d5dbf5a-62be-411a-9c7b-bc7b6dc79e13
33
management:
4-
docChecksum: 130845ee701d46932641282f72ec57ab
5-
docVersion: v0.1.2
6-
speakeasyVersion: 1.382.0
7-
generationVersion: 2.404.11
8-
releaseVersion: 0.1.6
9-
configChecksum: 854f77d98a5a18662518beffbd1f9e41
4+
docChecksum: 24fe39a0fb7794800b7d995f98944b86
5+
docVersion: v0.1.3
6+
speakeasyVersion: 1.383.2
7+
generationVersion: 2.407.0
8+
releaseVersion: 0.1.7
9+
configChecksum: 6143927efa067c439ee8808c633660fd
1010
repoURL: https://github.com/livepeer/livepeer-ai-python.git
1111
installationURL: https://github.com/livepeer/livepeer-ai-python.git
1212
features:
1313
python:
1414
additionalDependencies: 1.0.0
1515
constsAndDefaults: 1.0.2
16-
core: 5.4.1
16+
core: 5.4.2
1717
defaultEnabledRetries: 0.2.0
1818
devContainers: 3.0.0
1919
envVarSecurityUsage: 0.3.1

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ generation:
1515
auth:
1616
oAuth2ClientCredentialsEnabled: false
1717
python:
18-
version: 0.1.6
18+
version: 0.1.7
1919
additionalDependencies:
2020
dev: {}
2121
main: {}

.speakeasy/workflow.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
speakeasyVersion: 1.382.0
1+
speakeasyVersion: 1.383.2
22
sources:
33
livepeer_ai-OAS:
44
sourceNamespace: livepeer-ai-oas
5-
sourceRevisionDigest: sha256:dbea8467cf8e1a0ef0cf767996b061733413ffc0b2a5857661ad41e0a51bd1b6
6-
sourceBlobDigest: sha256:25056b91ebfc680137633064f5f3d767eb0bf6541a873d9e342013ed06a636ee
5+
sourceRevisionDigest: sha256:dc8a34ad23c433035d3b919390f524abd2bc777cc8fc37ddcadbb0aada0b3615
6+
sourceBlobDigest: sha256:6062f3b4ac6538ff6f4465a264f1806261e6509c5581be6c2189430acb21b315
77
tags:
88
- latest
99
- main
@@ -17,10 +17,10 @@ targets:
1717
livepeer-ai-python:
1818
source: livepeer_ai-OAS
1919
sourceNamespace: livepeer-ai-oas
20-
sourceRevisionDigest: sha256:dbea8467cf8e1a0ef0cf767996b061733413ffc0b2a5857661ad41e0a51bd1b6
21-
sourceBlobDigest: sha256:25056b91ebfc680137633064f5f3d767eb0bf6541a873d9e342013ed06a636ee
20+
sourceRevisionDigest: sha256:dc8a34ad23c433035d3b919390f524abd2bc777cc8fc37ddcadbb0aada0b3615
21+
sourceBlobDigest: sha256:6062f3b4ac6538ff6f4465a264f1806261e6509c5581be6c2189430acb21b315
2222
codeSamplesNamespace: code-samples-python-livepeer-python
23-
codeSamplesRevisionDigest: sha256:38b96e9022d981c971387eb31adab018ee4a6db659c8544a926b00533be515bf
23+
codeSamplesRevisionDigest: sha256:b20f0df201d0eac5b01b9624f45db9f37ecbf5f8945051415eba3fc171d06b07
2424
outLocation: /github/workspace/repo
2525
workflow:
2626
workflowVersion: 1.0.0

README.md

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,20 @@ Welcome to the [Livepeer AI](https://livepeer.ai/) Python! This library offers a
1212
<!-- Start SDK Installation [installation] -->
1313
## SDK Installation
1414

15-
PIP
15+
The SDK can be installed with either *pip* or *poetry* package managers.
16+
17+
### PIP
18+
19+
*PIP* is the default package installer for Python, enabling easy installation and management of packages from PyPI via the command line.
20+
1621
```bash
1722
pip install git+https://github.com/livepeer/livepeer-ai-python.git
1823
```
1924

20-
Poetry
25+
### Poetry
26+
27+
*Poetry* is a modern tool that simplifies dependency management and package publishing by using a single `pyproject.toml` file to handle project metadata and dependencies.
28+
2129
```bash
2230
poetry add git+https://github.com/livepeer/livepeer-ai-python.git
2331
```
@@ -199,10 +207,10 @@ try:
199207
})
200208

201209
except models.HTTPError as e:
202-
# handle exception
210+
# handle e.data: models.HTTPErrorData
203211
raise(e)
204212
except models.HTTPValidationError as e:
205-
# handle exception
213+
# handle e.data: models.HTTPValidationErrorData
206214
raise(e)
207215
except models.SDKError as e:
208216
# handle exception
@@ -399,6 +407,28 @@ s = LivepeerAI(debug_logger=logging.getLogger("livepeer_ai"))
399407
```
400408
<!-- End Debugging [debug] -->
401409

410+
<!-- Start Summary [summary] -->
411+
## Summary
412+
413+
Livepeer AI Runner: An application to run AI pipelines
414+
<!-- End Summary [summary] -->
415+
416+
<!-- Start Table of Contents [toc] -->
417+
## Table of Contents
418+
419+
* [SDK Installation](#sdk-installation)
420+
* [IDE Support](#ide-support)
421+
* [SDK Example Usage](#sdk-example-usage)
422+
* [Available Resources and Operations](#available-resources-and-operations)
423+
* [File uploads](#file-uploads)
424+
* [Retries](#retries)
425+
* [Error Handling](#error-handling)
426+
* [Server Selection](#server-selection)
427+
* [Custom HTTP Client](#custom-http-client)
428+
* [Authentication](#authentication)
429+
* [Debugging](#debugging)
430+
<!-- End Table of Contents [toc] -->
431+
402432
<!-- Placeholder for Future Speakeasy SDK Sections -->
403433

404434
# Development

RELEASES.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,12 @@ Based on:
1414
- OpenAPI Doc
1515
- Speakeasy CLI 1.382.0 (2.404.11) https://github.com/speakeasy-api/speakeasy
1616
### Generated
17-
- [python v0.1.6] .
17+
- [python v0.1.6] .
18+
19+
## 2024-08-30 00:15:23
20+
### Changes
21+
Based on:
22+
- OpenAPI Doc
23+
- Speakeasy CLI 1.383.2 (2.407.0) https://github.com/speakeasy-api/speakeasy
24+
### Generated
25+
- [python v0.1.7] .

poetry.lock

Lines changed: 1 addition & 30 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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "livepeer-ai"
3-
version = "0.1.6"
3+
version = "0.1.7"
44
description = "Python Client SDK for the Livepeer AI API."
55
authors = ["Livepeer",]
66
readme = "README-PYPI.md"
@@ -28,7 +28,6 @@ typing-inspect = "^0.9.0"
2828
[tool.poetry.group.dev.dependencies]
2929
mypy = "==1.10.1"
3030
pylint = "==3.2.3"
31-
pyright = "==1.1.374"
3231
types-python-dateutil = "^2.9.0.20240316"
3332

3433
[build-system]

src/livepeer_ai/sdkconfiguration.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ class SDKConfiguration:
2828
server_url: Optional[str] = ""
2929
server_idx: Optional[int] = 0
3030
language: str = "python"
31-
openapi_doc_version: str = "v0.1.2"
32-
sdk_version: str = "0.1.6"
33-
gen_version: str = "2.404.11"
34-
user_agent: str = "speakeasy-sdk/python 0.1.6 2.404.11 v0.1.2 livepeer-ai"
31+
openapi_doc_version: str = "v0.1.3"
32+
sdk_version: str = "0.1.7"
33+
gen_version: str = "2.407.0"
34+
user_agent: str = "speakeasy-sdk/python 0.1.7 2.407.0 v0.1.3 livepeer-ai"
3535
retry_config: OptionalNullable[RetryConfig] = Field(default_factory=lambda: UNSET)
3636
timeout_ms: Optional[int] = None
3737

src/livepeer_ai/utils/security.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ def get_security(security: Any) -> Tuple[Dict[str, str], Dict[str, List[str]]]:
4242
_parse_security_option(headers, query_params, value)
4343
return headers, query_params
4444
if metadata.scheme:
45-
# Special case for basic auth which could be a flattened model
46-
if metadata.sub_type == "basic" and not isinstance(value, BaseModel):
45+
# Special case for basic auth or custom auth which could be a flattened model
46+
if metadata.sub_type in ["basic", "custom"] and not isinstance(value, BaseModel):
4747
_parse_security_scheme(headers, query_params, metadata, name, security)
4848
else:
4949
_parse_security_scheme(headers, query_params, metadata, name, value)
@@ -80,9 +80,12 @@ def _parse_security_scheme(
8080
sub_type = scheme_metadata.sub_type
8181

8282
if isinstance(scheme, BaseModel):
83-
if scheme_type == "http" and sub_type == "basic":
84-
_parse_basic_auth_scheme(headers, scheme)
85-
return
83+
if scheme_type == "http":
84+
if sub_type == "basic":
85+
_parse_basic_auth_scheme(headers, scheme)
86+
return
87+
if sub_type == "custom":
88+
return
8689

8790
scheme_fields: Dict[str, FieldInfo] = scheme.__class__.model_fields
8891
for name in scheme_fields:
@@ -131,6 +134,8 @@ def _parse_security_scheme_value(
131134
elif scheme_type == "http":
132135
if sub_type == "bearer":
133136
headers[header_name] = _apply_bearer(value)
137+
elif sub_type == "custom":
138+
return
134139
else:
135140
raise ValueError("sub type {sub_type} not supported")
136141
else:

0 commit comments

Comments
 (0)