Skip to content

Commit ec51a3b

Browse files
committed
chores
1 parent 15e318c commit ec51a3b

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugins/connector/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ serde_json = { workspace = true }
2929
specta = { workspace = true }
3030
strum = { workspace = true, features = ["derive"] }
3131
thiserror = { workspace = true }
32+
tokio = { workspace = true }
3233
tracing = { workspace = true }
3334
url = { workspace = true }
3435

plugins/local-llm/src/ext.rs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,16 @@ impl<R: Runtime, T: Manager<R>> LocalLlmPluginExt<R> for T {
124124
};
125125

126126
let server = crate::server::run_server(model_manager).await?;
127+
tokio::time::sleep(std::time::Duration::from_millis(100)).await;
127128

128-
let mut s = state.lock().await;
129129
let api_base = format!("http://{}", &server.addr);
130-
s.api_base = Some(api_base.clone());
131-
s.server = Some(server);
130+
131+
{
132+
let mut s = state.lock().await;
133+
s.api_base = Some(api_base.clone());
134+
s.server = Some(server);
135+
}
136+
132137
Ok(api_base)
133138
}
134139

plugins/local-stt/src/ext.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ impl<R: Runtime, T: Manager<R>> LocalSttPluginExt<R> for T {
8484
.build();
8585

8686
let server = crate::run_server(server_state).await?;
87+
tokio::time::sleep(std::time::Duration::from_millis(100)).await;
88+
8789
let api_base = format!("http://{}", &server.addr);
8890

8991
{

0 commit comments

Comments
 (0)