Skip to content

Commit 14edb60

Browse files
Adding chat_completion and fixing update api
1 parent bc1a277 commit 14edb60

File tree

5 files changed

+11
-14
lines changed

5 files changed

+11
-14
lines changed

output/schema/schema.json

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

output/schema/validation-errors.json

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -255,13 +255,6 @@
255255
],
256256
"response": []
257257
},
258-
"inference.update": {
259-
"request": [
260-
"/_inference/{inference_id}/_update: different http methods in the json spec",
261-
"/_inference/{task_type}/{inference_id}/_update: different http methods in the json spec"
262-
],
263-
"response": []
264-
},
265258
"ingest.get_ip_location_database": {
266259
"request": [
267260
"Request: query parameter 'master_timeout' does not exist in the json spec"

output/typescript/types.ts

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/inference/_types/TaskType.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,6 @@ export enum TaskType {
2424
sparse_embedding,
2525
text_embedding,
2626
rerank,
27-
completion
27+
completion,
28+
chat_completion
2829
}

specification/inference/update/UpdateInferenceRequest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ export interface Request extends RequestBase {
3939
urls: [
4040
{
4141
path: '/_inference/{inference_id}/_update'
42-
methods: ['POST']
42+
methods: ['PUT']
4343
},
4444
{
4545
path: '/_inference/{task_type}/{inference_id}/_update'
46-
methods: ['POST']
46+
methods: ['PUT']
4747
}
4848
]
4949
path_parts: {

0 commit comments

Comments
 (0)