From f353708417b37fa6c808f8c3412a20f53693e6b7 Mon Sep 17 00:00:00 2001 From: Davide Date: Sun, 8 Dec 2024 21:56:13 +0100 Subject: [PATCH] Fix Ollama embeddings exception prefix (#91) --- src/Providers/Ollama/Handlers/Embeddings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Providers/Ollama/Handlers/Embeddings.php b/src/Providers/Ollama/Handlers/Embeddings.php index 4da887f..591ac57 100644 --- a/src/Providers/Ollama/Handlers/Embeddings.php +++ b/src/Providers/Ollama/Handlers/Embeddings.php @@ -28,7 +28,7 @@ public function handle(Request $request): EmbeddingsResponse if (data_get($data, 'error') || ! $data) { throw PrismException::providerResponseError(vsprintf( - 'OpenAI Error: [%s] %s', + 'Ollama Error: [%s] %s', [ data_get($data, 'error.type', 'unknown'), data_get($data, 'error.message', 'unknown'),