feat(ui): Symbol je Engine zeigt, ob sie eine Oberfläche mitbringt, und öffnet sie als Link (#1101)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GmHhg3Td16J38kAyDLzb39
This commit is contained in:
2026-11-17 22:04:28 +01:00
parent 9b642c5bf4
commit ca3f5f2b6b
11 changed files with 108 additions and 8 deletions

View File

@ -23,8 +23,8 @@ use serde_json::Value;
use crate::engine::Engine;
use crate::types::{
AdapterError, Capabilities, DiscoveredArtifact, Endpoint, EngineInfo, Health, InstanceHandle,
Mode, ProfileSpec, Protocol, Result, StartInfo, Usage,
AdapterError, Capabilities, DiscoveredArtifact, Endpoint, EngineInfo, Frontend, Health,
InstanceHandle, Mode, ProfileSpec, Protocol, Result, StartInfo, Usage,
};
/// Konfiguration (Abschnitt `[tts]`). Enthält keine Geheimnisse.
@ -115,6 +115,11 @@ fn models_from(json: &Value) -> Vec<DiscoveredArtifact> {
#[async_trait]
impl Engine for StudioEngine {
fn frontend(&self) -> Frontend {
// Das Studio hat seine Oberfläche auf derselben Adresse wie die API.
Frontend::Url(self.base().to_string())
}
fn describe(&self) -> EngineInfo {
EngineInfo {
name: "tts".to_string(),