From 32b39edbe6193d557beb398f5c8e263cc9a0a24e Mon Sep 17 00:00:00 2001 From: stainless-bot Date: Thu, 18 Jul 2024 20:45:45 +0000 Subject: [PATCH] feat(api): OpenAPI spec update via Stainless API --- .github/workflows/release-doctor.yml | 2 ++ .stats.yml | 2 +- README.md | 12 ++++++------ 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release-doctor.yml b/.github/workflows/release-doctor.yml index 25de2ee..594fdbf 100644 --- a/.github/workflows/release-doctor.yml +++ b/.github/workflows/release-doctor.yml @@ -1,6 +1,8 @@ name: Release Doctor on: pull_request: + branches: + - main workflow_dispatch: jobs: diff --git a/.stats.yml b/.stats.yml index da24255..ddfeae1 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 21 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/prompt-foundry%2Fprompt-foundry-sdk-0042044f00457ff0bf65c07207eea291e4df838e2bdab4dfc602eec8d3517c42.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/prompt-foundry%2Fprompt-foundry-sdk-441451c27073e45d1bdc832c5b66c26d90bd185bd94bd461b91257fbf0987ef2.yml diff --git a/README.md b/README.md index dda980f..6d40579 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ The full API of this library can be found in [api.md](api.md). ```js import PromptFoundry from '@prompt-foundry/typescript-sdk'; -const promptFoundry = new PromptFoundry({ +const client = new PromptFoundry({ apiKey: process.env['PROMPT_FOUNDRY_API_KEY'], // This is the default and can be omitted }); @@ -45,7 +45,7 @@ This library includes TypeScript definitions for all request params and response ```ts import PromptFoundry from '@prompt-foundry/typescript-sdk'; -const promptFoundry = new PromptFoundry({ +const client = new PromptFoundry({ apiKey: process.env['PROMPT_FOUNDRY_API_KEY'], // This is the default and can be omitted }); @@ -105,7 +105,7 @@ You can use the `maxRetries` option to configure or disable this: ```js // Configure the default for all requests: -const promptFoundry = new PromptFoundry({ +const client = new PromptFoundry({ maxRetries: 0, // default is 2 }); @@ -122,7 +122,7 @@ Requests time out after 1 minute by default. You can configure this with a `time ```ts // Configure the default for all requests: -const promptFoundry = new PromptFoundry({ +const client = new PromptFoundry({ timeout: 20 * 1000, // 20 seconds (default is 1 minute) }); @@ -146,7 +146,7 @@ You can also use the `.withResponse()` method to get the raw `Response` along wi ```ts -const promptFoundry = new PromptFoundry(); +const client = new PromptFoundry(); const response = await promptFoundry.prompts.getParameters('1212121').asResponse(); console.log(response.headers.get('X-My-Header')); @@ -255,7 +255,7 @@ import http from 'http'; import { HttpsProxyAgent } from 'https-proxy-agent'; // Configure the default for all requests: -const promptFoundry = new PromptFoundry({ +const client = new PromptFoundry({ httpAgent: new HttpsProxyAgent(process.env.PROXY_URL), });