Skip to content

Update Inference specification for Mistral's completion and chat completion tasks #4464

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
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
14 changes: 9 additions & 5 deletions output/openapi/elasticsearch-openapi.json

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

14 changes: 9 additions & 5 deletions output/openapi/elasticsearch-serverless-openapi.json

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

56 changes: 34 additions & 22 deletions output/schema/schema.json

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

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: 4 additions & 2 deletions specification/inference/_types/CommonTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -999,7 +999,7 @@ export class MistralServiceSettings {
max_input_tokens?: integer
/**
* The name of the model to use for the inference task.
* Refer to the Mistral models documentation for the list of available text embedding models.
* Refer to the Mistral models documentation for the list of available models.
* @ext_doc_id mistral-api-models
*/
model: string
Expand All @@ -1011,7 +1011,9 @@ export class MistralServiceSettings {
}

export enum MistralTaskType {
text_embedding
text_embedding,
completion,
chat_completion
}

export enum MistralServiceType {
Expand Down
4 changes: 3 additions & 1 deletion specification/inference/_types/TaskType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ export enum TaskTypeHuggingFace {
}

export enum TaskTypeMistral {
text_embedding
text_embedding,
chat_completion,
completion
}

export enum TaskTypeOpenAI {
Expand Down
5 changes: 2 additions & 3 deletions specification/inference/put_mistral/PutMistralRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import { InferenceChunkingSettings } from '@inference/_types/Services'
/**
* Create a Mistral inference endpoint.
*
* Creates an inference endpoint to perform an inference task with the `mistral` service.
* Create an inference endpoint to perform an inference task with the `mistral` service.
* @rest_spec_name inference.put_mistral
* @availability stack since=8.15.0 stability=stable visibility=public
* @availability serverless stability=stable visibility=public
Expand All @@ -45,8 +45,7 @@ export interface Request extends RequestBase {
]
path_parts: {
/**
* The task type.
* The only valid task type for the model to perform is `text_embedding`.
* The type of the inference task that the model will perform.
*/
task_type: MistralTaskType
/**
Expand Down
Loading