Add unit tests for OpenAI plugin and establish coding standards
- Introduced comprehensive unit tests for the OpenAI plugin, covering SSE parsing, sentinel matching, delta extraction, request building, and more. - Created a new markdown file detailing coding and naming conventions for the dstalk project, including guidelines for comments, naming rules, code organization, and memory management practices.
This commit is contained in:
@@ -29,7 +29,7 @@ dstalk 是一款 AI 编程助手命令行工具, 通过调用大模型在终端
|
||||
│ │ Host: 插件加载 · 服务注册 · 事件总线 · 配置管理 │ │
|
||||
│ └──────────────────────────────────────────────────────┘ │
|
||||
│ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────────┐ │
|
||||
│ │ deepseek │ │ anthropic│ │ network │ │ lsp │ │
|
||||
│ │ openai │ │ anthropic│ │ network │ │ lsp │ │
|
||||
│ │ (ai) │ │ (ai) │ │ (http) │ │ 客户端 │ │
|
||||
│ └──────────┘ └──────────┘ └──────────┘ └──────────────┘ │
|
||||
│ ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌──────────────┐ │
|
||||
@@ -51,9 +51,9 @@ dstalk 是一款 AI 编程助手命令行工具, 通过调用大模型在终端
|
||||
|
||||
| 提供商 | 模型 | 插件 |
|
||||
|--------|------|------|
|
||||
| DeepSeek | deepseek-v4-pro | `ai.deepseek` |
|
||||
| OpenAI-compatible | gpt-4o | `ai.openai` |
|
||||
| Anthropic | claude-opus-4 | `ai.anthropic` |
|
||||
| OpenAI 兼容 | GPT 系列 | `ai.deepseek` (兼容) |
|
||||
| OpenAI 兼容 | GPT 系列 | `ai.openai` |
|
||||
|
||||
通过 `config.toml` 中 `ai.provider` 一键切换。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user