new features
This commit is contained in:
@@ -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.")
|
||||
|
||||
Reference in New Issue
Block a user