From 0062c950677f7f633f5b7edabc827a35d3bc92c3 Mon Sep 17 00:00:00 2001 From: "Nathan.fooo" <86001920+appflowy@users.noreply.github.com> Date: Sun, 28 Jul 2024 22:43:47 +0800 Subject: [PATCH] chore: update ai config (#707) --- libs/appflowy-ai-client/src/dto.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libs/appflowy-ai-client/src/dto.rs b/libs/appflowy-ai-client/src/dto.rs index 45e8f053..5104ff28 100644 --- a/libs/appflowy-ai-client/src/dto.rs +++ b/libs/appflowy-ai-client/src/dto.rs @@ -232,11 +232,12 @@ impl FromStr for AIModel { } #[derive(Clone, Debug, Serialize, Deserialize)] -pub struct RepeatedLocalAIPackage(pub Vec); +pub struct RepeatedLocalAIPackage(pub Vec); #[derive(Clone, Debug, Serialize, Deserialize, Eq, PartialEq)] -pub struct AppFlowyAIPlugin { - pub name: String, +pub struct AppFlowyOfflineAI { + pub app_name: String, + pub ai_plugin_name: String, pub version: String, pub url: String, pub etag: String, @@ -263,5 +264,5 @@ pub struct ModelInfo { #[derive(Clone, Debug, Serialize, Deserialize)] pub struct LocalAIConfig { pub models: Vec, - pub plugin: AppFlowyAIPlugin, + pub plugin: AppFlowyOfflineAI, }