This commit is contained in:
董海洋
2026-05-24 20:49:06 +08:00
parent 7869b1a4f6
commit f7bb96ed89
+3 -3
View File
@@ -158,7 +158,7 @@ router.post('/recognize-product', async (ctx) => {
'Content-Type': 'application/json' 'Content-Type': 'application/json'
}, },
body: JSON.stringify({ body: JSON.stringify({
model: 'qwen3.5-flash', model: 'qwen-vl-max',
messages: [ messages: [
{ {
role: 'user', role: 'user',
@@ -182,11 +182,11 @@ router.post('/recognize-product', async (ctx) => {
timeout: 60000 timeout: 60000
}); });
console.log('Qwen response status:', response.status); console.log('Qwen VL response status:', response.status);
if (!response.ok) { if (!response.ok) {
const errorText = await response.text(); const errorText = await response.text();
console.error('Qwen API Error:', response.status, errorText); console.error('Qwen VL API Error:', response.status, errorText);
let errorMsg = 'AI 服务调用失败'; let errorMsg = 'AI 服务调用失败';
if (response.status === 401) { if (response.status === 401) {