new features

This commit is contained in:
Mark Gregory
2026-11-16 13:41:54 +00:00
parent 87cdc990c3
commit 5338ae5751
16 changed files with 546 additions and 55 deletions
+3 -1
View File
@@ -58,7 +58,9 @@ actor MLXProvider: InferenceProvider {
} else {
continuation.yield(.answer(text))
}
case .info: finished = true
case .info(let info):
finished = true
continuation.yield(.metrics(ProviderMetrics(tokens: info.generationTokenCount, seconds: info.generateTime)))
case .toolCall:
continuation.yield(.committed)
throw StudioError("The MLX model returned a tool call, but no tools are configured.")