Skip to content

Commit

Permalink
ollama-integration: fix API endpoint
Browse files Browse the repository at this point in the history
Signed-off-by: Patrizio Bekerle <patrizio@bekerle.com>
  • Loading branch information
pbek committed Jun 15, 2024
1 parent 527ea1f commit 7f0eafe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ollama-integration/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 <a href=\"https://github.com/ollama/ollama\">Ollama</a> AI backend."
Expand Down
3 changes: 2 additions & 1 deletion ollama-integration/ollama-integration.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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",
Expand Down

0 comments on commit 7f0eafe

Please sign in to comment.