chore: clean up lint warnings

This commit is contained in:
Simon
2025-10-12 00:34:17 +08:00
parent f923e8a6db
commit 8ac868ebe2
6 changed files with 573 additions and 458 deletions

View File

@@ -84,12 +84,11 @@ export class LLM {
usage: LanguageModelUsage
}> {
const isClaude = this.config.modelName.slice(0, 8).includes('claude')
const isQwen = this.config.modelName.slice(0, 6).includes('qwen')
const isGPT = this.config.modelName.slice(0, 5).includes('gpt')
// const isQwen = this.config.modelName.slice(0, 6).includes('qwen')
// const isGPT = this.config.modelName.slice(0, 5).includes('gpt')
return await withRetry(
async () => {
// try {
const result = await generateText({
model: this.#model,
messages,
@@ -165,16 +164,6 @@ export class LLM {
toolResult,
usage,
}
// } catch (error) {
// // handle ai-sdk internal error here
// // currently useless since we bypassed most of ai-sdk logic
// console.log('generateText error', error)
// console.log('APICallError', APICallError.isInstance(error))
// console.log('isNoSuchModelError', NoSuchModelError.isInstance(error))
// throw error
// }
},
// retry settings
{