Skip to content

[Backport 9.1] [9.1] Updates 'model_id' and 'input_type' as required parameters for Cohere V2 #4918

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions output/typescript/types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions specification/inference/_types/CommonTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -670,10 +670,8 @@ export class CohereServiceSettings {
* * For the available `completion` models, refer to the [Cohere command docs](https://docs.cohere.com/docs/models#command).
* * For the available `rerank` models, refer to the [Cohere rerank docs](https://docs.cohere.com/reference/rerank-1).
* * For the available `text_embedding` models, refer to [Cohere embed docs](https://docs.cohere.com/reference/embed).
*
* The default value for a text embedding task is `embed-english-v2.0`.
*/
model_id?: string
model_id: string
/**
* This setting helps to minimize the number of rate limit errors returned from Cohere.
* By default, the `cohere` service sets the number of requests allowed per minute to 10000.
Expand Down Expand Up @@ -736,7 +734,7 @@ export class CohereTaskSettings {
*
* IMPORTANT: The `input_type` field is required when using embedding models `v3` and higher.
*/
input_type?: CohereInputType
input_type: CohereInputType
/**
* For a `rerank` task, return doc text within the results.
*/
Expand Down