using UnityEngine;

namespace CG.Chat
{
    [CreateAssetMenu(menuName = "CG/Chat Backend Config", fileName = "ChatBackendConfig")]
    public class ChatBackendConfig : ScriptableObject
    {
        public enum ProviderType
        {
            Ollama,
            OpenAICompatible, // LM Studio
            AnythingLLM        // reserved
        }

        [Header("Provider")]
        public ProviderType provider = ProviderType.Ollama;

        [Header("Model")]
        public string model = "gemma3:4b";

        [TextArea(2, 6)]
        public string systemPrompt = "你是一個使用繁體中文回覆的助理。請簡潔、有條理。";

        [Header("Ollama")]
        public string ollamaBaseUrl = "http://localhost:11434";

        [Header("OpenAI-Compatible (LM Studio)")]
        public string openaiBaseUrl = "http://localhost:1234/v1";
        public string openaiApiKey = "";

        [Header("AnythingLLM")]
        public string anythingllmBaseUrl = "http://localhost:3001";
        public string anythingllmApiKey = "";
        public string anythingllmWorkspace = "";
    }
}
