feat(ui): Reiter Engines und überarbeitete Modelle-Seite mit Dialog je Modell (#1068)
Engine::start_info meldet das Startkommando mit Platzhaltern. Die Karten "Planung ändern" weichen einem Dialog je Modell. Lokal mit Attrappen im Browser gesehen, auf srv04 nicht geprüft. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GmHhg3osejhFSpUz472iQ1
This commit is contained in:
@ -40,7 +40,7 @@ use crate::llama::{parse_rss_mb, parse_vram_mb};
|
||||
use crate::process::{PortPool, log_tail, rotate_log, sigterm, terminate_group};
|
||||
use crate::types::{
|
||||
AdapterError, Capabilities, DiscoveredArtifact, Endpoint, EngineInfo, Health, InstanceHandle,
|
||||
Mode, ProfileSpec, Protocol, Result, Usage,
|
||||
Mode, ProfileSpec, Protocol, Result, StartInfo, Usage,
|
||||
};
|
||||
|
||||
/// Konfiguration des Maya-Adapters. Enthält keine Geheimnisse.
|
||||
@ -481,6 +481,49 @@ pub(crate) fn parse_pgrp(stat: &str) -> Option<u32> {
|
||||
|
||||
#[async_trait]
|
||||
impl Engine for MayaEngine {
|
||||
fn start_info(&self) -> StartInfo {
|
||||
let c = &self.config;
|
||||
let args = self
|
||||
.build_args(Path::new("<Kopie der Konfiguration>"), c.port_from)
|
||||
.join(" ")
|
||||
.replace(&c.port_from.to_string(), "<Port>");
|
||||
StartInfo {
|
||||
executable: Some(c.script.clone()),
|
||||
command: format!("{} {}", c.python.display(), args),
|
||||
env: Vec::new(),
|
||||
details: vec![
|
||||
(
|
||||
"Python".to_string(),
|
||||
format!(
|
||||
"{} ({})",
|
||||
c.python.display(),
|
||||
if c.python.exists() {
|
||||
"vorhanden"
|
||||
} else {
|
||||
"fehlt"
|
||||
}
|
||||
),
|
||||
),
|
||||
(
|
||||
"Konfigurationen".to_string(),
|
||||
c.config_roots
|
||||
.iter()
|
||||
.map(|p| p.display().to_string())
|
||||
.collect::<Vec<_>>()
|
||||
.join(", "),
|
||||
),
|
||||
(
|
||||
"Ports".to_string(),
|
||||
format!("{} bis {}", c.port_from, c.port_to),
|
||||
),
|
||||
(
|
||||
"Zeitlimit Start".to_string(),
|
||||
format!("{} s", c.ready_timeout_secs),
|
||||
),
|
||||
],
|
||||
}
|
||||
}
|
||||
|
||||
fn describe(&self) -> EngineInfo {
|
||||
EngineInfo {
|
||||
name: self.name().to_string(),
|
||||
|
||||
Reference in New Issue
Block a user