Skip to content

Commit a7876a8

Browse files
authored
Updates Cohere inference API (#4896)
1 parent 1ba72cb commit a7876a8

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

output/typescript/types.ts

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/inference/_types/CommonTypes.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -670,10 +670,8 @@ export class CohereServiceSettings {
670670
* * For the available `completion` models, refer to the [Cohere command docs](https://docs.cohere.com/docs/models#command).
671671
* * For the available `rerank` models, refer to the [Cohere rerank docs](https://docs.cohere.com/reference/rerank-1).
672672
* * For the available `text_embedding` models, refer to [Cohere embed docs](https://docs.cohere.com/reference/embed).
673-
*
674-
* The default value for a text embedding task is `embed-english-v2.0`.
675673
*/
676-
model_id?: string
674+
model_id: string
677675
/**
678676
* This setting helps to minimize the number of rate limit errors returned from Cohere.
679677
* By default, the `cohere` service sets the number of requests allowed per minute to 10000.
@@ -736,7 +734,7 @@ export class CohereTaskSettings {
736734
*
737735
* IMPORTANT: The `input_type` field is required when using embedding models `v3` and higher.
738736
*/
739-
input_type?: CohereInputType
737+
input_type: CohereInputType
740738
/**
741739
* For a `rerank` task, return doc text within the results.
742740
*/

0 commit comments

Comments
 (0)