Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.352.2
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Aug 6, 2024
1 parent 44ac3c0 commit 1ca246f
Show file tree
Hide file tree
Showing 71 changed files with 175 additions and 255 deletions.
12 changes: 6 additions & 6 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,23 @@ id: 2a6c8ff2-6c9d-4fc5-a507-95a5d089b5af
management:
docChecksum: aea5a73b9583c0fdf1ec010fc21d74d1
docVersion: 1.0.0
speakeasyVersion: 1.337.1
generationVersion: 2.373.2
releaseVersion: 0.1.0
configChecksum: 5ec210e15b6a4f2b92bfc977acd7e85c
speakeasyVersion: 1.352.2
generationVersion: 2.385.2
releaseVersion: 0.1.1
configChecksum: b9abcd781122655a07a3dad8c48a4c1b
repoURL: https://github.com/log10-io/log10py.git
installationURL: https://github.com/log10-io/log10py.git
published: true
features:
python:
additionalDependencies: 0.1.0
constsAndDefaults: 0.1.3
core: 4.8.2
core: 4.8.4
deprecations: 2.81.1
examples: 2.81.3
flattening: 2.81.1
getRequestBodies: 2.81.1
globalSecurity: 2.83.5
globalSecurity: 2.83.6
globalSecurityCallbacks: 0.1.0
globalSecurityFlattening: 0.1.0
globalServerURLs: 2.82.2
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: false
python:
version: 0.1.0
version: 0.1.1
additionalDependencies:
dependencies: {}
extraDependencies:
Expand Down
6 changes: 3 additions & 3 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
speakeasyVersion: 1.337.1
speakeasyVersion: 1.352.2
sources:
default:
sourceNamespace: default
sourceRevisionDigest: sha256:5da4021f6036b0be1a204b4dcec6332ae1ccc6136ac3b77e44cf6abe673883c3
sourceRevisionDigest: sha256:e505e9e9724320faea39ce145f8244a0b8a13a4952f2ed4bfa6f00f3de603e85
sourceBlobDigest: sha256:d1e010919c08f597168ae1e22e619e4158f3c8e600ddebb3f3c2855834d8d590
tags:
- latest
Expand All @@ -11,7 +11,7 @@ targets:
my-first-target:
source: default
sourceNamespace: default
sourceRevisionDigest: sha256:5da4021f6036b0be1a204b4dcec6332ae1ccc6136ac3b77e44cf6abe673883c3
sourceRevisionDigest: sha256:e505e9e9724320faea39ce145f8244a0b8a13a4952f2ed4bfa6f00f3de603e85
sourceBlobDigest: sha256:d1e010919c08f597168ae1e22e619e4158f3c8e600ddebb3f3c2855834d8d590
outLocation: /github/workspace/repo
workflow:
Expand Down
104 changes: 6 additions & 98 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ s = log10.Log10(
)


res = s.sessions.create(x_log10_organization='<value>')
res = s.sessions.create()

