AI models shared registry + Code cleanup + Better async handling + Some fixes, etc
This commit is contained in:
parent
b427eacf35
commit
5c3031c977
62 changed files with 1683 additions and 1239 deletions
|
|
@ -148,7 +148,7 @@ fn http_request_with_headers(
|
|||
|
||||
// Convert Lua table to serde_json::Value
|
||||
fn table_to_json(lua: &Lua, table: Table) -> mlua::Result<serde_json::Value> {
|
||||
use serde_json::{Value as JsonValue, Map, Number};
|
||||
use serde_json::{Value as JsonValue, Map};
|
||||
|
||||
// check if it's an array (sequential integer keys starting from 1)
|
||||
let is_array = table.clone().pairs::<i64, Value>()
|
||||
|
|
|
|||
|
|
@ -1,9 +1,7 @@
|
|||
use mlua::{Lua, Result as LuaResult, Value, StdLib};
|
||||
use mlua::{Lua, Value, StdLib};
|
||||
use std::path::PathBuf;
|
||||
use std::time::{Duration, Instant};
|
||||
use std::time::Duration;
|
||||
use std::fs;
|
||||
use std::sync::atomic::{AtomicBool, Ordering};
|
||||
use std::sync::{Arc, mpsc};
|
||||
|
||||
use super::sandbox::SandboxLevel;
|
||||
use super::error::LuaError;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue