@yeshwanthyk/ai 0.1.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/README.md +1142 -0
- package/dist/agent/agent-loop.d.ts +16 -0
- package/dist/agent/agent-loop.d.ts.map +1 -0
- package/dist/agent/agent-loop.js +307 -0
- package/dist/agent/agent-loop.js.map +1 -0
- package/dist/agent/index.d.ts +4 -0
- package/dist/agent/index.d.ts.map +1 -0
- package/dist/agent/index.js +3 -0
- package/dist/agent/index.js.map +1 -0
- package/dist/agent/tools/calculate.d.ts +15 -0
- package/dist/agent/tools/calculate.d.ts.map +1 -0
- package/dist/agent/tools/calculate.js +23 -0
- package/dist/agent/tools/calculate.js.map +1 -0
- package/dist/agent/tools/get-current-time.d.ts +15 -0
- package/dist/agent/tools/get-current-time.d.ts.map +1 -0
- package/dist/agent/tools/get-current-time.js +38 -0
- package/dist/agent/tools/get-current-time.js.map +1 -0
- package/dist/agent/tools/index.d.ts +3 -0
- package/dist/agent/tools/index.d.ts.map +1 -0
- package/dist/agent/tools/index.js +3 -0
- package/dist/agent/tools/index.js.map +1 -0
- package/dist/agent/types.d.ts +69 -0
- package/dist/agent/types.d.ts.map +1 -0
- package/dist/agent/types.js +2 -0
- package/dist/agent/types.js.map +1 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -0
- package/dist/models.d.ts +11 -0
- package/dist/models.d.ts.map +1 -0
- package/dist/models.generated.d.ts +7406 -0
- package/dist/models.generated.d.ts.map +1 -0
- package/dist/models.generated.js +7268 -0
- package/dist/models.generated.js.map +1 -0
- package/dist/models.js +35 -0
- package/dist/models.js.map +1 -0
- package/dist/providers/anthropic.d.ts +12 -0
- package/dist/providers/anthropic.d.ts.map +1 -0
- package/dist/providers/anthropic.js +538 -0
- package/dist/providers/anthropic.js.map +1 -0
- package/dist/providers/google.d.ts +12 -0
- package/dist/providers/google.d.ts.map +1 -0
- package/dist/providers/google.js +427 -0
- package/dist/providers/google.js.map +1 -0
- package/dist/providers/openai-completions.d.ts +12 -0
- package/dist/providers/openai-completions.d.ts.map +1 -0
- package/dist/providers/openai-completions.js +540 -0
- package/dist/providers/openai-completions.js.map +1 -0
- package/dist/providers/openai-responses.d.ts +14 -0
- package/dist/providers/openai-responses.d.ts.map +1 -0
- package/dist/providers/openai-responses.js +553 -0
- package/dist/providers/openai-responses.js.map +1 -0
- package/dist/providers/transform-messages.d.ts +3 -0
- package/dist/providers/transform-messages.d.ts.map +1 -0
- package/dist/providers/transform-messages.js +111 -0
- package/dist/providers/transform-messages.js.map +1 -0
- package/dist/stream.d.ts +11 -0
- package/dist/stream.d.ts.map +1 -0
- package/dist/stream.js +204 -0
- package/dist/stream.js.map +1 -0
- package/dist/types.d.ts +203 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +4 -0
- package/dist/types.js.map +1 -0
- package/dist/utils/event-stream.d.ts +19 -0
- package/dist/utils/event-stream.d.ts.map +1 -0
- package/dist/utils/event-stream.js +77 -0
- package/dist/utils/event-stream.js.map +1 -0
- package/dist/utils/json-parse.d.ts +9 -0
- package/dist/utils/json-parse.d.ts.map +1 -0
- package/dist/utils/json-parse.js +29 -0
- package/dist/utils/json-parse.js.map +1 -0
- package/dist/utils/oauth/anthropic.d.ts +20 -0
- package/dist/utils/oauth/anthropic.d.ts.map +1 -0
- package/dist/utils/oauth/anthropic.js +103 -0
- package/dist/utils/oauth/anthropic.js.map +1 -0
- package/dist/utils/overflow.d.ts +51 -0
- package/dist/utils/overflow.d.ts.map +1 -0
- package/dist/utils/overflow.js +106 -0
- package/dist/utils/overflow.js.map +1 -0
- package/dist/utils/sanitize-unicode.d.ts +22 -0
- package/dist/utils/sanitize-unicode.d.ts.map +1 -0
- package/dist/utils/sanitize-unicode.js +26 -0
- package/dist/utils/sanitize-unicode.js.map +1 -0
- package/dist/utils/typebox-helpers.d.ts +17 -0
- package/dist/utils/typebox-helpers.d.ts.map +1 -0
- package/dist/utils/typebox-helpers.js +21 -0
- package/dist/utils/typebox-helpers.js.map +1 -0
- package/dist/utils/validation.d.ts +18 -0
- package/dist/utils/validation.d.ts.map +1 -0
- package/dist/utils/validation.js +69 -0
- package/dist/utils/validation.js.map +1 -0
- package/package.json +60 -0
|
@@ -0,0 +1,553 @@
|
|
|
1
|
+
import OpenAI from "openai";
|
|
2
|
+
import { calculateCost } from "../models.js";
|
|
3
|
+
import { AssistantMessageEventStream } from "../utils/event-stream.js";
|
|
4
|
+
import { parseStreamingJson } from "../utils/json-parse.js";
|
|
5
|
+
import { sanitizeSurrogates } from "../utils/sanitize-unicode.js";
|
|
6
|
+
import { transformMessages } from "./transform-messages.js";
|
|
7
|
+
/**
|
|
8
|
+
* Generate function for OpenAI Responses API
|
|
9
|
+
*/
|
|
10
|
+
export const streamOpenAIResponses = (model, context, options) => {
|
|
11
|
+
const stream = new AssistantMessageEventStream();
|
|
12
|
+
// Start async processing
|
|
13
|
+
(async () => {
|
|
14
|
+
const output = {
|
|
15
|
+
role: "assistant",
|
|
16
|
+
content: [],
|
|
17
|
+
api: "openai-responses",
|
|
18
|
+
provider: model.provider,
|
|
19
|
+
model: model.id,
|
|
20
|
+
usage: {
|
|
21
|
+
input: 0,
|
|
22
|
+
output: 0,
|
|
23
|
+
cacheRead: 0,
|
|
24
|
+
cacheWrite: 0,
|
|
25
|
+
totalTokens: 0,
|
|
26
|
+
cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0, total: 0 },
|
|
27
|
+
},
|
|
28
|
+
stopReason: "stop",
|
|
29
|
+
timestamp: Date.now(),
|
|
30
|
+
};
|
|
31
|
+
try {
|
|
32
|
+
// Create OpenAI client
|
|
33
|
+
const client = createClient(model, context, options?.apiKey, options?.fetch);
|
|
34
|
+
const params = buildParams(model, context, options);
|
|
35
|
+
const openaiStream = await client.responses.create(params, {
|
|
36
|
+
signal: options?.signal,
|
|
37
|
+
});
|
|
38
|
+
stream.push({ type: "start", partial: output });
|
|
39
|
+
let currentItem = null;
|
|
40
|
+
let currentBlock = null;
|
|
41
|
+
const blocks = output.content;
|
|
42
|
+
const blockIndex = () => blocks.length - 1;
|
|
43
|
+
for await (const event of openaiStream) {
|
|
44
|
+
// Handle output item start
|
|
45
|
+
if (event.type === "response.output_item.added") {
|
|
46
|
+
const item = event.item;
|
|
47
|
+
if (item.type === "reasoning") {
|
|
48
|
+
currentItem = item;
|
|
49
|
+
currentBlock = { type: "thinking", thinking: "" };
|
|
50
|
+
output.content.push(currentBlock);
|
|
51
|
+
stream.push({
|
|
52
|
+
type: "thinking_start",
|
|
53
|
+
contentIndex: blockIndex(),
|
|
54
|
+
partial: output,
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
else if (item.type === "message") {
|
|
58
|
+
currentItem = item;
|
|
59
|
+
currentBlock = { type: "text", text: "" };
|
|
60
|
+
output.content.push(currentBlock);
|
|
61
|
+
stream.push({
|
|
62
|
+
type: "text_start",
|
|
63
|
+
contentIndex: blockIndex(),
|
|
64
|
+
partial: output,
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
else if (item.type === "function_call") {
|
|
68
|
+
currentItem = item;
|
|
69
|
+
currentBlock = {
|
|
70
|
+
type: "toolCall",
|
|
71
|
+
id: item.call_id + "|" + item.id,
|
|
72
|
+
name: item.name,
|
|
73
|
+
arguments: {},
|
|
74
|
+
partialJson: item.arguments || "",
|
|
75
|
+
};
|
|
76
|
+
output.content.push(currentBlock);
|
|
77
|
+
stream.push({
|
|
78
|
+
type: "toolcall_start",
|
|
79
|
+
contentIndex: blockIndex(),
|
|
80
|
+
partial: output,
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
// Handle reasoning summary deltas
|
|
85
|
+
else if (event.type === "response.reasoning_summary_part.added") {
|
|
86
|
+
if (currentItem && currentItem.type === "reasoning") {
|
|
87
|
+
currentItem.summary = currentItem.summary || [];
|
|
88
|
+
currentItem.summary.push(event.part);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
else if (event.type === "response.reasoning_summary_text.delta") {
|
|
92
|
+
if (currentItem &&
|
|
93
|
+
currentItem.type === "reasoning" &&
|
|
94
|
+
currentBlock &&
|
|
95
|
+
currentBlock.type === "thinking") {
|
|
96
|
+
currentItem.summary = currentItem.summary || [];
|
|
97
|
+
const lastPart = currentItem.summary[currentItem.summary.length - 1];
|
|
98
|
+
if (lastPart) {
|
|
99
|
+
currentBlock.thinking += event.delta;
|
|
100
|
+
lastPart.text += event.delta;
|
|
101
|
+
stream.push({
|
|
102
|
+
type: "thinking_delta",
|
|
103
|
+
contentIndex: blockIndex(),
|
|
104
|
+
delta: event.delta,
|
|
105
|
+
partial: output,
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
// Add a new line between summary parts (hack...)
|
|
111
|
+
else if (event.type === "response.reasoning_summary_part.done") {
|
|
112
|
+
if (currentItem &&
|
|
113
|
+
currentItem.type === "reasoning" &&
|
|
114
|
+
currentBlock &&
|
|
115
|
+
currentBlock.type === "thinking") {
|
|
116
|
+
currentItem.summary = currentItem.summary || [];
|
|
117
|
+
const lastPart = currentItem.summary[currentItem.summary.length - 1];
|
|
118
|
+
if (lastPart) {
|
|
119
|
+
currentBlock.thinking += "\n\n";
|
|
120
|
+
lastPart.text += "\n\n";
|
|
121
|
+
stream.push({
|
|
122
|
+
type: "thinking_delta",
|
|
123
|
+
contentIndex: blockIndex(),
|
|
124
|
+
delta: "\n\n",
|
|
125
|
+
partial: output,
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
// Handle text output deltas
|
|
131
|
+
else if (event.type === "response.content_part.added") {
|
|
132
|
+
if (currentItem && currentItem.type === "message") {
|
|
133
|
+
currentItem.content = currentItem.content || [];
|
|
134
|
+
// Filter out ReasoningText, only accept output_text and refusal
|
|
135
|
+
if (event.part.type === "output_text" ||
|
|
136
|
+
event.part.type === "refusal") {
|
|
137
|
+
currentItem.content.push(event.part);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
else if (event.type === "response.output_text.delta") {
|
|
142
|
+
if (currentItem &&
|
|
143
|
+
currentItem.type === "message" &&
|
|
144
|
+
currentBlock &&
|
|
145
|
+
currentBlock.type === "text") {
|
|
146
|
+
const lastPart = currentItem.content[currentItem.content.length - 1];
|
|
147
|
+
if (lastPart && lastPart.type === "output_text") {
|
|
148
|
+
currentBlock.text += event.delta;
|
|
149
|
+
lastPart.text += event.delta;
|
|
150
|
+
stream.push({
|
|
151
|
+
type: "text_delta",
|
|
152
|
+
contentIndex: blockIndex(),
|
|
153
|
+
delta: event.delta,
|
|
154
|
+
partial: output,
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
else if (event.type === "response.refusal.delta") {
|
|
160
|
+
if (currentItem &&
|
|
161
|
+
currentItem.type === "message" &&
|
|
162
|
+
currentBlock &&
|
|
163
|
+
currentBlock.type === "text") {
|
|
164
|
+
const lastPart = currentItem.content[currentItem.content.length - 1];
|
|
165
|
+
if (lastPart && lastPart.type === "refusal") {
|
|
166
|
+
currentBlock.text += event.delta;
|
|
167
|
+
lastPart.refusal += event.delta;
|
|
168
|
+
stream.push({
|
|
169
|
+
type: "text_delta",
|
|
170
|
+
contentIndex: blockIndex(),
|
|
171
|
+
delta: event.delta,
|
|
172
|
+
partial: output,
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
// Handle function call argument deltas
|
|
178
|
+
else if (event.type === "response.function_call_arguments.delta") {
|
|
179
|
+
if (currentItem &&
|
|
180
|
+
currentItem.type === "function_call" &&
|
|
181
|
+
currentBlock &&
|
|
182
|
+
currentBlock.type === "toolCall") {
|
|
183
|
+
currentBlock.partialJson += event.delta;
|
|
184
|
+
currentBlock.arguments = parseStreamingJson(currentBlock.partialJson);
|
|
185
|
+
stream.push({
|
|
186
|
+
type: "toolcall_delta",
|
|
187
|
+
contentIndex: blockIndex(),
|
|
188
|
+
delta: event.delta,
|
|
189
|
+
partial: output,
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
// Handle output item completion
|
|
194
|
+
else if (event.type === "response.output_item.done") {
|
|
195
|
+
const item = event.item;
|
|
196
|
+
if (item.type === "reasoning" &&
|
|
197
|
+
currentBlock &&
|
|
198
|
+
currentBlock.type === "thinking") {
|
|
199
|
+
currentBlock.thinking =
|
|
200
|
+
item.summary?.map((s) => s.text).join("\n\n") || "";
|
|
201
|
+
currentBlock.thinkingSignature = JSON.stringify(item);
|
|
202
|
+
stream.push({
|
|
203
|
+
type: "thinking_end",
|
|
204
|
+
contentIndex: blockIndex(),
|
|
205
|
+
content: currentBlock.thinking,
|
|
206
|
+
partial: output,
|
|
207
|
+
});
|
|
208
|
+
currentBlock = null;
|
|
209
|
+
}
|
|
210
|
+
else if (item.type === "message" &&
|
|
211
|
+
currentBlock &&
|
|
212
|
+
currentBlock.type === "text") {
|
|
213
|
+
currentBlock.text = item.content
|
|
214
|
+
.map((c) => (c.type === "output_text" ? c.text : c.refusal))
|
|
215
|
+
.join("");
|
|
216
|
+
currentBlock.textSignature = item.id;
|
|
217
|
+
stream.push({
|
|
218
|
+
type: "text_end",
|
|
219
|
+
contentIndex: blockIndex(),
|
|
220
|
+
content: currentBlock.text,
|
|
221
|
+
partial: output,
|
|
222
|
+
});
|
|
223
|
+
currentBlock = null;
|
|
224
|
+
}
|
|
225
|
+
else if (item.type === "function_call") {
|
|
226
|
+
const toolCall = {
|
|
227
|
+
type: "toolCall",
|
|
228
|
+
id: item.call_id + "|" + item.id,
|
|
229
|
+
name: item.name,
|
|
230
|
+
arguments: JSON.parse(item.arguments),
|
|
231
|
+
};
|
|
232
|
+
stream.push({
|
|
233
|
+
type: "toolcall_end",
|
|
234
|
+
contentIndex: blockIndex(),
|
|
235
|
+
toolCall,
|
|
236
|
+
partial: output,
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
// Handle completion
|
|
241
|
+
else if (event.type === "response.completed") {
|
|
242
|
+
const response = event.response;
|
|
243
|
+
if (response?.usage) {
|
|
244
|
+
const cachedTokens = response.usage.input_tokens_details?.cached_tokens || 0;
|
|
245
|
+
output.usage = {
|
|
246
|
+
// OpenAI includes cached tokens in input_tokens, so subtract to get non-cached input
|
|
247
|
+
input: (response.usage.input_tokens || 0) - cachedTokens,
|
|
248
|
+
output: response.usage.output_tokens || 0,
|
|
249
|
+
cacheRead: cachedTokens,
|
|
250
|
+
cacheWrite: 0,
|
|
251
|
+
totalTokens: response.usage.total_tokens || 0,
|
|
252
|
+
cost: {
|
|
253
|
+
input: 0,
|
|
254
|
+
output: 0,
|
|
255
|
+
cacheRead: 0,
|
|
256
|
+
cacheWrite: 0,
|
|
257
|
+
total: 0,
|
|
258
|
+
},
|
|
259
|
+
};
|
|
260
|
+
}
|
|
261
|
+
calculateCost(model, output.usage);
|
|
262
|
+
// Map status to stop reason
|
|
263
|
+
output.stopReason = mapStopReason(response?.status);
|
|
264
|
+
if (output.content.some((b) => b.type === "toolCall") &&
|
|
265
|
+
output.stopReason === "stop") {
|
|
266
|
+
output.stopReason = "toolUse";
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
// Handle errors
|
|
270
|
+
else if (event.type === "error") {
|
|
271
|
+
throw new Error(`Error Code ${event.code}: ${event.message}` || "Unknown error");
|
|
272
|
+
}
|
|
273
|
+
else if (event.type === "response.failed") {
|
|
274
|
+
throw new Error("Unknown error");
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
if (options?.signal?.aborted) {
|
|
278
|
+
throw new Error("Request was aborted");
|
|
279
|
+
}
|
|
280
|
+
if (output.stopReason === "aborted" || output.stopReason === "error") {
|
|
281
|
+
throw new Error("An unknown error occurred");
|
|
282
|
+
}
|
|
283
|
+
stream.push({ type: "done", reason: output.stopReason, message: output });
|
|
284
|
+
stream.end();
|
|
285
|
+
}
|
|
286
|
+
catch (error) {
|
|
287
|
+
for (const block of output.content)
|
|
288
|
+
delete block.index;
|
|
289
|
+
output.stopReason = options?.signal?.aborted ? "aborted" : "error";
|
|
290
|
+
output.errorMessage = formatErrorMessage(error);
|
|
291
|
+
stream.push({ type: "error", reason: output.stopReason, error: output });
|
|
292
|
+
stream.end();
|
|
293
|
+
}
|
|
294
|
+
})();
|
|
295
|
+
return stream;
|
|
296
|
+
};
|
|
297
|
+
function formatErrorMessage(error) {
|
|
298
|
+
if (error instanceof Error) {
|
|
299
|
+
const anyErr = error;
|
|
300
|
+
const cause = anyErr?.cause;
|
|
301
|
+
if (cause instanceof Error && cause.message && cause.message !== error.message) {
|
|
302
|
+
return `${error.message} (cause: ${cause.message})`;
|
|
303
|
+
}
|
|
304
|
+
if (typeof cause === "string" && cause && cause !== error.message) {
|
|
305
|
+
return `${error.message} (cause: ${cause})`;
|
|
306
|
+
}
|
|
307
|
+
if (cause && typeof cause === "object" && typeof cause.message === "string") {
|
|
308
|
+
const causeMessage = cause.message;
|
|
309
|
+
if (causeMessage && causeMessage !== error.message) {
|
|
310
|
+
return `${error.message} (cause: ${causeMessage})`;
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
return error.message;
|
|
314
|
+
}
|
|
315
|
+
try {
|
|
316
|
+
return JSON.stringify(error);
|
|
317
|
+
}
|
|
318
|
+
catch {
|
|
319
|
+
return String(error);
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
function createClient(model, context, apiKey, customFetch) {
|
|
323
|
+
if (!apiKey) {
|
|
324
|
+
if (!process.env.OPENAI_API_KEY) {
|
|
325
|
+
throw new Error("OpenAI API key is required. Set OPENAI_API_KEY environment variable or pass it as an argument.");
|
|
326
|
+
}
|
|
327
|
+
apiKey = process.env.OPENAI_API_KEY;
|
|
328
|
+
}
|
|
329
|
+
const headers = { ...model.headers };
|
|
330
|
+
if (model.provider === "github-copilot") {
|
|
331
|
+
// Copilot expects X-Initiator to indicate whether the request is user-initiated
|
|
332
|
+
// or agent-initiated. It's an agent call if ANY message in history has assistant/tool role.
|
|
333
|
+
const messages = context.messages || [];
|
|
334
|
+
const isAgentCall = messages.some((msg) => msg.role === "assistant" || msg.role === "toolResult");
|
|
335
|
+
headers["X-Initiator"] = isAgentCall ? "agent" : "user";
|
|
336
|
+
headers["Openai-Intent"] = "conversation-edits";
|
|
337
|
+
}
|
|
338
|
+
return new OpenAI({
|
|
339
|
+
apiKey,
|
|
340
|
+
baseURL: model.baseUrl,
|
|
341
|
+
dangerouslyAllowBrowser: true,
|
|
342
|
+
defaultHeaders: headers,
|
|
343
|
+
fetch: customFetch,
|
|
344
|
+
});
|
|
345
|
+
}
|
|
346
|
+
function buildParams(model, context, options) {
|
|
347
|
+
const messages = convertMessages(model, context);
|
|
348
|
+
const params = {
|
|
349
|
+
model: model.id,
|
|
350
|
+
input: messages,
|
|
351
|
+
stream: true,
|
|
352
|
+
};
|
|
353
|
+
// Codex API requires instructions and store=false
|
|
354
|
+
if (options?.instructions) {
|
|
355
|
+
params.instructions = options.instructions;
|
|
356
|
+
params.store = false;
|
|
357
|
+
}
|
|
358
|
+
if (options?.maxTokens) {
|
|
359
|
+
params.max_output_tokens = options?.maxTokens;
|
|
360
|
+
}
|
|
361
|
+
if (options?.temperature !== undefined) {
|
|
362
|
+
params.temperature = options?.temperature;
|
|
363
|
+
}
|
|
364
|
+
if (context.tools) {
|
|
365
|
+
params.tools = convertTools(context.tools);
|
|
366
|
+
}
|
|
367
|
+
if (model.reasoning) {
|
|
368
|
+
if (options?.reasoningEffort || options?.reasoningSummary) {
|
|
369
|
+
params.reasoning = {
|
|
370
|
+
effort: options?.reasoningEffort || "medium",
|
|
371
|
+
summary: options?.reasoningSummary || "auto",
|
|
372
|
+
};
|
|
373
|
+
params.include = ["reasoning.encrypted_content"];
|
|
374
|
+
}
|
|
375
|
+
else {
|
|
376
|
+
if (model.name.startsWith("gpt-5")) {
|
|
377
|
+
// Jesus Christ, see https://community.openai.com/t/need-reasoning-false-option-for-gpt-5/1351588/7
|
|
378
|
+
messages.push({
|
|
379
|
+
role: "developer",
|
|
380
|
+
content: [
|
|
381
|
+
{
|
|
382
|
+
type: "input_text",
|
|
383
|
+
text: "# Juice: 0 !important",
|
|
384
|
+
},
|
|
385
|
+
],
|
|
386
|
+
});
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
return params;
|
|
391
|
+
}
|
|
392
|
+
function convertMessages(model, context) {
|
|
393
|
+
const messages = [];
|
|
394
|
+
const transformedMessages = transformMessages(context.messages, model);
|
|
395
|
+
if (context.systemPrompt) {
|
|
396
|
+
const role = model.reasoning ? "developer" : "system";
|
|
397
|
+
messages.push({
|
|
398
|
+
role,
|
|
399
|
+
content: sanitizeSurrogates(context.systemPrompt),
|
|
400
|
+
});
|
|
401
|
+
}
|
|
402
|
+
for (const msg of transformedMessages) {
|
|
403
|
+
if (msg.role === "user") {
|
|
404
|
+
if (typeof msg.content === "string") {
|
|
405
|
+
messages.push({
|
|
406
|
+
role: "user",
|
|
407
|
+
content: [
|
|
408
|
+
{ type: "input_text", text: sanitizeSurrogates(msg.content) },
|
|
409
|
+
],
|
|
410
|
+
});
|
|
411
|
+
}
|
|
412
|
+
else {
|
|
413
|
+
const content = msg.content.map((item) => {
|
|
414
|
+
if (item.type === "text") {
|
|
415
|
+
return {
|
|
416
|
+
type: "input_text",
|
|
417
|
+
text: sanitizeSurrogates(item.text),
|
|
418
|
+
};
|
|
419
|
+
}
|
|
420
|
+
else {
|
|
421
|
+
return {
|
|
422
|
+
type: "input_image",
|
|
423
|
+
detail: "auto",
|
|
424
|
+
image_url: `data:${item.mimeType};base64,${item.data}`,
|
|
425
|
+
};
|
|
426
|
+
}
|
|
427
|
+
});
|
|
428
|
+
const filteredContent = !model.input.includes("image")
|
|
429
|
+
? content.filter((c) => c.type !== "input_image")
|
|
430
|
+
: content;
|
|
431
|
+
if (filteredContent.length === 0)
|
|
432
|
+
continue;
|
|
433
|
+
messages.push({
|
|
434
|
+
role: "user",
|
|
435
|
+
content: filteredContent,
|
|
436
|
+
});
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
else if (msg.role === "assistant") {
|
|
440
|
+
const output = [];
|
|
441
|
+
for (const block of msg.content) {
|
|
442
|
+
// Do not submit thinking blocks if the completion had an error (i.e. abort)
|
|
443
|
+
if (block.type === "thinking" && msg.stopReason !== "error") {
|
|
444
|
+
if (block.thinkingSignature) {
|
|
445
|
+
const reasoningItem = JSON.parse(block.thinkingSignature);
|
|
446
|
+
output.push(reasoningItem);
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
else if (block.type === "text") {
|
|
450
|
+
const textBlock = block;
|
|
451
|
+
output.push({
|
|
452
|
+
type: "message",
|
|
453
|
+
role: "assistant",
|
|
454
|
+
content: [
|
|
455
|
+
{
|
|
456
|
+
type: "output_text",
|
|
457
|
+
text: sanitizeSurrogates(textBlock.text),
|
|
458
|
+
annotations: [],
|
|
459
|
+
},
|
|
460
|
+
],
|
|
461
|
+
status: "completed",
|
|
462
|
+
id: textBlock.textSignature ||
|
|
463
|
+
"msg_" + Math.random().toString(36).substring(2, 15),
|
|
464
|
+
});
|
|
465
|
+
// Do not submit toolcall blocks if the completion had an error (i.e. abort)
|
|
466
|
+
}
|
|
467
|
+
else if (block.type === "toolCall" && msg.stopReason !== "error") {
|
|
468
|
+
const toolCall = block;
|
|
469
|
+
output.push({
|
|
470
|
+
type: "function_call",
|
|
471
|
+
id: toolCall.id.split("|")[1],
|
|
472
|
+
call_id: toolCall.id.split("|")[0],
|
|
473
|
+
name: toolCall.name,
|
|
474
|
+
arguments: JSON.stringify(toolCall.arguments),
|
|
475
|
+
});
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
if (output.length === 0)
|
|
479
|
+
continue;
|
|
480
|
+
messages.push(...output);
|
|
481
|
+
}
|
|
482
|
+
else if (msg.role === "toolResult") {
|
|
483
|
+
// Extract text and image content
|
|
484
|
+
const textResult = msg.content
|
|
485
|
+
.filter((c) => c.type === "text")
|
|
486
|
+
.map((c) => c.text)
|
|
487
|
+
.join("\n");
|
|
488
|
+
const hasImages = msg.content.some((c) => c.type === "image");
|
|
489
|
+
// Always send function_call_output with text (or placeholder if only images)
|
|
490
|
+
const hasText = textResult.length > 0;
|
|
491
|
+
messages.push({
|
|
492
|
+
type: "function_call_output",
|
|
493
|
+
call_id: msg.toolCallId.split("|")[0],
|
|
494
|
+
output: sanitizeSurrogates(hasText ? textResult : "(see attached image)"),
|
|
495
|
+
});
|
|
496
|
+
// If there are images and model supports them, send a follow-up user message with images
|
|
497
|
+
if (hasImages && model.input.includes("image")) {
|
|
498
|
+
const contentParts = [];
|
|
499
|
+
// Add text prefix
|
|
500
|
+
contentParts.push({
|
|
501
|
+
type: "input_text",
|
|
502
|
+
text: "Attached image(s) from tool result:",
|
|
503
|
+
});
|
|
504
|
+
// Add images
|
|
505
|
+
for (const block of msg.content) {
|
|
506
|
+
if (block.type === "image") {
|
|
507
|
+
contentParts.push({
|
|
508
|
+
type: "input_image",
|
|
509
|
+
detail: "auto",
|
|
510
|
+
image_url: `data:${block.mimeType};base64,${block.data}`,
|
|
511
|
+
});
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
messages.push({
|
|
515
|
+
role: "user",
|
|
516
|
+
content: contentParts,
|
|
517
|
+
});
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
return messages;
|
|
522
|
+
}
|
|
523
|
+
function convertTools(tools) {
|
|
524
|
+
return tools.map((tool) => ({
|
|
525
|
+
type: "function",
|
|
526
|
+
name: tool.name,
|
|
527
|
+
description: tool.description,
|
|
528
|
+
parameters: tool.parameters, // TypeBox already generates JSON Schema
|
|
529
|
+
strict: null,
|
|
530
|
+
}));
|
|
531
|
+
}
|
|
532
|
+
function mapStopReason(status) {
|
|
533
|
+
if (!status)
|
|
534
|
+
return "stop";
|
|
535
|
+
switch (status) {
|
|
536
|
+
case "completed":
|
|
537
|
+
return "stop";
|
|
538
|
+
case "incomplete":
|
|
539
|
+
return "length";
|
|
540
|
+
case "failed":
|
|
541
|
+
case "cancelled":
|
|
542
|
+
return "error";
|
|
543
|
+
// These two are wonky ...
|
|
544
|
+
case "in_progress":
|
|
545
|
+
case "queued":
|
|
546
|
+
return "stop";
|
|
547
|
+
default: {
|
|
548
|
+
const _exhaustive = status;
|
|
549
|
+
throw new Error(`Unhandled stop reason: ${_exhaustive}`);
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
//# sourceMappingURL=openai-responses.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"openai-responses.js","sourceRoot":"","sources":["../../src/providers/openai-responses.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAY5B,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAe7C,OAAO,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAElE,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAY5D;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAuC,CACxE,KAAgC,EAChC,OAAgB,EAChB,OAAgC,EACF,EAAE,CAAC;IACjC,MAAM,MAAM,GAAG,IAAI,2BAA2B,EAAE,CAAC;IAEjD,yBAAyB;IACzB,CAAC,KAAK,IAAI,EAAE,CAAC;QACZ,MAAM,MAAM,GAAqB;YAChC,IAAI,EAAE,WAAW;YACjB,OAAO,EAAE,EAAE;YACX,GAAG,EAAE,kBAAyB;YAC9B,QAAQ,EAAE,KAAK,CAAC,QAAQ;YACxB,KAAK,EAAE,KAAK,CAAC,EAAE;YACf,KAAK,EAAE;gB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