Skip to content

Commit

Permalink
Release 0.0.1-beta6
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Sep 4, 2024
1 parent e82ecd7 commit 905d2eb
Show file tree
Hide file tree
Showing 109 changed files with 1,400 additions and 4,699 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Instantiate and use the client with the following:
import { GooeyClient } from "gooeyai";

const client = new GooeyClient({ apiKey: "YOUR_API_KEY" });
await client.copilotAsync();
await client.copilot();
```

## Request And Response Types
Expand All @@ -44,7 +44,7 @@ will be thrown.
import { GooeyError } from "gooeyai";

try {
await client.copilotAsync(...);
await client.copilot(...);
} catch (err) {
if (err instanceof GooeyError) {
console.log(err.statusCode);
Expand All @@ -71,7 +71,7 @@ A request is deemed retriable when any of the following HTTP status codes is ret
Use the `maxRetries` request option to configure this behavior.

```typescript
const response = await client.copilotAsync(..., {
const response = await client.copilot(..., {
maxRetries: 0 // override maxRetries at the request level
});
```
Expand All @@ -81,7 +81,7 @@ const response = await client.copilotAsync(..., {
The SDK defaults to a 60 second timeout. Use the `timeoutInSeconds` option to configure this behavior.

```typescript
const response = await client.copilotAsync(..., {
const response = await client.copilot(..., {
timeoutInSeconds: 30 // override timeout to 30s
});
```
Expand All @@ -92,7 +92,7 @@ The SDK allows users to abort requests at any point by passing in an abort signa

```typescript
const controller = new AbortController();
const response = await client.copilotAsync(..., {
const response = await client.copilot(..., {
abortSignal: controller.signal
});
controller.abort(); // aborts the request
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gooeyai",
"version": "0.0.39",
"version": "0.0.1-beta6",
"private": false,
"repository": "https://github.com/GooeyAI/typescript-sdk",
"main": "./index.js",
Expand Down
182 changes: 170 additions & 12 deletions reference.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Reference

<details><summary><code>client.<a href="/src/Client.ts">relatedQnaMakerDocStatus</a>({ ...params }) -> Gooey.RelatedQnADocPageStatusResponse</code></summary>
<details><summary><code>client.<a href="/src/Client.ts">healthStatusGet</a>() -> unknown</code></summary>
<dl>
<dd>

Expand All @@ -13,9 +13,7 @@
<dd>

```typescript
await client.relatedQnaMakerDocStatus({
runId: "run_id",
});
await client.healthStatusGet();
```

</dd>
Expand All @@ -31,14 +29,6 @@ await client.relatedQnaMakerDocStatus({
<dl>
<dd>

**request:** `Gooey.RelatedQnaMakerDocStatusRequest`

</dd>
</dl>

<dl>
<dd>

**requestOptions:** `GooeyClient.RequestOptions`

</dd>
Expand Down Expand Up @@ -243,3 +233,171 @@ await client.misc.videoBotsBroadcast({
</dd>
</dl>
</details>

## BulkRunner

<details><summary><code>client.bulkRunner.<a href="/src/api/resources/bulkRunner/client/Client.ts">post</a>() -> void</code></summary>
<dl>
<dd>

#### 🔌 Usage

<dl>
<dd>

<dl>
<dd>

```typescript
await client.bulkRunner.post();
```

</dd>
</dl>
</dd>
</dl>

#### ⚙️ Parameters

<dl>
<dd>

<dl>
<dd>

**requestOptions:** `BulkRunner.RequestOptions`

</dd>
</dl>
</dd>
</dl>

</dd>
</dl>
</details>

## SmartGpt

<details><summary><code>client.smartGpt.<a href="/src/api/resources/smartGpt/client/Client.ts">post</a>() -> void</code></summary>
<dl>
<dd>

#### 🔌 Usage

<dl>
<dd>

<dl>
<dd>

```typescript
await client.smartGpt.post();
```

</dd>
</dl>
</dd>
</dl>

#### ⚙️ Parameters

<dl>
<dd>

<dl>
<dd>

**requestOptions:** `SmartGpt.RequestOptions`

</dd>
</dl>
</dd>
</dl>

</dd>
</dl>
</details>

## Functions

<details><summary><code>client.functions.<a href="/src/api/resources/functions/client/Client.ts">post</a>() -> void</code></summary>
<dl>
<dd>

#### 🔌 Usage

<dl>
<dd>

<dl>
<dd>

```typescript
await client.functions.post();
```

</dd>
</dl>
</dd>
</dl>

#### ⚙️ Parameters

<dl>
<dd>

<dl>
<dd>

**requestOptions:** `Functions.RequestOptions`

</dd>
</dl>
</dd>
</dl>

</dd>
</dl>
</details>

## Embeddings

<details><summary><code>client.embeddings.<a href="/src/api/resources/embeddings/client/Client.ts">post</a>() -> void</code></summary>
<dl>
<dd>

#### 🔌 Usage

<dl>
<dd>

<dl>
<dd>

```typescript
await client.embeddings.post();
```

</dd>
</dl>
</dd>
</dl>

#### ⚙️ Parameters

<dl>
<dd>

<dl>
<dd>

**requestOptions:** `Embeddings.RequestOptions`

</dd>
</dl>
</dd>
</dl>

</dd>
</dl>
</details>
Loading

0 comments on commit 905d2eb

Please sign in to comment.