if res.object is not None:
# handle response
Expand Down Expand Up @@ -72,98 +72,6 @@ if res.object is not None:
* [get](docs/sdks/feedbacktasks/README.md#get) - Retrieves feedback task `taskId`.
<!-- End Available Resources and Operations [operations] -->

<!-- Start Global Parameters [global-parameters] -->
## Global Parameters

A parameter is configured globally. This parameter may be set on the SDK client instance itself during initialization. When configured as an option during SDK initialization, This global value will be used as the default on the operations that use it. When such operations are called, there is a place in each to override the global value, if needed.

For example, you can set `X-Log10-Organization` to `'<value>'` at SDK initialization and then you do not have to pass the same value on calls to operations like `update`. But if you want to do so you may, which will locally override the global setting. See the example code below for a demonstration.


### Available Globals

The following global parameter is available.

| Name | Type | Required | Description |
| ---- | ---- |:--------:| ----------- |
| x_log10_organization | str | | The x_log10_organization parameter. |


### Example

```python
import log10
from log10.models import components

s = log10.Log10(
log10_token="<YOUR_API_KEY_HERE>",
)


res = s.completions.update(completion_id='<value>', completion=components.Completion(
organization_id='<value>',
request=components.CreateChatCompletionRequest(
messages=[
components.ChatCompletionRequestFunctionMessage(
role=components.ChatCompletionRole.SYSTEM,
content='<value>',
name='<value>',
),
],
model='gpt-4-turbo',
n=1,
response_format=components.ResponseFormat(
type=components.CreateChatCompletionRequestType.JSON_OBJECT,
),
temperature=1,
top_p=1,
user='user-1234',
),
response=components.CreateChatCompletionResponse(
id='<id>',
choices=[
components.Choices(
finish_reason=components.FinishReason.TOOL_CALLS,
index=15652,
message=components.ChatCompletionResponseMessage(
content='<value>',
role=components.ChatCompletionRole.USER,
),
logprobs=components.Logprobs(
content=[
components.ChatCompletionTokenLogprob(
token='<value>',
logprob=7084.55,
bytes=[
991464,
],
top_logprobs=[
components.TopLogprobs(
token='<value>',
logprob=2703.24,
bytes=[
627690,
],
),
],
),
],
),
),
],
created=684199,
model='gpt-4-turbo',
object=components.Object.CHAT_COMPLETION,
),
), x_log10_organization='<value>')

if res.completion is not None:
# handle response
pass

```
<!-- End Global Parameters [global-parameters] -->

<!-- Start Error Handling [errors] -->
## Error Handling

Expand Down Expand Up @@ -238,7 +146,7 @@ try:
model='gpt-4-turbo',
object=components.Object.CHAT_COMPLETION,
),
), x_log10_organization='<value>')
))

except errors.SDKError as e:
# handle exception
Expand Down Expand Up @@ -327,7 +235,7 @@ res = s.completions.create(completion=components.Completion(
model='gpt-4-turbo',
object=components.Object.CHAT_COMPLETION,
),
), x_log10_organization='<value>')
))

if res.any is not None:
# handle response
Expand Down Expand Up @@ -402,7 +310,7 @@ res = s.completions.create(completion=components.Completion(
model='gpt-4-turbo',
object=components.Object.CHAT_COMPLETION,
),
), x_log10_organization='<value>')
))

if res.any is not None:
# handle response
Expand Down Expand Up @@ -438,7 +346,7 @@ This SDK supports the following security scheme globally:
| ------------- | ------------- | ------------- |
| `log10_token` | apiKey | API key |

