@oh-my-pi/pi-ai 12.11.1 → 12.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oh-my-pi/pi-ai",
|
|
3
|
-
"version": "12.11.
|
|
3
|
+
"version": "12.11.2",
|
|
4
4
|
"description": "Unified LLM API with automatic model discovery and provider configuration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.ts",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"@connectrpc/connect-node": "^2.1.1",
|
|
64
64
|
"@google/genai": "^1.41.0",
|
|
65
65
|
"@mistralai/mistralai": "^1.14.0",
|
|
66
|
-
"@oh-my-pi/pi-utils": "12.11.
|
|
66
|
+
"@oh-my-pi/pi-utils": "12.11.2",
|
|
67
67
|
"@sinclair/typebox": "^0.34.48",
|
|
68
68
|
"@smithy/node-http-handler": "^4.4.10",
|
|
69
69
|
"ajv": "^8.18.0",
|
|
@@ -72,7 +72,7 @@ export interface OpenAIResponsesOptions extends StreamOptions {
|
|
|
72
72
|
toolChoice?: ToolChoice;
|
|
73
73
|
/**
|
|
74
74
|
* Enforce strict tool call/result pairing when building Responses API inputs.
|
|
75
|
-
* Azure OpenAI Responses
|
|
75
|
+
* Azure OpenAI and GitHub Copilot Responses paths require tool results to match prior tool calls.
|
|
76
76
|
*/
|
|
77
77
|
strictResponsesPairing?: boolean;
|
|
78
78
|
}
|
|
@@ -402,7 +402,9 @@ function createClient(
|
|
|
402
402
|
}
|
|
403
403
|
|
|
404
404
|
function buildParams(model: Model<"openai-responses">, context: Context, options?: OpenAIResponsesOptions) {
|
|
405
|
-
const strictResponsesPairing =
|
|
405
|
+
const strictResponsesPairing =
|
|
406
|
+
options?.strictResponsesPairing ??
|
|
407
|
+
(isAzureOpenAIBaseUrl(model.baseUrl ?? "") || model.provider === "github-copilot");
|
|
406
408
|
const messages = convertMessages(model, context, strictResponsesPairing);
|
|
407
409
|
|
|
408
410
|
const cacheRetention = resolveCacheRetention(options?.cacheRetention);
|