564 lines
21 KiB
Rust
564 lines
21 KiB
Rust
//! Independent synthetic daemon -> real HTTP/2 -> Backend boundary tests.
|
|
//! Missing fixture credentials are supplied to an exact-test child process,
|
|
//! never by mutating the environment of a multithreaded test process.
|
|
//! These fixtures attest no physical model, GPU, archive or quality readiness.
|
|
use futures_util::StreamExt;
|
|
use leleka_backend_api as api;
|
|
use serde_json::{Value, json};
|
|
use std::{
|
|
sync::{
|
|
Arc, Mutex,
|
|
atomic::{AtomicBool, AtomicUsize, Ordering},
|
|
},
|
|
time::{Duration, Instant},
|
|
};
|
|
use strata_desktop_core::{
|
|
runtime_gateway::{Config, Member, Registry},
|
|
runtime_rpc::RuntimeServer,
|
|
};
|
|
use tokio::task::JoinHandle;
|
|
|
|
const TOKEN: &str = "synthetic-sdet170-token-0000000000000000";
|
|
const ENV: &str = "LELEKA_SDET170_TOKEN";
|
|
const PRIVATE_ERROR: &str = "synthetic-private-backend-detail";
|
|
|
|
fn credential_child(test: &str) -> bool {
|
|
if std::env::var(ENV).as_deref() == Ok(TOKEN) {
|
|
return false;
|
|
}
|
|
let output = std::process::Command::new(std::env::current_exe().unwrap())
|
|
.args([test, "--exact", "--nocapture"])
|
|
.env(ENV, TOKEN)
|
|
.output()
|
|
.unwrap();
|
|
assert!(
|
|
output.status.success(),
|
|
"exact fixture child failed: {} {}",
|
|
String::from_utf8_lossy(&output.stdout),
|
|
String::from_utf8_lossy(&output.stderr)
|
|
);
|
|
true
|
|
}
|
|
|
|
#[derive(Clone, Copy)]
|
|
enum Behavior {
|
|
Complete,
|
|
CapacityTwice,
|
|
Uncertain,
|
|
AcceptedFailure,
|
|
WaitForCancel,
|
|
MissingTerminal,
|
|
ToolReason,
|
|
DelayedAck,
|
|
}
|
|
#[derive(Default)]
|
|
struct Facts {
|
|
ready: AtomicBool,
|
|
starts: AtomicUsize,
|
|
unloads: AtomicUsize,
|
|
cancelled: AtomicBool,
|
|
loads: Mutex<Vec<api::RuntimeConfig>>,
|
|
request_ids: Mutex<Vec<String>>,
|
|
}
|
|
struct LiteralBackend {
|
|
facts: Arc<Facts>,
|
|
behavior: Behavior,
|
|
}
|
|
fn descriptor() -> api::ModelDescriptor {
|
|
api::ModelDescriptor {
|
|
family: "qwen4exp".into(),
|
|
architecture: "qwen4exp".into(),
|
|
weight_format: "gguf:iq3_s".into(),
|
|
artifact_digest: "sha256:80d5e3333801cedbca81a5c19c24ed6bb48fd56977acd190318f66b23a1766a3"
|
|
.into(),
|
|
}
|
|
}
|
|
fn failure(code: api::ErrorCode) -> api::BackendError {
|
|
api::BackendError {
|
|
code,
|
|
message: PRIVATE_ERROR.into(),
|
|
retryable: true,
|
|
}
|
|
}
|
|
impl api::Backend for LiteralBackend {
|
|
fn identity(&self) -> api::BackendIdentity {
|
|
api::BackendIdentity {
|
|
name: "independent-literal-fixture".into(),
|
|
implementation_version: "1".into(),
|
|
api_version: 2,
|
|
}
|
|
}
|
|
fn capabilities(&self) -> api::BackendCapabilities {
|
|
api::BackendCapabilities {
|
|
supported_models: if self.facts.ready.load(Ordering::SeqCst) {
|
|
vec![api::SupportedModelTuple {
|
|
family: "qwen4exp".into(),
|
|
architecture: "qwen4exp".into(),
|
|
weight_format: "gguf:iq3_s".into(),
|
|
}]
|
|
} else {
|
|
Vec::new()
|
|
},
|
|
max_concurrent_generations: 1,
|
|
supports_cancellation: true,
|
|
supports_tool_call_streaming: false,
|
|
}
|
|
}
|
|
fn load(
|
|
&mut self,
|
|
model: api::ModelDescriptor,
|
|
config: api::RuntimeConfig,
|
|
) -> Result<api::LoadedModel, api::BackendError> {
|
|
self.facts.loads.lock().unwrap().push(config.clone());
|
|
if model != descriptor() || config.inference_mode != api::InferenceMode::Native {
|
|
return Err(failure(api::ErrorCode::UnsupportedModel));
|
|
}
|
|
self.facts.ready.store(true, Ordering::SeqCst);
|
|
Ok(api::LoadedModel {
|
|
handle: "literal-native-handle".into(),
|
|
descriptor: model,
|
|
load_config_version: 1,
|
|
effective_mode: api::InferenceMode::Native,
|
|
mode_identity_digest: format!("sha256:{}", "b".repeat(64)),
|
|
})
|
|
}
|
|
fn unload(&mut self, _: api::LoadedModel) -> Result<(), api::BackendError> {
|
|
self.facts.unloads.fetch_add(1, Ordering::SeqCst);
|
|
self.facts.ready.store(false, Ordering::SeqCst);
|
|
Ok(())
|
|
}
|
|
fn cancel(&mut self, _: &str) -> Result<(), api::BackendError> {
|
|
self.facts.cancelled.store(true, Ordering::SeqCst);
|
|
Ok(())
|
|
}
|
|
fn start_generation(
|
|
&mut self,
|
|
_: &api::LoadedModel,
|
|
request: api::GenerationRequest,
|
|
) -> Result<api::GenerationStream, api::BackendError> {
|
|
let attempt = self.facts.starts.fetch_add(1, Ordering::SeqCst);
|
|
self.facts
|
|
.request_ids
|
|
.lock()
|
|
.unwrap()
|
|
.push(request.request_id);
|
|
if matches!(self.behavior, Behavior::CapacityTwice) && attempt < 2 {
|
|
return Err(failure(api::ErrorCode::ResourceExhausted));
|
|
}
|
|
if matches!(self.behavior, Behavior::Uncertain) {
|
|
return Err(failure(api::ErrorCode::BackendUnavailable));
|
|
}
|
|
if matches!(self.behavior, Behavior::DelayedAck) {
|
|
// Exceed the daemon's two-second dispatch budget. Its HTTP/2
|
|
// observation disappears before a backend acceptance reply exists.
|
|
std::thread::sleep(Duration::from_millis(2500));
|
|
}
|
|
let (sink, stream) = api::GenerationSink::bounded_channel(4).unwrap();
|
|
let facts = self.facts.clone();
|
|
let behavior = self.behavior;
|
|
std::thread::spawn(move || {
|
|
if matches!(behavior, Behavior::MissingTerminal) {
|
|
return;
|
|
}
|
|
let _ = sink.emit(api::GenerationEvent::TextDelta {
|
|
text: "Літерал".into(),
|
|
});
|
|
if matches!(behavior, Behavior::WaitForCancel) {
|
|
let end = Instant::now() + Duration::from_secs(5);
|
|
while !facts.cancelled.load(Ordering::SeqCst) && Instant::now() < end {
|
|
std::thread::sleep(Duration::from_millis(2));
|
|
}
|
|
let _ = sink.cancel();
|
|
} else if matches!(behavior, Behavior::AcceptedFailure) {
|
|
let _ = sink.fail(api::ErrorCode::BackendUnavailable, PRIVATE_ERROR, true);
|
|
} else {
|
|
let usage = api::Usage {
|
|
input_tokens: 7,
|
|
output_tokens: 1,
|
|
reused_input_tokens: 0,
|
|
};
|
|
let _ = sink.emit(api::GenerationEvent::Usage(usage.clone()));
|
|
let reason = if matches!(behavior, Behavior::ToolReason) {
|
|
api::FinishReason::ToolCalls
|
|
} else {
|
|
api::FinishReason::Stop
|
|
};
|
|
let _ = sink.complete(reason, usage);
|
|
}
|
|
});
|
|
Ok(stream)
|
|
}
|
|
}
|
|
|
|
struct Fixture {
|
|
base: String,
|
|
http: reqwest::Client,
|
|
facts: Vec<Arc<Facts>>,
|
|
tasks: Vec<JoinHandle<()>>,
|
|
}
|
|
impl Drop for Fixture {
|
|
fn drop(&mut self) {
|
|
for facts in &self.facts {
|
|
facts.cancelled.store(true, Ordering::SeqCst);
|
|
}
|
|
for task in &self.tasks {
|
|
task.abort();
|
|
}
|
|
}
|
|
}
|
|
impl Fixture {
|
|
async fn new(behaviors: &[Behavior]) -> Self {
|
|
assert_eq!(
|
|
std::env::var(ENV).as_deref(),
|
|
Ok(TOKEN),
|
|
"supply the documented synthetic fixture credential to this test executable"
|
|
);
|
|
let listener = tokio::net::TcpListener::bind("127.0.0.1:0").await.unwrap();
|
|
let listen = listener.local_addr().unwrap();
|
|
let mut facts = Vec::new();
|
|
let mut tasks = Vec::new();
|
|
let mut runtimes = Vec::new();
|
|
for (index, behavior) in behaviors.iter().copied().enumerate() {
|
|
let observed = Arc::new(Facts::default());
|
|
let server = RuntimeServer::new(
|
|
Box::new(LiteralBackend {
|
|
facts: observed.clone(),
|
|
behavior,
|
|
}),
|
|
TOKEN.into(),
|
|
)
|
|
.unwrap();
|
|
let rpc = tokio::net::TcpListener::bind("127.0.0.1:0").await.unwrap();
|
|
let address = rpc.local_addr().unwrap();
|
|
tasks.push(tokio::spawn(async move {
|
|
server.serve(rpc, std::future::pending()).await.unwrap();
|
|
}));
|
|
runtimes.push(Member {
|
|
id: format!("native{index}"),
|
|
address,
|
|
token_env: ENV.into(),
|
|
artifact_digest: descriptor().artifact_digest,
|
|
});
|
|
facts.push(observed);
|
|
}
|
|
let registry = Registry::new(Config {
|
|
schema_version: 1,
|
|
listen,
|
|
token_env: ENV.into(),
|
|
runtimes,
|
|
http_pool: None,
|
|
experimental_native_tools: false,
|
|
})
|
|
.unwrap();
|
|
tasks.push(tokio::spawn(async move {
|
|
axum::serve(listener, registry.router()).await.unwrap();
|
|
}));
|
|
Self {
|
|
base: format!("http://{listen}"),
|
|
http: reqwest::Client::builder()
|
|
.timeout(Duration::from_secs(4))
|
|
.build()
|
|
.unwrap(),
|
|
facts,
|
|
tasks,
|
|
}
|
|
}
|
|
async fn get(&self, route: &str, authorized: bool) -> (u16, Value) {
|
|
let mut request = self.http.get(format!("{}{route}", self.base));
|
|
if authorized {
|
|
request = request.bearer_auth(TOKEN);
|
|
}
|
|
decode(request.send().await.unwrap()).await
|
|
}
|
|
async fn post(&self, route: &str, body: Value) -> (u16, Value) {
|
|
decode(
|
|
self.http
|
|
.post(format!("{}{route}", self.base))
|
|
.bearer_auth(TOKEN)
|
|
.header("content-type", "application/json")
|
|
.body(body.to_string())
|
|
.send()
|
|
.await
|
|
.unwrap(),
|
|
)
|
|
.await
|
|
}
|
|
async fn epoch(&self, model: &str) -> String {
|
|
let (status, value) = self.get("/runtime/status", true).await;
|
|
assert_eq!(status, 200);
|
|
value["runtimes"]
|
|
.as_array()
|
|
.unwrap()
|
|
.iter()
|
|
.find(|v| v["id"] == model)
|
|
.unwrap()["epoch"]
|
|
.as_str()
|
|
.unwrap()
|
|
.into()
|
|
}
|
|
async fn outcome(&self, command: &Value) -> Value {
|
|
let query = json!({"model":command["model"],"operation_id":command["operation_id"],"epoch":command["epoch"]});
|
|
let end = tokio::time::Instant::now() + Duration::from_secs(2);
|
|
loop {
|
|
let (status, value) = self.post("/runtime/operation", query.clone()).await;
|
|
assert_eq!(status, 200);
|
|
if value["state"] != 1 {
|
|
return value;
|
|
}
|
|
assert!(
|
|
tokio::time::Instant::now() < end,
|
|
"operation did not finish"
|
|
);
|
|
tokio::time::sleep(Duration::from_millis(2)).await;
|
|
}
|
|
}
|
|
async fn native(&self, model: &str) -> Value {
|
|
let command = json!({"model":model,"operation_id":uuid::Uuid::new_v4().to_string(),"epoch":self.epoch(model).await,"mode":"native"});
|
|
let (status, _) = self.post("/runtime/load", command.clone()).await;
|
|
assert_eq!(status, 200);
|
|
assert_eq!(self.outcome(&command).await["state"], 2);
|
|
command
|
|
}
|
|
async fn response(&self, stream: bool) -> reqwest::Response {
|
|
self.http.post(format!("{}/v1/responses", self.base)).bearer_auth(TOKEN).header("content-type", "application/json").body(json!({"model":"native0","input":"synthetic question","max_output_tokens":1,"stream":stream}).to_string()).send().await.unwrap()
|
|
}
|
|
}
|
|
async fn decode(response: reqwest::Response) -> (u16, Value) {
|
|
let code = response.status().as_u16();
|
|
let text = response.text().await.unwrap();
|
|
assert!(!text.contains(PRIVATE_ERROR));
|
|
(code, serde_json::from_str(&text).unwrap())
|
|
}
|
|
fn sse(text: &str) -> Vec<Value> {
|
|
text.split("\n\n")
|
|
.filter(|v| !v.is_empty())
|
|
.map(|record| {
|
|
let data = record
|
|
.lines()
|
|
.find_map(|line| line.strip_prefix("data: "))
|
|
.unwrap();
|
|
serde_json::from_str(data).unwrap()
|
|
})
|
|
.collect()
|
|
}
|
|
|
|
#[tokio::test]
|
|
async fn catalog_auth_explicit_load_refusal_preserves_other_members() {
|
|
if credential_child("catalog_auth_explicit_load_refusal_preserves_other_members") {
|
|
return;
|
|
}
|
|
let f = Fixture::new(&[Behavior::Complete, Behavior::Complete]).await;
|
|
assert_eq!(f.get("/v1/models", false).await.0, 401);
|
|
assert_eq!(f.get("/v1/models", true).await.1["data"], json!([]));
|
|
let epoch = f.epoch("native0").await;
|
|
let absent =
|
|
json!({"model":"native0","operation_id":uuid::Uuid::new_v4().to_string(),"epoch":epoch});
|
|
assert_eq!(f.post("/runtime/load", absent).await.0, 400);
|
|
assert!(f.facts[0].loads.lock().unwrap().is_empty());
|
|
f.native("native0").await;
|
|
f.native("native1").await;
|
|
let ple = json!({"model":"native0","operation_id":uuid::Uuid::new_v4().to_string(),"epoch":epoch,"mode":"kar-ple","profile_id":"qwen38-flash-next-ple-l2-cache64-v1"});
|
|
assert_eq!(f.post("/runtime/load", ple.clone()).await.0, 200);
|
|
assert_eq!(f.outcome(&ple).await["state"], 3);
|
|
let configs = f.facts[0].loads.lock().unwrap().clone();
|
|
assert_eq!(configs.len(), 2);
|
|
assert_eq!(configs[0].inference_mode, api::InferenceMode::Native);
|
|
assert!(!configs[0].allow_experimental);
|
|
assert!(
|
|
matches!(&configs[1].inference_mode, api::InferenceMode::ExperimentalKarPle { profile_id } if profile_id == "qwen38-flash-next-ple-l2-cache64-v1")
|
|
);
|
|
assert!(configs[1].allow_experimental);
|
|
let catalog = f.get("/v1/models", true).await.1;
|
|
let ids = catalog["data"]
|
|
.as_array()
|
|
.unwrap()
|
|
.iter()
|
|
.map(|v| v["id"].as_str().unwrap())
|
|
.collect::<Vec<_>>();
|
|
assert_eq!(ids, ["native0", "native1"]);
|
|
assert_eq!(f.facts[0].starts.load(Ordering::SeqCst), 0);
|
|
}
|
|
|
|
#[tokio::test]
|
|
async fn actual_http2_text_maps_single_ordered_sse_terminal() {
|
|
if credential_child("actual_http2_text_maps_single_ordered_sse_terminal") {
|
|
return;
|
|
}
|
|
let f = Fixture::new(&[Behavior::Complete]).await;
|
|
f.native("native0").await;
|
|
let response = f.response(true).await;
|
|
assert_eq!(response.status(), 200);
|
|
assert_eq!(response.headers()["content-type"], "text/event-stream");
|
|
let events = sse(&response.text().await.unwrap());
|
|
let types = events
|
|
.iter()
|
|
.map(|v| v["type"].as_str().unwrap())
|
|
.collect::<Vec<_>>();
|
|
assert_eq!(
|
|
types,
|
|
[
|
|
"response.created",
|
|
"response.in_progress",
|
|
"response.output_item.added",
|
|
"response.content_part.added",
|
|
"response.output_text.delta",
|
|
"response.output_text.done",
|
|
"response.content_part.done",
|
|
"response.output_item.done",
|
|
"response.completed"
|
|
]
|
|
);
|
|
for (i, event) in events.iter().enumerate() {
|
|
assert_eq!(event["sequence_number"], i);
|
|
}
|
|
assert_eq!(events[4]["delta"], "Літерал");
|
|
assert_eq!(events[8]["response"]["usage"]["total_tokens"], 8);
|
|
assert_eq!(f.facts[0].starts.load(Ordering::SeqCst), 1);
|
|
}
|
|
|
|
#[tokio::test]
|
|
async fn proven_nonacceptance_retries_same_identity_then_succeeds() {
|
|
if credential_child("proven_nonacceptance_retries_same_identity_then_succeeds") {
|
|
return;
|
|
}
|
|
let f = Fixture::new(&[Behavior::CapacityTwice]).await;
|
|
f.native("native0").await;
|
|
let (status, value) = decode(f.response(false).await).await;
|
|
assert_eq!(
|
|
status, 200,
|
|
"two positively nonaccepted capacity refusals must permit recovery"
|
|
);
|
|
assert_eq!(value["status"], "completed");
|
|
assert_eq!(f.facts[0].starts.load(Ordering::SeqCst), 3);
|
|
let ids = f.facts[0].request_ids.lock().unwrap();
|
|
assert_eq!(ids.len(), 3);
|
|
assert!(ids.iter().all(|id| id == &ids[0]));
|
|
}
|
|
|
|
#[tokio::test]
|
|
async fn uncertain_dispatch_never_replays_or_advertises_ready() {
|
|
if credential_child("uncertain_dispatch_never_replays_or_advertises_ready") {
|
|
return;
|
|
}
|
|
let f = Fixture::new(&[Behavior::Uncertain]).await;
|
|
f.native("native0").await;
|
|
let (status, value) = decode(f.response(false).await).await;
|
|
assert_eq!(status, 502);
|
|
assert_eq!(value["error"]["type"], "runtime_dispatch_failed");
|
|
assert_eq!(f.facts[0].starts.load(Ordering::SeqCst), 1);
|
|
assert_eq!(f.get("/v1/models", true).await.1["data"], json!([]));
|
|
}
|
|
|
|
#[tokio::test]
|
|
async fn accepted_faults_missing_terminal_and_tool_reason_fail_without_retry() {
|
|
if credential_child("accepted_faults_missing_terminal_and_tool_reason_fail_without_retry") {
|
|
return;
|
|
}
|
|
for behavior in [
|
|
Behavior::AcceptedFailure,
|
|
Behavior::MissingTerminal,
|
|
Behavior::ToolReason,
|
|
] {
|
|
let f = Fixture::new(&[behavior]).await;
|
|
f.native("native0").await;
|
|
let response = f.response(true).await;
|
|
assert_eq!(response.status(), 200);
|
|
let text = response.text().await.unwrap();
|
|
assert!(!text.contains(PRIVATE_ERROR));
|
|
let events = sse(&text);
|
|
assert_eq!(
|
|
events
|
|
.iter()
|
|
.filter(|v| v["type"] == "response.failed")
|
|
.count(),
|
|
1
|
|
);
|
|
assert_eq!(events.last().unwrap()["type"], "response.failed");
|
|
assert!(!events.iter().any(|v| v["type"] == "response.completed"));
|
|
assert_eq!(f.facts[0].starts.load(Ordering::SeqCst), 1);
|
|
if matches!(behavior, Behavior::MissingTerminal) {
|
|
assert_eq!(f.get("/v1/models", true).await.1["data"], json!([]));
|
|
}
|
|
}
|
|
}
|
|
|
|
#[tokio::test]
|
|
async fn daemon_http_disconnect_cancels_one_runtime_generation() {
|
|
if credential_child("daemon_http_disconnect_cancels_one_runtime_generation") {
|
|
return;
|
|
}
|
|
let f = Fixture::new(&[Behavior::WaitForCancel]).await;
|
|
f.native("native0").await;
|
|
let mut body = f.response(true).await.bytes_stream();
|
|
let end = tokio::time::Instant::now() + Duration::from_secs(2);
|
|
let mut received = Vec::new();
|
|
let marker = b"response.output_text.delta";
|
|
while !received.windows(marker.len()).any(|bytes| bytes == marker) {
|
|
received.extend_from_slice(&body.next().await.unwrap().unwrap());
|
|
assert!(tokio::time::Instant::now() < end);
|
|
}
|
|
drop(body);
|
|
while !f.facts[0].cancelled.load(Ordering::SeqCst) {
|
|
assert!(
|
|
tokio::time::Instant::now() < end,
|
|
"disconnect failed to cancel backend"
|
|
);
|
|
tokio::time::sleep(Duration::from_millis(2)).await;
|
|
}
|
|
assert_eq!(f.facts[0].starts.load(Ordering::SeqCst), 1);
|
|
}
|
|
|
|
#[tokio::test]
|
|
async fn completed_unload_duplicate_returns_retained_outcome_without_reexecution() {
|
|
if credential_child("completed_unload_duplicate_returns_retained_outcome_without_reexecution") {
|
|
return;
|
|
}
|
|
let f = Fixture::new(&[Behavior::Complete]).await;
|
|
let loaded = f.native("native0").await;
|
|
let command = json!({"model":"native0","operation_id":uuid::Uuid::new_v4().to_string(),"epoch":loaded["epoch"],"handle":"literal-native-handle"});
|
|
assert_eq!(f.post("/runtime/unload", command.clone()).await.0, 200);
|
|
assert_eq!(f.outcome(&command).await["state"], 2);
|
|
assert_eq!(f.get("/v1/models", true).await.1["data"], json!([]));
|
|
let (status, value) = f.post("/runtime/unload", command).await;
|
|
assert_eq!(
|
|
status, 200,
|
|
"completed operation UUID must retain its outcome after unload"
|
|
);
|
|
assert_eq!(value["state"], 2);
|
|
assert_eq!(f.facts[0].unloads.load(Ordering::SeqCst), 1);
|
|
}
|
|
|
|
#[tokio::test]
|
|
async fn lost_acknowledgement_withdraws_readiness_without_replay() {
|
|
if credential_child("lost_acknowledgement_withdraws_readiness_without_replay") {
|
|
return;
|
|
}
|
|
let f = Fixture::new(&[Behavior::DelayedAck]).await;
|
|
f.native("native0").await;
|
|
let (status, value) = decode(f.response(false).await).await;
|
|
assert_eq!(status, 502);
|
|
assert_eq!(value["error"]["type"], "runtime_dispatch_failed");
|
|
let end = tokio::time::Instant::now() + Duration::from_secs(2);
|
|
loop {
|
|
let catalog = f.get("/v1/models", true).await.1;
|
|
if catalog["data"] == json!([]) {
|
|
break;
|
|
}
|
|
assert!(
|
|
tokio::time::Instant::now() < end,
|
|
"uncertain acceptance stayed advertised ready"
|
|
);
|
|
tokio::time::sleep(Duration::from_millis(2)).await;
|
|
}
|
|
while !f.facts[0].cancelled.load(Ordering::SeqCst) {
|
|
assert!(
|
|
tokio::time::Instant::now() < end,
|
|
"lost acknowledgement did not schedule cancellation"
|
|
);
|
|
tokio::time::sleep(Duration::from_millis(2)).await;
|
|
}
|
|
assert_eq!(f.facts[0].starts.load(Ordering::SeqCst), 1);
|
|
let (_, states) = f.get("/runtime/status", true).await;
|
|
assert_eq!(states["runtimes"][0]["model_ready"], false);
|
|
}
|