To authenticate with the API the `log10_token` parameter must be set when initializing the SDK client instance. For example:
To authenticate with the API the `null` parameter must be set when initializing the SDK client instance. For example:
```python
import log10
from log10.models import components
Expand Down Expand Up @@ -501,7 +409,7 @@ res = s.completions.create(completion=components.Completion(
model='gpt-4-turbo',
object=components.Object.CHAT_COMPLETION,
),
), x_log10_organization='<value>')
))

if res.any is not None:
# handle response
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,14 @@ Based on:
### Generated
- [python v0.1.0] .
### Releases
- [PyPI v0.1.0] https://pypi.org/project/log10py/0.1.0 - .
- [PyPI v0.1.0] https://pypi.org/project/log10py/0.1.0 - .

## 2024-08-06 00:04:00
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.352.2 (2.385.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.1.1] .
### Releases
- [PyPI v0.1.1] https://pypi.org/project/log10py/0.1.1 - .
2 changes: 1 addition & 1 deletion USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ s = log10.Log10(
)


res = s.sessions.create(x_log10_organization='<value>')
res = s.sessions.create()

if res.object is not None:
# handle response
Expand Down
2 changes: 1 addition & 1 deletion docs/models/components/security.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@

| Field | Type | Required | Description |
| ------------------ | ------------------ | ------------------ | ------------------ |
| `log10_token` | *Optional[str]* | :heavy_minus_sign: | N/A |
| `log10_token` | *str* | :heavy_check_mark: | N/A |
6 changes: 3 additions & 3 deletions docs/sdks/completions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ res = s.completions.create(completion=components.Completion(
model='gpt-4-turbo',
object=components.Object.CHAT_COMPLETION,
),
), x_log10_organization='<value>')
))

if res.any is not None:
# handle response
Expand Down Expand Up @@ -174,7 +174,7 @@ res = s.completions.update(completion_id='<value>', completion=components.Comple
model='gpt-4-turbo',
object=components.Object.CHAT_COMPLETION,
),
), x_log10_organization='<value>')
))

if res.completion is not None:
# handle response
Expand Down Expand Up @@ -214,7 +214,7 @@ s = log10.Log10(
)


res = s.completions.list_ungraded(x_log10_organization='<value>')
res = s.completions.list_ungraded()

if res.object is not None:
# handle response
Expand Down
7 changes: 3 additions & 4 deletions docs/sdks/feedback/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ s = log10.Log10(
)


res = s.feedback.get(feedback_id='<value>', x_log10_organization='<value>')
res = s.feedback.get(feedback_id='<value>')

if res.feedback is not None:
# handle response
Expand Down Expand Up @@ -58,14 +58,13 @@ List feedback

```python
import log10
from log10.models import operations

s = log10.Log10(
log10_token="<YOUR_API_KEY_HERE>",
)


res = s.feedback.list(x_log10_organization='<value>', request_body=operations.ListRequestBody())
res = s.feedback.list()

if res.object is not None:
# handle response
Expand Down Expand Up @@ -116,7 +115,7 @@ res = s.feedback.upload(request_body=operations.One(
completion_tags_selector=[
'<value>',
],
), x_log10_organization='<value>')
))

if res.feedback is not None:
# handle response
Expand Down
8 changes: 1 addition & 7 deletions docs/sdks/feedbacktasks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,19 +51,13 @@ Create a new task.

```python
import log10
from log10.models import components

s = log10.Log10(
log10_token="<YOUR_API_KEY_HERE>",
)


res = s.feedback_tasks.create(request=components.Task(
json_schema=components.JSONSchema(),
name='<value>',
instruction='<value>',
completion_tags_selector=components.CompletionTagsSelector(),
))
res = s.feedback_tasks.create()

if res.task is not None:
# handle response
Expand Down
2 changes: 1 addition & 1 deletion docs/sdks/sessions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ s = log10.Log10(
)


res = s.sessions.create(x_log10_organization='<value>')
res = s.sessions.create()

if res.object is not None:
# handle response
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT."""
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""

import setuptools
import re
Expand All @@ -19,7 +19,7 @@

setuptools.setup(
name='log10py',
version='0.1.0',
version='0.1.1',
author='Speakeasy',
description='Python Client SDK Generated by Speakeasy',
url='https://github.com/log10-io/log10py.git',
Expand Down
2 changes: 1 addition & 1 deletion src/log10/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT."""
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""

from .sdk import *
from .sdkconfiguration import *
2 changes: 1 addition & 1 deletion src/log10/_hooks/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT."""
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""

from .sdkhooks import *
from .types import *
2 changes: 1 addition & 1 deletion src/log10/_hooks/sdkhooks.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT."""
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""

import requests
from .types import SDKInitHook, BeforeRequestContext, BeforeRequestHook, AfterSuccessContext, AfterSuccessHook, AfterErrorContext, AfterErrorHook, Hooks
Expand Down
2 changes: 1 addition & 1 deletion src/log10/_hooks/types.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT."""
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""

import requests as requests_http
from abc import ABC, abstractmethod
Expand Down
Loading

0 comments on commit 1ca246f

Please sign in to comment.