update dist

This commit is contained in:
Paulo Santos
2026-02-13 12:41:36 +00:00
committed by GitHub
parent 672ba8a3ac
commit a8bddad5e5
2 changed files with 6 additions and 3 deletions

7
dist/index.js generated vendored
View File

@@ -58300,8 +58300,9 @@ OpenAI.Responses = Responses;
OpenAI.Evals = Evals;
OpenAI.Containers = Containers;
// Note: solution around models using different underlying max tokens properties
/**
* Build the token limit params for a chat completion request.
* Build according to what input was passed, default to max_tokens.
* Only one of max_tokens or max_completion_tokens will be set.
*/
function buildMaxTokensParam(request) {
@@ -58420,7 +58421,9 @@ async function mcpInference(request, githubMcpClient) {
return lastAssistantMessage?.content || null;
}
/**
* Wrapper around OpenAI chat.completions.create with response validation.
* Wrapper around OpenAI chat.completions.create with defensive handling for cases where
* the SDK returns a raw string (e.g., unexpected content-type or streaming body) instead of
* a parsed object. Ensures an object with a 'choices' array is returned or throws a descriptive error.
*/
async function chatCompletion(client, params, context) {
try {

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long