chore(config): update default model to deepseek-v4-flash
This commit is contained in:
@@ -85,7 +85,7 @@ bun run gai config
|
|||||||
|---|---|---|
|
|---|---|---|
|
||||||
| `GAI_API_KEY` | — | **Required.** Your API key |
|
| `GAI_API_KEY` | — | **Required.** Your API key |
|
||||||
| `GAI_API_BASE` | `https://api.deepseek.com/v1` | API base URL |
|
| `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_MAX_TOKENS` | `500` | Max response tokens |
|
||||||
| `GAI_TEMPERATURE` | `0.7` | Sampling temperature |
|
| `GAI_TEMPERATURE` | `0.7` | Sampling temperature |
|
||||||
|
|
||||||
@@ -96,7 +96,7 @@ Bun auto-loads `.env` — no dotenv needed:
|
|||||||
```bash
|
```bash
|
||||||
GAI_API_KEY=sk-your-key
|
GAI_API_KEY=sk-your-key
|
||||||
GAI_API_BASE=https://api.deepseek.com/v1
|
GAI_API_BASE=https://api.deepseek.com/v1
|
||||||
GAI_MODEL=deepseek-chat
|
GAI_MODEL=deepseek-v4-flash
|
||||||
```
|
```
|
||||||
|
|
||||||
### Using other providers
|
### Using other providers
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ ${BOLD}Configuration:${RESET}
|
|||||||
Set via ${CYAN}gai config${RESET} or environment variables:
|
Set via ${CYAN}gai config${RESET} or environment variables:
|
||||||
GAI_API_KEY OpenAI-compatible API key
|
GAI_API_KEY OpenAI-compatible API key
|
||||||
GAI_API_BASE API base URL (default: https://api.deepseek.com/v1)
|
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_MAX_TOKENS Max tokens (default: 500)
|
||||||
GAI_TEMPERATURE Temperature (default: 0.7)
|
GAI_TEMPERATURE Temperature (default: 0.7)
|
||||||
`);
|
`);
|
||||||
|
|||||||
+1
-1
@@ -6,7 +6,7 @@ import type { Config } from "./types";
|
|||||||
const DEFAULT_CONFIG: Config = {
|
const DEFAULT_CONFIG: Config = {
|
||||||
apiKey: "",
|
apiKey: "",
|
||||||
apiBase: "https://api.deepseek.com/v1",
|
apiBase: "https://api.deepseek.com/v1",
|
||||||
model: "deepseek-chat",
|
model: "deepseek-v4-flash",
|
||||||
maxTokens: 500,
|
maxTokens: 500,
|
||||||
temperature: 0.7,
|
temperature: 0.7,
|
||||||
};
|
};
|
||||||
|
|||||||
+2
-2
@@ -25,12 +25,12 @@ describe("config", () => {
|
|||||||
const origModel = process.env.GAI_MODEL;
|
const origModel = process.env.GAI_MODEL;
|
||||||
|
|
||||||
process.env.GAI_API_BASE = "https://api.deepseek.com/v1";
|
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();
|
const config = await loadConfig();
|
||||||
|
|
||||||
expect(config.apiBase).toBe("https://api.deepseek.com/v1");
|
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;
|
if (origBase) process.env.GAI_API_BASE = origBase;
|
||||||
else delete process.env.GAI_API_BASE;
|
else delete process.env.GAI_API_BASE;
|
||||||
|
|||||||
Reference in New Issue
Block a user