%USERPROFILE%\.kimi-code~/.kimi-code/config.tomldefault_model = "naoshengyun_chat"
[providers.naoshengyun_chat]
type = "openai"
base_url = "https://api.naoshengyun.com/v1"
api_key = "sk-替换为你的API令牌"
[models.naoshengyun_chat]
provider = "naoshengyun_chat"
model = "替换为模型广场中的模型ID"
max_context_size = 200000default_model = "naoshengyun_responses"
[providers.naoshengyun_responses]
type = "openai_responses"
base_url = "https://api.naoshengyun.com/v1"
api_key = "sk-替换为你的API令牌"
[models.naoshengyun_responses]
provider = "naoshengyun_responses"
model = "替换为模型广场中的模型ID"
max_context_size = 200000default_model = "naoshengyun_anthropic"
[providers.naoshengyun_anthropic]
type = "anthropic"
base_url = "https://api.naoshengyun.com"
api_key = "sk-替换为你的API令牌"
[models.naoshengyun_anthropic]
provider = "naoshengyun_anthropic"
model = "替换为模型广场中的模型ID"
max_context_size = 200000$env:KIMI_MODEL_NAME = Read-Host "请输入模型 ID"
$secureKey = Read-Host "请输入脑生云 API Key" -AsSecureString
$ptr = [Runtime.InteropServices.Marshal]::SecureStringToBSTR($secureKey)
try { $env:KIMI_MODEL_API_KEY = [Runtime.InteropServices.Marshal]::PtrToStringBSTR($ptr) } finally { [Runtime.InteropServices.Marshal]::ZeroFreeBSTR($ptr) }
$env:KIMI_MODEL_PROVIDER_TYPE = "openai"
$env:KIMI_MODEL_BASE_URL = "https://api.naoshengyun.com/v1"
$env:KIMI_MODEL_MAX_CONTEXT_SIZE = "200000"
kimistty echo。