From 7f0eafef6f1eb51ddffbad08571ec90dad156e6e Mon Sep 17 00:00:00 2001 From: Patrizio Bekerle Date: Sat, 15 Jun 2024 07:10:53 +0200 Subject: [PATCH] ollama-integration: fix API endpoint Signed-off-by: Patrizio Bekerle --- ollama-integration/info.json | 2 +- ollama-integration/ollama-integration.qml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ollama-integration/info.json b/ollama-integration/info.json index b670add..3c9ff34 100644 --- a/ollama-integration/info.json +++ b/ollama-integration/info.json @@ -2,7 +2,7 @@ "name": "Ollama integration", "identifier": "ollama-integration", "script": "ollama-integration.qml", - "version": "0.0.1", + "version": "0.0.2", "minAppVersion": "24.6.2", "authors": ["@pbek"], "description" : "This script provides integration for a local Ollama AI backend." diff --git a/ollama-integration/ollama-integration.qml b/ollama-integration/ollama-integration.qml index 125afcc..3499083 100644 --- a/ollama-integration/ollama-integration.qml +++ b/ollama-integration/ollama-integration.qml @@ -5,6 +5,7 @@ import QOwnNotesTypes 1.0 * This script provides integration for a local Ollama backend * See: https://github.com/ollama/ollama * List of models: https://github.com/ollama/ollama?tab=readme-ov-file#model-library + * OpenAPI endpoint: https://ollama.com/blog/openai-compatibility */ Script { property string baseUrl; @@ -17,7 +18,7 @@ Script { "name": "API base URL", "description": "The chat base URL of the Ollama API.", "type": "string", - "default": "http://127.0.0.1:11434/api/chat", + "default": "http://127.0.0.1:11434/v1/chat/completions", }, { "identifier": "models",