ai
This commit is contained in:
+3
-3
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user