feat(llm): 生成器与连接测试切换到新 rig 门面(全量上线)
- 新门面补齐 commit/tag/changelog 三个业务方法(提示词与解析复用迁移模块) - ContentGenerator 改用 rig 门面(构造/可用性检查/三个生成方法) - test_connection 走新门面公开接口,不再访问私有字段 - 新增离线业务方法测试与 6 家 provider 的 #[ignore] 实网冒烟用例
This commit is contained in:
@@ -322,7 +322,6 @@ pub(crate) fn create_http_client(timeout: Duration) -> Result<reqwest::Client> {
|
||||
|
||||
/// Test LLM connection
|
||||
pub async fn test_connection(manager: &crate::config::manager::ConfigManager) -> Result<String> {
|
||||
let client = LlmClient::from_config(manager).await?;
|
||||
let response = client.provider.generate("Say 'Hello, World!'").await?;
|
||||
Ok(response)
|
||||
let client = crate::llm::rig::LlmClient::from_config(manager).await?;
|
||||
client.generate(None, "Say 'Hello, World!'").await
|
||||
}
|
||||
Reference in New Issue
Block a user