opencode-codebuddy-external-auth 1.0.11 → 1.0.12
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/plugin.js +2 -1
- package/package.json +1 -1
package/dist/plugin.js
CHANGED
|
@@ -233,7 +233,8 @@ async function executeViaHttpApi(openaiRequest, prompt, systemPrompt) {
|
|
|
233
233
|
const agentRequest = {
|
|
234
234
|
prompt,
|
|
235
235
|
model: openaiRequest.model,
|
|
236
|
-
|
|
236
|
+
print: true, // 关键:非交互模式,返回结果
|
|
237
|
+
outputFormat: openaiRequest.stream ? "stream-json" : "text",
|
|
237
238
|
};
|
|
238
239
|
if (systemPrompt) {
|
|
239
240
|
agentRequest.systemPrompt = systemPrompt;
|