This commit is contained in:
2026-01-10 16:26:20 +08:00
parent b4033e146e
commit 31cc0c42d8
9 changed files with 326 additions and 252 deletions

View File

@@ -25,11 +25,6 @@ export class Ollama extends BaseChat {
const baseURL = options.baseURL || Ollama.BASE_URL;
super({ ...(options as BaseChatOptions), baseURL: baseURL });
}
async chat(messages: ChatMessage[], options?: ChatMessageOptions) {
const res = await super.chat(messages, options);
console.log('thunk', this.getChatUsage());
return res;
}
/**
* 获取模型列表
* @returns