Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.441.0
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Nov 19, 2024
1 parent 9c9b070 commit 0e3d369
Show file tree
Hide file tree
Showing 367 changed files with 10,623 additions and 534 deletions.
18 changes: 9 additions & 9 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
lockVersion: 2.0.0
id: 61a4ac00-e7ed-4a10-9e0f-47f8aef9702c
management:
docChecksum: c58ce1a8f4761676d0ec62b40ce3b5af
docChecksum: e1f306b5ba0a01e1785143532d301bf4
docVersion: 2.3.0
speakeasyVersion: 1.421.1
generationVersion: 2.438.15
releaseVersion: 0.0.5
configChecksum: 20495d52a63fb99b59bfcbbc62b92c6b
speakeasyVersion: 1.441.0
generationVersion: 2.460.1
releaseVersion: 0.1.0
configChecksum: 3a1bf2f9e2fd0c01a604d3b2ec895e7e
repoURL: https://github.com/argotdev/speakeasy-sdk.git
installationURL: https://github.com/argotdev/speakeasy-sdk
published: true
features:
typescript:
additionalDependencies: 0.1.0
constsAndDefaults: 0.1.11
core: 3.18.2
core: 3.18.5
defaultEnabledRetries: 0.1.0
deprecations: 2.81.1
devContainers: 2.90.0
downloadStreams: 0.1.1
enumUnions: 0.1.0
envVarSecurityUsage: 0.1.1
envVarSecurityUsage: 0.1.2
globalSecurity: 2.82.11
globalSecurityCallbacks: 0.1.0
globalSecurityFlattening: 0.1.0
globalServerURLs: 2.82.4
nullables: 0.1.0
responseFormat: 0.2.3
retries: 2.83.0
sdkHooks: 0.1.0
unions: 2.85.7
sdkHooks: 0.2.0
unions: 2.85.8
uploadStreams: 0.1.0
generatedFiles:
- .devcontainer/README.md
Expand Down
4 changes: 3 additions & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,17 @@ generation:
requestResponseComponentNamesFeb2024: true
auth:
oAuth2ClientCredentialsEnabled: false
oAuth2PasswordEnabled: false
typescript:
version: 0.0.5
version: 0.1.0
additionalDependencies:
dependencies: {}
devDependencies: {}
peerDependencies: {}
additionalPackageJSON: {}
author: Speakeasy
clientServerStatusCodesAsErrors: true
defaultErrorName: SDKError
enumFormat: union
envVarPrefix: ARGOTOPENAI
flattenGlobalSecurity: true
Expand Down
18 changes: 12 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
speakeasyVersion: 1.421.1
speakeasyVersion: 1.441.0
sources:
ArgotOpenAi-OAS:
sourceNamespace: argot-open-ai-oas
sourceRevisionDigest: sha256:57762a25bf2b9db92394f493016221caac15a961a8b0d0daf781fbf169cf11de
sourceBlobDigest: sha256:1ac004496342b737f8cbb62c2de296ce98c3851f1082d3b6d73d7f312b6d247e
sourceRevisionDigest: sha256:d5ba6a9cf704bf6170304c0d84b39c78b6c3593b5ab7db988fa92f6df29fd1ee
sourceBlobDigest: sha256:b193e761cc90c24efd48cf5b9df6b79847ec23607874efad1099c70458ddf6ce
tags:
- latest
- main
- speakeasy-sdk-regen-1729907398
targets:
argot-open-ai:
source: ArgotOpenAi-OAS
sourceNamespace: argot-open-ai-oas
sourceRevisionDigest: sha256:57762a25bf2b9db92394f493016221caac15a961a8b0d0daf781fbf169cf11de
sourceBlobDigest: sha256:1ac004496342b737f8cbb62c2de296ce98c3851f1082d3b6d73d7f312b6d247e
sourceRevisionDigest: sha256:d5ba6a9cf704bf6170304c0d84b39c78b6c3593b5ab7db988fa92f6df29fd1ee
sourceBlobDigest: sha256:b193e761cc90c24efd48cf5b9df6b79847ec23607874efad1099c70458ddf6ce
codeSamplesNamespace: argot-open-ai-oas-code-samples
codeSamplesRevisionDigest: sha256:201bfe87759dcab1ccd2e83e6c2305beab74b738ff266200789b2fbf0876df87
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand All @@ -29,3 +31,7 @@ workflow:
publish:
npm:
token: $npm_token
codeSamples:
registry:
location: registry.speakeasyapi.dev/argot/argot/argot-open-ai-oas-code-samples
blocking: false
26 changes: 15 additions & 11 deletions .speakeasy/workflow.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
workflowVersion: 1.0.0
speakeasyVersion: latest
sources:
ArgotOpenAi-OAS:
inputs:
- location: openai-openapi.yaml
registry:
location: registry.speakeasyapi.dev/argot/argot/argot-open-ai-oas
ArgotOpenAi-OAS:
inputs:
- location: openai-openapi.yaml
registry:
location: registry.speakeasyapi.dev/argot/argot/argot-open-ai-oas
targets:
argot-open-ai:
target: typescript
source: ArgotOpenAi-OAS
publish:
npm:
token: $npm_token
argot-open-ai:
target: typescript
source: ArgotOpenAi-OAS
publish:
npm:
token: $npm_token
codeSamples:
registry:
location: registry.speakeasyapi.dev/argot/argot/argot-open-ai-oas-code-samples
blocking: false
77 changes: 8 additions & 69 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -678,10 +678,10 @@ If a HTTP request fails, an operation my also throw an error from the `models/er

In addition, when custom error responses are specified for an operation, the SDK may throw their associated Error type. You can refer to respective *Errors* tables in SDK docs for more details on possible error types for each operation. For example, the `modifyProject` method may throw the following errors:

| Error Type | Status Code | Content Type |
| -------------------- | -------------------- | -------------------- |
| errors.ErrorResponse | 400 | application/json |
| errors.SDKError | 4XX, 5XX | \*/\* |
| Error Type | Status Code | Content Type |
| -------------------- | ----------- | ---------------- |
| errors.ErrorResponse | 400 | application/json |
| errors.SDKError | 4XX, 5XX | \*/\* |

```typescript
import { ArgotOpenAi } from "argot-open-ai";
Expand Down Expand Up @@ -734,70 +734,9 @@ Validation errors can also occur when either method arguments or data returned f
<!-- Start Server Selection [server] -->
## Server Selection

