Fix: context-manager import error - use QwenOAuth class correctly
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user