Skip to content
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

Add prefix strings to PUT model request #2449

Merged
merged 2 commits into from
Mar 13, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
9 changes: 4 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.

27 changes: 24 additions & 3 deletions output/schema/schema.json

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

5 changes: 3 additions & 2 deletions output/typescript/types.ts

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

4 changes: 2 additions & 2 deletions specification/ml/_types/TrainedModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -429,9 +429,9 @@ export class TrainedModelPrefixStrings {
/**
* String prepended to input at ingest
*/
ingest: string
ingest?: string
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ingest and search params are optional, you can set one or the other or both or neither

/**
* String prepended to input at search
*/
search: string
search?: string
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import { RequestBase } from '@_types/Base'
import { Id } from '@_types/common'
import { long } from '@_types/Numeric'
import { Definition, Input } from './types'
import { TrainedModelPrefixStrings } from '../_types/TrainedModel'
import { TrainedModelType } from '../_types/TrainedModel'
import { InferenceConfigCreateContainer } from '@ml/_types/inference'

Expand Down Expand Up @@ -102,5 +103,11 @@ export interface Request extends RequestBase {
* An array of tags to organize the model.
*/
tags?: string[]
/**
* Optional prefix strings applied at inference
* @availability stack since=8.12.0
* @availability serverless since=8.12.0
davidkyle marked this conversation as resolved.
Show resolved Hide resolved
*/
prefix_strings?: TrainedModelPrefixStrings
}
}
Loading