/**
 * src/models/qwen.ts
 * مزود Qwen 2.5 72B عبر Together AI — الدماغ الرئيسي للوكيل
 * Best Arabic LLM available — handles most conversations
 */
import { config, MODELS } from '../config.js';
import { callOpenAICompatible, } from './provider.js';
const TOGETHER_BASE_URL = 'https://api.together.xyz/v1';
export class QwenProvider {
    name = 'qwen';
    model = MODELS.brain.model;
    async chat(messages, options = {}) {
        return callOpenAICompatible(TOGETHER_BASE_URL, config.TOGETHER_API_KEY, this.model, messages, {
            temperature: options.temperature ?? 0.7,
            maxTokens: options.maxTokens ?? 2048,
            ...options,
        });
    }
}
/** Vision variant — Qwen2.5-VL-72B for image understanding */
export class QwenVisionProvider {
    name = 'qwen-vision';
    model = MODELS.vision.model;
    async chat(messages, options = {}) {
        return callOpenAICompatible(TOGETHER_BASE_URL, config.TOGETHER_API_KEY, this.model, messages, {
            temperature: options.temperature ?? 0.3,
            maxTokens: options.maxTokens ?? 2048,
            ...options,
        });
    }
}
// Singleton instances
export const qwen = new QwenProvider();
export const qwenVision = new QwenVisionProvider();
//# sourceMappingURL=qwen.js.map