package com.pharmacopoeia.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
@ConfigurationProperties(prefix = "qwen")
public class QwenProperties {
    private String apiKey;
    private String baseUrl = "https://dashscope.aliyuncs.com/compatible-mode/v1";
    private String model = "qwen3.7-max";
    private int maxTokens = 4096;
    private double temperature = 0.0;
    private String embeddingModel = "text-embedding-v3";
    private String embeddingUrl = "https://dashscope.aliyuncs.com/api/v1/services/embeddings/text-embedding/text-embedding";
    private int embeddingDim = 1024;
    private String vlModel = "qwen3.7-plus";       // 多模态模型（图片/视频分析，原生 API）
    private String multimodalUrl = "https://dashscope.aliyuncs.com/api/v1/services/aigc/multimodal-generation/generation";
    private boolean enableWebSearch = true;        // 是否启用联网搜索
}
