From c2e60db19640f51d7594fca37e529a5e767ccb53 Mon Sep 17 00:00:00 2001 From: Mplan Date: Tue, 9 Jun 2026 17:43:00 +0800 Subject: [PATCH] chore(config): update default model to deepseek-v4-flash --- README.md | 4 ++-- index.ts | 2 +- src/config.ts | 2 +- test/config.test.ts | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 9648794..ed367b0 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,7 @@ bun run gai config |---|---|---| | `GAI_API_KEY` | — | **Required.** Your API key | | `GAI_API_BASE` | `https://api.deepseek.com/v1` | API base URL | -| `GAI_MODEL` | `deepseek-chat` | Model name | +| `GAI_MODEL` | `deepseek-v4-flash` | Model name | | `GAI_MAX_TOKENS` | `500` | Max response tokens | | `GAI_TEMPERATURE` | `0.7` | Sampling temperature | @@ -96,7 +96,7 @@ Bun auto-loads `.env` — no dotenv needed: ```bash GAI_API_KEY=sk-your-key GAI_API_BASE=https://api.deepseek.com/v1 -GAI_MODEL=deepseek-chat +GAI_MODEL=deepseek-v4-flash ``` ### Using other providers diff --git a/index.ts b/index.ts index 5275a1e..ea8cab7 100644 --- a/index.ts +++ b/index.ts @@ -38,7 +38,7 @@ ${BOLD}Configuration:${RESET} Set via ${CYAN}gai config${RESET} or environment variables: GAI_API_KEY OpenAI-compatible API key GAI_API_BASE API base URL (default: https://api.deepseek.com/v1) - GAI_MODEL Model name (default: deepseek-chat) + GAI_MODEL Model name (default: deepseek-v4-flash) GAI_MAX_TOKENS Max tokens (default: 500) GAI_TEMPERATURE Temperature (default: 0.7) `); diff --git a/src/config.ts b/src/config.ts index 387ffff..1be7e04 100644 --- a/src/config.ts +++ b/src/config.ts @@ -6,7 +6,7 @@ import type { Config } from "./types"; const DEFAULT_CONFIG: Config = { apiKey: "", apiBase: "https://api.deepseek.com/v1", - model: "deepseek-chat", + model: "deepseek-v4-flash", maxTokens: 500, temperature: 0.7, }; diff --git a/test/config.test.ts b/test/config.test.ts index 3e4e3fb..0664ec8 100644 --- a/test/config.test.ts +++ b/test/config.test.ts @@ -25,12 +25,12 @@ describe("config", () => { const origModel = process.env.GAI_MODEL; process.env.GAI_API_BASE = "https://api.deepseek.com/v1"; - process.env.GAI_MODEL = "deepseek-chat"; + process.env.GAI_MODEL = "deepseek-v4-flash"; const config = await loadConfig(); expect(config.apiBase).toBe("https://api.deepseek.com/v1"); - expect(config.model).toBe("deepseek-chat"); + expect(config.model).toBe("deepseek-v4-flash"); if (origBase) process.env.GAI_API_BASE = origBase; else delete process.env.GAI_API_BASE;