Skip to content
Merged
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
2 changes: 2 additions & 0 deletions .github/workflows/release-doctor.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Release Doctor
on:
pull_request:
branches:
- main
workflow_dispatch:

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -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
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
});

Expand All @@ -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
});

Expand Down Expand Up @@ -105,7 +105,7 @@ You can use the `maxRetries` option to configure or disable this:
<!-- prettier-ignore -->
```js
// Configure the default for all requests:
const promptFoundry = new PromptFoundry({
const client = new PromptFoundry({
maxRetries: 0, // default is 2
});

Expand All @@ -122,7 +122,7 @@ Requests time out after 1 minute by default. You can configure this with a `time
<!-- prettier-ignore -->
```ts
// Configure the default for all requests:
const promptFoundry = new PromptFoundry({
const client = new PromptFoundry({
timeout: 20 * 1000, // 20 seconds (default is 1 minute)
});

Expand All @@ -146,7 +146,7 @@ You can also use the `.withResponse()` method to get the raw `Response` along wi

<!-- prettier-ignore -->
```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'));
Expand Down Expand Up @@ -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),
});

Expand Down