opencode-codebuddy-external-auth 1.0.13 → 1.0.14
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 +3 -0
- package/package.json +1 -1
package/dist/plugin.js
CHANGED
|
@@ -204,6 +204,9 @@ function createProxyFetch() {
|
|
|
204
204
|
const openaiRequest = JSON.parse(typeof body === "string" ? body : await new Response(body).text());
|
|
205
205
|
// Convert to CodeBuddy format
|
|
206
206
|
const { prompt, systemPrompt } = convertMessagesToPrompt(openaiRequest.messages);
|
|
207
|
+
// 调试日志
|
|
208
|
+
console.log(`[codebuddy-external] Messages count: ${openaiRequest.messages.length}`);
|
|
209
|
+
console.log(`[codebuddy-external] Prompt: ${prompt.substring(0, 100)}...`);
|
|
207
210
|
// 根据配置选择 HTTP API 模式或 CLI 模式
|
|
208
211
|
if (CONFIG.useHttpApi) {
|
|
209
212
|
return await executeViaHttpApi(openaiRequest, prompt, systemPrompt);
|