Skip to content

Commit 25004b9

Browse files
Updates Cohere inference API (#4896) (#4918)
(cherry picked from commit a7876a8) Co-authored-by: kosabogi <[email protected]>
1 parent 7059432 commit 25004b9

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
@@ -813,10 +813,8 @@ export class CohereServiceSettings {
813813
* * For the available `completion` models, refer to the [Cohere command docs](https://docs.cohere.com/docs/models#command).
814814
* * For the available `rerank` models, refer to the [Cohere rerank docs](https://docs.cohere.com/reference/rerank-1).
815815
* * For the available `text_embedding` models, refer to [Cohere embed docs](https://docs.cohere.com/reference/embed).
816-
*
817-
* The default value for a text embedding task is `embed-english-v2.0`.
818816
*/
819-
model_id?: string
817+
model_id: string
820818
/**
821819
* This setting helps to minimize the number of rate limit errors returned from Cohere.
822820
* By default, the `cohere` service sets the number of requests allowed per minute to 10000.
@@ -879,7 +877,7 @@ export class CohereTaskSettings {
879877
*
880878
* IMPORTANT: The `input_type` field is required when using embedding models `v3` and higher.
881879
*/
882-
input_type?: CohereInputType
880+
input_type: CohereInputType
883881
/**
884882
* For a `rerank` task, return doc text within the results.
885883
*/

0 commit comments

Comments
 (0)