feat: tools bei Modellen ohne Werkzeug-Vorlage klar ablehnen, nicht bestandenen Werkzeug-Test anzeigen (#1268)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@ -270,6 +270,8 @@ impl Shared {
|
||||
/// Zusage lebt, zählt die Instanz als benutzt.
|
||||
pub struct Lease {
|
||||
pub endpoint: Endpoint,
|
||||
/// Antwort der Engine, ob das geladene Modell `tools` entgegennimmt (`None`: unbekannt).
|
||||
pub tool_support: Option<bool>,
|
||||
pub engine: String,
|
||||
pub instance_id: u64,
|
||||
shared: Arc<Shared>,
|
||||
@ -531,14 +533,16 @@ impl Runtime {
|
||||
}
|
||||
Err(_) => return Err(RuntimeError::Closing),
|
||||
};
|
||||
let lease = Lease {
|
||||
let mut lease = Lease {
|
||||
endpoint: running.engine.endpoint(&running.handle),
|
||||
tool_support: None,
|
||||
engine: running.engine_name.clone(),
|
||||
instance_id: running.handle.id,
|
||||
shared: shared.clone(),
|
||||
inst,
|
||||
};
|
||||
if running.engine.health(&running.handle).await != Health::Gone {
|
||||
lease.tool_support = running.engine.tool_support(&running.handle).await;
|
||||
tracing::debug!(
|
||||
ereignis = "zugeteilt",
|
||||
model = %plan.model,
|
||||
|
||||
Reference in New Issue
Block a user