fix: route ai polish through available models

This commit is contained in:
2026-06-04 10:13:31 +08:00
parent 3f5dfdc465
commit 88d598303c
7 changed files with 67 additions and 23 deletions

View File

@@ -200,6 +200,7 @@ export const useChat = (options = {}) => {
body: JSON.stringify({
text: content,
system_prompt: options.systemPrompt || '',
model: options.model || '',
mode,
target_language: options.targetLanguage || (mode === 'chat' ? 'keep' : 'en')
})