Skip to content

Commit

Permalink
🌿 Fern Regeneration -- August 20, 2024 (#197)
Browse files Browse the repository at this point in the history
* SDK regeneration

* Fix

---------

Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
Co-authored-by: Billy Trend <[email protected]>
  • Loading branch information
fern-api[bot] and billytrend-cohere authored Aug 20, 2024
1 parent 3068c78 commit 3cfb4bc
Show file tree
Hide file tree
Showing 42 changed files with 872 additions and 284 deletions.
5 changes: 4 additions & 1 deletion .fernignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@ src/index.ts
src/aws-utils.ts
src/core/streaming-fetcher/streaming-utils.ts
src/ClientV2.ts
src/api/resources/datasets/client/Client.ts
src/api/resources/datasets/client/Client.ts
src/CustomClient.ts
src/core/form-data-utils/FormDataWrapper.ts
tests/unit/form-data-utils/formDataWrapper.test.ts
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cohere-ai",
"version": "7.12.0",
"version": "7.12.1",
"private": false,
"repository": "https://github.com/cohere-ai/cohere-typescript",
"main": "./index.js",
Expand Down Expand Up @@ -29,6 +29,7 @@
"@types/url-join": "4.0.1",
"@types/qs": "6.9.8",
"@types/node-fetch": "2.6.9",
"fetch-mock-jest": "^1.5.1",
"jest": "^29.7.0",
"@types/jest": "29.5.5",
"ts-jest": "^29.1.2",
Expand Down
4 changes: 2 additions & 2 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ await client.v2.chatStream({
],
citations: [
{
start: "string",
end: "string",
start: 1,
end: 1,
text: "string",
sources: [
{
Expand Down
35 changes: 23 additions & 12 deletions src/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import * as core from "./core";
import * as Cohere from "./api/index";
import * as serializers from "./serialization/index";
import urlJoin from "url-join";
import * as stream from "readable-stream";
import * as stream from "stream";
import * as errors from "./errors/index";
import { V2 } from "./api/resources/v2/client/Client";
import { EmbedJobs } from "./api/resources/embedJobs/client/Client";
Expand Down Expand Up @@ -62,7 +62,8 @@ export class CohereClient {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-SDK-Version": "7.12.1",
"User-Agent": "cohere-ai/7.12.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -232,7 +233,8 @@ export class CohereClient {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-SDK-Version": "7.12.1",
"User-Agent": "cohere-ai/7.12.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -372,7 +374,8 @@ export class CohereClient {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-SDK-Version": "7.12.1",
"User-Agent": "cohere-ai/7.12.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -543,7 +546,8 @@ export class CohereClient {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-SDK-Version": "7.12.1",
"User-Agent": "cohere-ai/7.12.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -707,7 +711,8 @@ export class CohereClient {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-SDK-Version": "7.12.1",
"User-Agent": "cohere-ai/7.12.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -862,7 +867,8 @@ export class CohereClient {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-SDK-Version": "7.12.1",
"User-Agent": "cohere-ai/7.12.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -1047,7 +1053,8 @@ export class CohereClient {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-SDK-Version": "7.12.1",
"User-Agent": "cohere-ai/7.12.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -1204,7 +1211,8 @@ export class CohereClient {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-SDK-Version": "7.12.1",
"User-Agent": "cohere-ai/7.12.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -1358,7 +1366,8 @@ export class CohereClient {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-SDK-Version": "7.12.1",
"User-Agent": "cohere-ai/7.12.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -1512,7 +1521,8 @@ export class CohereClient {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-SDK-Version": "7.12.1",
"User-Agent": "cohere-ai/7.12.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -1659,7 +1669,8 @@ export class CohereClient {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-SDK-Version": "7.12.1",
"User-Agent": "cohere-ai/7.12.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
18 changes: 12 additions & 6 deletions src/api/resources/connectors/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ export class Connectors {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-SDK-Version": "7.12.1",
"User-Agent": "cohere-ai/7.12.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -232,7 +233,8 @@ export class Connectors {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-SDK-Version": "7.12.1",
"User-Agent": "cohere-ai/7.12.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -380,7 +382,8 @@ export class Connectors {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-SDK-Version": "7.12.1",
"User-Agent": "cohere-ai/7.12.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -526,7 +529,8 @@ export class Connectors {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-SDK-Version": "7.12.1",
"User-Agent": "cohere-ai/7.12.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -674,7 +678,8 @@ export class Connectors {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-SDK-Version": "7.12.1",
"User-Agent": "cohere-ai/7.12.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -833,7 +838,8 @@ export class Connectors {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-SDK-Version": "7.12.1",
"User-Agent": "cohere-ai/7.12.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
12 changes: 8 additions & 4 deletions src/api/resources/embedJobs/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ export class EmbedJobs {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-SDK-Version": "7.12.1",
"User-Agent": "cohere-ai/7.12.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -218,7 +219,8 @@ export class EmbedJobs {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-SDK-Version": "7.12.1",
"User-Agent": "cohere-ai/7.12.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -366,7 +368,8 @@ export class EmbedJobs {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-SDK-Version": "7.12.1",
"User-Agent": "cohere-ai/7.12.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -509,7 +512,8 @@ export class EmbedJobs {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-SDK-Version": "7.12.1",
"User-Agent": "cohere-ai/7.12.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
21 changes: 14 additions & 7 deletions src/api/resources/finetuning/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ export class Finetuning {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-SDK-Version": "7.12.1",
"User-Agent": "cohere-ai/7.12.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -180,7 +181,8 @@ export class Finetuning {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-SDK-Version": "7.12.1",
"User-Agent": "cohere-ai/7.12.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -274,7 +276,8 @@ export class Finetuning {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-SDK-Version": "7.12.1",
"User-Agent": "cohere-ai/7.12.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -363,7 +366,8 @@ export class Finetuning {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-SDK-Version": "7.12.1",
"User-Agent": "cohere-ai/7.12.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -462,7 +466,8 @@ export class Finetuning {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-SDK-Version": "7.12.1",
"User-Agent": "cohere-ai/7.12.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -572,7 +577,8 @@ export class Finetuning {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-SDK-Version": "7.12.1",
"User-Agent": "cohere-ai/7.12.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -674,7 +680,8 @@ export class Finetuning {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-SDK-Version": "7.12.1",
"User-Agent": "cohere-ai/7.12.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
6 changes: 4 additions & 2 deletions src/api/resources/models/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ export class Models {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-SDK-Version": "7.12.1",
"User-Agent": "cohere-ai/7.12.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -233,7 +234,8 @@ export class Models {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-SDK-Version": "7.12.1",
"User-Agent": "cohere-ai/7.12.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
8 changes: 5 additions & 3 deletions src/api/resources/v2/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import * as core from "../../../../core";
import * as Cohere from "../../../index";
import * as serializers from "../../../../serialization/index";
import urlJoin from "url-join";
import * as stream from "readable-stream";
import * as stream from "stream";
import * as errors from "../../../../errors/index";

export declare namespace V2 {
Expand Down Expand Up @@ -52,7 +52,8 @@ export class V2 {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-SDK-Version": "7.12.1",
"User-Agent": "cohere-ai/7.12.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down Expand Up @@ -218,7 +219,8 @@ export class V2 {
: undefined,
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "cohere-ai",
"X-Fern-SDK-Version": "7.12.0",
"X-Fern-SDK-Version": "7.12.1",
"User-Agent": "cohere-ai/7.12.1",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
4 changes: 2 additions & 2 deletions src/api/resources/v2/client/requests/V2ChatStreamRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import * as Cohere from "../../../../index";
* text: "string"
* }],
* citations: [{
* start: "string",
* end: "string",
* start: 1,
* end: 1,
* text: "string",
* sources: [{
* type: "tool",
Expand Down
4 changes: 2 additions & 2 deletions src/api/resources/v2/types/Citation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import * as Cohere from "../../../index";
* Citation information containing sources and the text cited.
*/
export interface Citation {
start?: string;
end?: string;
start?: number;
end?: number;
text?: string;
sources?: Cohere.Source[];
}
Loading

0 comments on commit 3cfb4bc

Please sign in to comment.