chore: update local ai endpoint (#704)

This commit is contained in:
Nathan.fooo 2024-07-26 11:08:08 +08:00 committed by GitHub
parent 2023334eda
commit 505c11ff35
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -241,7 +241,7 @@ impl AppFlowyAIClient {
&self,
platform: &str,
) -> Result<RepeatedLocalAIPackage, AIError> {
let url = format!("{}/local_ai/version?platform={platform}", self.url);
let url = format!("{}/local_ai/plugin?platform={platform}", self.url);
let resp = self.http_client(Method::GET, &url)?.send().await?;
AIResponse::<RepeatedLocalAIPackage>::from_response(resp)
.await?