import OpenAI from 'openai';

const client = new OpenAI({
  apiKey: 'sk-c25679401ba24c749f53be86b0c9a7a6',
  baseURL: 'https://dashscope.aliyuncs.com/compatible-mode/v1',
});

async function test() {
  console.log('Testing qwen3.6-plus with OpenAI SDK...');
  try {
    const result = await client.chat.completions.create({
      model: 'qwen3.6-plus',
      messages: [{ role: 'user', content: '你是谁？' }],
    });
    console.log('Result:', result.choices[0].message.content);
  } catch (e: any) {
    console.error('Error:', e.message);
  }
}

test();
