feat: support DeepSeek, OpenRouter & Ollama providers

This commit is contained in:
AnotiaWang
2025-02-15 15:31:25 +08:00
parent cffb4c3d73
commit 970ca029f4
12 changed files with 144 additions and 33 deletions

View File

@ -38,7 +38,7 @@ export function generateFeedback({
prompt,
onError({ error }) {
console.error(`generateFeedback`, error)
throw error
throw error instanceof Error ? error : new Error(String(error))
},
})