feat(llm): 引入 rig-core 并建立新 LLM 门面(Ollama 首个打通)
- 依赖改用 rig-core 0.41(仅 reqwest+rustls,不引入 agent/derive) - 新门面:provider 枚举 + 统一配置 + 单一生成入口 + 凭据校验 + 错误映射 - Ollama 走 rig /api/chat,参数映射与错误文案与旧实现一致 - 用 rig 请求录制 mock 断言请求形状;8 个新单元测试
This commit is contained in:
@@ -11,6 +11,7 @@ pub mod openai;
|
||||
pub mod openrouter;
|
||||
pub mod parsing;
|
||||
pub mod prompts;
|
||||
pub mod rig;
|
||||
pub mod thinking;
|
||||
|
||||
pub use anthropic::AnthropicClient;
|
||||
|
||||
Reference in New Issue
Block a user