Skip to content

Conversation

davidkyle
Copy link
Member

No description provided.

import { RequestChatCompletion } from '@inference/_types/CommonTypes'
/**
* Perform chat completion inference
* Perform chat completion inference on the service
Copy link
Member Author

Choose a reason for hiding this comment

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

Every other API description ends "on the service"

summary: Completion task
description: Run `POST _inference/completion/openai_chat_completions` to perform a completion on the example question.
method_request: 'POST _inference/completion/openai_chat_completions'
description: Run `POST _inference/completion/openai_completions` to perform a completion on the example question.
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 example is for completion not chat_completions


/**
* Perform completion inference on the service
* Get responses for completion tasks.
Copy link
Member Author

Choose a reason for hiding this comment

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

This API had no desciption

"model_id": "rerank-english-v3.0",
"api_key": "{{COHERE_API_KEY}}"
},
"chunking_settings": {
Copy link
Member Author

Choose a reason for hiding this comment

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

Rerankers don't have chunking_settings

*/
input: string | Array<string>
input: Array<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.

Adding undocumented parameters

@davidkyle davidkyle requested a review from kosabogi October 9, 2025 10:13
Copy link
Contributor

github-actions bot commented Oct 9, 2025

Following you can find the validation changes against the target branch for the APIs.

API Status Request Response
bulk 🟢 536/536 → 537/537 554/554 → 555/555
index 🟢 1435/1435 → 1437/1437 1437/1437 → 1439/1439
indices.create 🔴 1353/1378 → 1356/1380 1378/1378 → 1380/1380
indices.flush 🟢 52/52 → 54/54 52/52 → 54/54
indices.get_mapping 🔴 197/197 → 198/198 188/197 → 187/198
indices.put_mapping 🟢 145/145 → 147/147 148/148 → 150/150
indices.refresh 🟢 327/327 → 328/328 327/327 → 328/328
search 🔴 2581/2608 → 2584/2611 2608/2608 → 2611/2611

You can validate these APIs yourself by using the make validate target.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant