chore: update ai config (#707)

This commit is contained in:
Nathan.fooo 2024-07-28 22:43:47 +08:00 committed by GitHub
parent a81355e0f0
commit 0062c95067
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 4 deletions

View File

@ -232,11 +232,12 @@ impl FromStr for AIModel {
}
#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct RepeatedLocalAIPackage(pub Vec<AppFlowyAIPlugin>);
pub struct RepeatedLocalAIPackage(pub Vec<AppFlowyOfflineAI>);
#[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<LLMModel>,
pub plugin: AppFlowyAIPlugin,
pub plugin: AppFlowyOfflineAI,
}