Skip to content

Commit

Permalink
Release 7.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Nov 17, 2023
1 parent f52a15e commit 6de018a
Show file tree
Hide file tree
Showing 7 changed files with 209 additions and 199 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cohere-ai",
"version": "7.2.0",
"version": "7.3.0",
"private": false,
"repository": "https://github.com/cohere-ai/cohere-typescript",
"main": "./index.js",
Expand Down
294 changes: 152 additions & 142 deletions src/Client.ts

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/api/client/requests/GenerateRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ export interface GenerateRequest {
*
*/
preset?: string;
/** The generated text will be cut at the beginning of the earliest occurence of an end sequence. The sequence will be excluded from the text. */
/** The generated text will be cut at the beginning of the earliest occurrence of an end sequence. The sequence will be excluded from the text. */
endSequences?: string[];
/** The generated text will be cut at the end of the earliest occurence of a stop sequence. The sequence will be included the text. */
/** The generated text will be cut at the end of the earliest occurrence of a stop sequence. The sequence will be included the text. */
stopSequences?: string[];
/**
* Ensures only the top `k` most likely tokens are considered for generation at each step.
Expand Down
10 changes: 5 additions & 5 deletions src/api/client/requests/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
export { ChatStreamRequest } from "./ChatStreamRequest";
export { ChatRequest } from "./ChatRequest";
export { GenerateRequest } from "./GenerateRequest";
export { EmbedRequest } from "./EmbedRequest";
export { RerankRequest } from "./RerankRequest";
export { ClassifyRequest } from "./ClassifyRequest";
export { ChatStreamRequest } from "./ChatStreamRequest";
export { ChatRequest } from "./ChatRequest";
export { TokenizeRequest } from "./TokenizeRequest";
export { DetokenizeRequest } from "./DetokenizeRequest";
export { DetectLanguageRequest } from "./DetectLanguageRequest";
export { SummarizeRequest } from "./SummarizeRequest";
export { RerankRequest } from "./RerankRequest";
export { TokenizeRequest } from "./TokenizeRequest";
export { DetokenizeRequest } from "./DetokenizeRequest";
44 changes: 22 additions & 22 deletions src/api/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,42 +1,30 @@
export * from "./ChatStreamRequestPromptTruncation";
export * from "./ChatStreamRequestCitationQuality";
export * from "./ChatRequestPromptTruncation";
export * from "./ChatRequestCitationQuality";
export * from "./GenerateRequestTruncate";
export * from "./GenerateRequestReturnLikelihoods";
export * from "./EmbedRequestTruncate";
export * from "./EmbedResponse";
export * from "./RerankRequestDocumentsItem";
export * from "./RerankResponse";
export * from "./RerankResponseResultsItem";
export * from "./RerankResponseResultsItemDocument";
export * from "./ClassifyRequestExamplesItem";
export * from "./ClassifyRequestTruncate";
export * from "./ClassifyResponse";
export * from "./ClassifyResponseClassificationsItem";
export * from "./ClassifyResponseClassificationsItemLabelsValue";
export * from "./ClassifyResponseClassificationsItemClassificationType";
export * from "./ChatStreamRequestPromptTruncation";
export * from "./ChatStreamRequestCitationQuality";
export * from "./ChatRequestPromptTruncation";
export * from "./ChatRequestCitationQuality";
export * from "./TokenizeResponse";
export * from "./DetokenizeResponse";
export * from "./DetectLanguageResponse";
export * from "./DetectLanguageResponseResultsItem";
export * from "./SummarizeRequestLength";
export * from "./SummarizeRequestFormat";
export * from "./SummarizeRequestExtractiveness";
export * from "./SummarizeResponse";
export * from "./SummarizeResponseResultsItem";
export * from "./RerankRequestDocumentsItem";
export * from "./RerankResponse";
export * from "./RerankResponseResultsItem";
export * from "./RerankResponseResultsItemDocument";
export * from "./SingleGeneration";
export * from "./SingleGenerationTokenLikelihoodsItem";
export * from "./ApiMeta";
export * from "./ApiMetaApiVersion";
export * from "./Generation";
export * from "./GenerationStream";
export * from "./FinishReason";
export * from "./SingleGenerationInStream";
export * from "./GenerationFinalResponse";
export * from "./GenerationFinalResponseResponse";
export * from "./StreamedGeneration";
export * from "./StreamedGenerationItem";
export * from "./TokenizeResponse";
export * from "./DetokenizeResponse";
export * from "./ChatMessage";
export * from "./ChatMessageRole";
export * from "./ChatConnector";
Expand All @@ -56,3 +44,15 @@ export * from "./ChatStreamEndEvent";
export * from "./ChatStreamEndEventFinishReason";
export * from "./ChatStreamEndEventResponse";
export * from "./StreamedChatResponse";
export * from "./SingleGeneration";
export * from "./SingleGenerationTokenLikelihoodsItem";
export * from "./ApiMeta";
export * from "./ApiMetaApiVersion";
export * from "./Generation";
export * from "./GenerationStream";
export * from "./FinishReason";
export * from "./SingleGenerationInStream";
export * from "./GenerationFinalResponse";
export * from "./GenerationFinalResponseResponse";
export * from "./StreamedGeneration";
export * from "./StreamedGenerationItem";
10 changes: 5 additions & 5 deletions src/serialization/client/requests/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
export { ChatStreamRequest } from "./ChatStreamRequest";
export { ChatRequest } from "./ChatRequest";
export { GenerateRequest } from "./GenerateRequest";
export { EmbedRequest } from "./EmbedRequest";
export { RerankRequest } from "./RerankRequest";
export { ClassifyRequest } from "./ClassifyRequest";
export { ChatStreamRequest } from "./ChatStreamRequest";
export { ChatRequest } from "./ChatRequest";
export { TokenizeRequest } from "./TokenizeRequest";
export { DetokenizeRequest } from "./DetokenizeRequest";
export { DetectLanguageRequest } from "./DetectLanguageRequest";
export { SummarizeRequest } from "./SummarizeRequest";
export { RerankRequest } from "./RerankRequest";
export { TokenizeRequest } from "./TokenizeRequest";
export { DetokenizeRequest } from "./DetokenizeRequest";
44 changes: 22 additions & 22 deletions src/serialization/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,42 +1,30 @@
export * from "./ChatStreamRequestPromptTruncation";
export * from "./ChatStreamRequestCitationQuality";
export * from "./ChatRequestPromptTruncation";
export * from "./ChatRequestCitationQuality";
export * from "./GenerateRequestTruncate";
export * from "./GenerateRequestReturnLikelihoods";
export * from "./EmbedRequestTruncate";
export * from "./EmbedResponse";
export * from "./RerankRequestDocumentsItem";
export * from "./RerankResponse";
export * from "./RerankResponseResultsItem";
export * from "./RerankResponseResultsItemDocument";
export * from "./ClassifyRequestExamplesItem";
export * from "./ClassifyRequestTruncate";
export * from "./ClassifyResponse";
export * from "./ClassifyResponseClassificationsItem";
export * from "./ClassifyResponseClassificationsItemLabelsValue";
export * from "./ClassifyResponseClassificationsItemClassificationType";
export * from "./ChatStreamRequestPromptTruncation";
export * from "./ChatStreamRequestCitationQuality";
export * from "./ChatRequestPromptTruncation";
export * from "./ChatRequestCitationQuality";
export * from "./TokenizeResponse";
export * from "./DetokenizeResponse";
export * from "./DetectLanguageResponse";
export * from "./DetectLanguageResponseResultsItem";
export * from "./SummarizeRequestLength";
export * from "./SummarizeRequestFormat";
export * from "./SummarizeRequestExtractiveness";
export * from "./SummarizeResponse";
export * from "./SummarizeResponseResultsItem";
export * from "./RerankRequestDocumentsItem";
export * from "./RerankResponse";
export * from "./RerankResponseResultsItem";
export * from "./RerankResponseResultsItemDocument";
export * from "./SingleGeneration";
export * from "./SingleGenerationTokenLikelihoodsItem";
export * from "./ApiMeta";
export * from "./ApiMetaApiVersion";
export * from "./Generation";
export * from "./GenerationStream";
export * from "./FinishReason";
export * from "./SingleGenerationInStream";
export * from "./GenerationFinalResponse";
export * from "./GenerationFinalResponseResponse";
export * from "./StreamedGeneration";
export * from "./StreamedGenerationItem";
export * from "./TokenizeResponse";
export * from "./DetokenizeResponse";
export * from "./ChatMessage";
export * from "./ChatMessageRole";
export * from "./ChatConnector";
Expand All @@ -56,3 +44,15 @@ export * from "./ChatStreamEndEvent";
export * from "./ChatStreamEndEventFinishReason";
export * from "./ChatStreamEndEventResponse";
export * from "./StreamedChatResponse";
export * from "./SingleGeneration";
export * from "./SingleGenerationTokenLikelihoodsItem";
export * from "./ApiMeta";
export * from "./ApiMetaApiVersion";
export * from "./Generation";
export * from "./GenerationStream";
export * from "./FinishReason";
export * from "./SingleGenerationInStream";
export * from "./GenerationFinalResponse";
export * from "./GenerationFinalResponseResponse";
export * from "./StreamedGeneration";
export * from "./StreamedGenerationItem";

0 comments on commit 6de018a

Please sign in to comment.