ai
This commit is contained in:
+3
-3
@@ -158,7 +158,7 @@ router.post('/recognize-product', async (ctx) => {
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
body: JSON.stringify({
|
||||
model: 'qwen3.5-flash',
|
||||
model: 'qwen-vl-max',
|
||||
messages: [
|
||||
{
|
||||
role: 'user',
|
||||
@@ -182,11 +182,11 @@ router.post('/recognize-product', async (ctx) => {
|
||||
timeout: 60000
|
||||
});
|
||||
|
||||
console.log('Qwen response status:', response.status);
|
||||
console.log('Qwen VL response status:', response.status);
|
||||
|
||||
if (!response.ok) {
|
||||
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 服务调用失败';
|
||||
if (response.status === 401) {
|
||||
|
||||
Reference in New Issue
Block a user