@prestyj/ai 5.19.0 → 5.21.0
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/dist/index.cjs +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2573,7 +2573,7 @@ function extractRequestIdFromMessage(message) {
|
|
|
2573
2573
|
|
|
2574
2574
|
// src/providers/openai-codex.ts
|
|
2575
2575
|
var DEFAULT_BASE_URL = "https://chatgpt.com/backend-api";
|
|
2576
|
-
var CODEX_CLIENT_VERSION = "0.
|
|
2576
|
+
var CODEX_CLIENT_VERSION = "0.155.1";
|
|
2577
2577
|
var CODEX_REQUEST_COMPRESSION_MIN_BYTES = 16 * 1024;
|
|
2578
2578
|
var zstdInitPromise;
|
|
2579
2579
|
async function encodeCodexRequest(body) {
|
|
@@ -2680,6 +2680,9 @@ async function* runStream3(options, retriedWithoutReasoning = false) {
|
|
|
2680
2680
|
summary: "auto",
|
|
2681
2681
|
...responsesLite ? { context: "all_turns" } : {}
|
|
2682
2682
|
};
|
|
2683
|
+
if (responsesLite) {
|
|
2684
|
+
body.text = { verbosity: "low" };
|
|
2685
|
+
}
|
|
2683
2686
|
const headers = {
|
|
2684
2687
|
"Content-Type": "application/json",
|
|
2685
2688
|
Accept: "text/event-stream",
|