@moxxy/plugin-provider-openai-codex 0.41.3 → 0.42.1
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.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/live/gpt-live-call.d.ts +50 -0
- package/dist/live/gpt-live-call.d.ts.map +1 -0
- package/dist/live/gpt-live-call.js +108 -0
- package/dist/live/gpt-live-call.js.map +1 -0
- package/dist/live/gpt-live-history.d.ts +18 -0
- package/dist/live/gpt-live-history.d.ts.map +1 -0
- package/dist/live/gpt-live-history.js +52 -0
- package/dist/live/gpt-live-history.js.map +1 -0
- package/dist/models.d.ts +0 -6
- package/dist/models.d.ts.map +1 -1
- package/dist/models.js +17 -21
- package/dist/models.js.map +1 -1
- package/dist/provider.d.ts +1 -1
- package/dist/provider.d.ts.map +1 -1
- package/dist/provider.js.map +1 -1
- package/dist/translate.d.ts +4 -2
- package/dist/translate.d.ts.map +1 -1
- package/dist/translate.js +2 -0
- package/dist/translate.js.map +1 -1
- package/package.json +6 -6
- package/src/index.ts +15 -0
- package/src/live/gpt-live-call.test.ts +169 -0
- package/src/live/gpt-live-call.ts +148 -0
- package/src/live/gpt-live-history.test.ts +90 -0
- package/src/live/gpt-live-history.ts +59 -0
- package/src/models.test.ts +27 -0
- package/src/models.ts +18 -21
- package/src/provider.test.ts +19 -5
- package/src/provider.ts +2 -2
- package/src/translate.test.ts +6 -1
- package/src/translate.ts +5 -2
package/src/translate.ts
CHANGED
|
@@ -39,7 +39,9 @@ export interface ResponsesBody {
|
|
|
39
39
|
input: ResponsesInputItem[];
|
|
40
40
|
tools?: ResponsesTool[];
|
|
41
41
|
parallel_tool_calls?: boolean;
|
|
42
|
-
reasoning?: { effort?: 'low' | 'medium' | 'high'; summary?: 'auto' | 'detailed' };
|
|
42
|
+
reasoning?: { effort?: 'low' | 'medium' | 'high' | 'xhigh'; summary?: 'auto' | 'detailed' };
|
|
43
|
+
/** `priority` is OpenAI's fast mode. */
|
|
44
|
+
service_tier?: 'priority';
|
|
43
45
|
store?: boolean;
|
|
44
46
|
stream: true;
|
|
45
47
|
prompt_cache_key?: string;
|
|
@@ -166,7 +168,7 @@ export function toResponsesTools(tools: ReadonlyArray<ToolDef>): ResponsesFuncti
|
|
|
166
168
|
|
|
167
169
|
export interface BuildBodyOptions {
|
|
168
170
|
readonly sessionHint?: string;
|
|
169
|
-
readonly reasoningEffort?: 'low' | 'medium' | 'high';
|
|
171
|
+
readonly reasoningEffort?: 'low' | 'medium' | 'high' | 'xhigh';
|
|
170
172
|
readonly hostedTools?: ReadonlyArray<HostedTool>;
|
|
171
173
|
}
|
|
172
174
|
|
|
@@ -236,6 +238,7 @@ export function toResponsesBody(req: ProviderRequest, opts: BuildBodyOptions = {
|
|
|
236
238
|
}
|
|
237
239
|
if (tools.length > 0) body.tools = tools;
|
|
238
240
|
if (opts.sessionHint) body.prompt_cache_key = opts.sessionHint;
|
|
241
|
+
if (req.fast) body.service_tier = 'priority';
|
|
239
242
|
if (req.maxTokens !== undefined) noteMaxTokensUnsupported();
|
|
240
243
|
if (req.temperature !== undefined) noteTemperatureUnsupported();
|
|
241
244
|
return body;
|