### Select Server by Index

You can override the default server globally by passing a server index to the `serverIdx` optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers:

| # | Server | Variables |
| - | ------ | --------- |
| 0 | `https://api.openai.com/v1` | None |

```typescript
import { ArgotOpenAi } from "argot-open-ai";

const argotOpenAi = new ArgotOpenAi({
serverIdx: 0,
apiKeyAuth: process.env["ARGOTOPENAI_API_KEY_AUTH"] ?? "",
});

async function run() {
const result = await argotOpenAi.chat.createChatCompletion({
messages: [
{
content: "<value>",
role: "user",
},
{
content: [
{
type: "text",
text: "<value>",
},
{
type: "image_url",
imageUrl: {
url: "https://fixed-circumference.com",
},
},
],
role: "user",
},
{
role: "tool",
content: "<value>",
toolCallId: "<id>",
},
],
model: "gpt-4o",
n: 1,
temperature: 1,
topP: 1,
user: "user-1234",
});

// Handle the result
console.log(result);
}

run();

```


### Override Server URL Per-Client

The default server can also be overridden globally by passing a URL to the `serverURL` optional parameter when initializing the SDK client instance. For example:

The default server can also be overridden globally by passing a URL to the `serverURL: string` optional parameter when initializing the SDK client instance. For example:
```typescript
import { ArgotOpenAi } from "argot-open-ai";

Expand Down Expand Up @@ -906,9 +845,9 @@ const sdk = new ArgotOpenAi({ httpClient });

This SDK supports the following security scheme globally:

| Name | Type | Scheme | Environment Variable |
| -------------------------- | -------------------------- | -------------------------- | -------------------------- |
| `apiKeyAuth` | http | HTTP Bearer | `ARGOTOPENAI_API_KEY_AUTH` |
| Name | Type | Scheme | Environment Variable |
| ------------ | ---- | ----------- | -------------------------- |
| `apiKeyAuth` | http | HTTP Bearer | `ARGOTOPENAI_API_KEY_AUTH` |

To authenticate with the API the `apiKeyAuth` parameter must be set when initializing the SDK client instance. For example:
```typescript
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,14 @@ Based on:
### Generated
- [typescript v0.0.5] .
### Releases
- [NPM v0.0.5] https://www.npmjs.com/package/argot-open-ai/v/0.0.5 - .
- [NPM v0.0.5] https://www.npmjs.com/package/argot-open-ai/v/0.0.5 - .

## 2024-11-19 00:10:09
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.441.0 (2.460.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.1.0] .
### Releases
- [NPM v0.1.0] https://www.npmjs.com/package/argot-open-ai/v/0.1.0 - .
1 change: 1 addition & 0 deletions docs/models/components/createchatcompletionrequest.md

Large diffs are not rendered by default.

Loading

0 comments on commit 0e3d369

Please sign in to comment.