Fix: context-manager import error - use QwenOAuth class correctly

This commit is contained in:
Gemini AI
2025-12-14 20:40:59 +04:00
Unverified
parent d252957dd2
commit 83c035b56d

View File

@@ -5,7 +5,7 @@
* Original implementation for OpenQode TUI
*/
import { getQwen } from '../qwen-oauth.mjs';
import { QwenOAuth } from '../qwen-oauth.mjs';
// Rough token estimation: ~4 chars per token for English
const CHARS_PER_TOKEN = 4;
@@ -96,7 +96,7 @@ SUMMARY:`;
try {
// Use AI to generate summary
const oauth = getQwen();
const oauth = new QwenOAuth();
const result = await oauth.sendMessage(summaryPrompt, 'qwen-turbo');
if (result.success) {