Update in the .env.template for new endpoint for ollama embedings (#1673)

## Description

Updated the Ollama embedding API endpoint in `.env.template` from
`/api/embeddings` to `/api/embed` to align with Ollama's current API
standards. The `/api/embeddings` endpoint has been deprecated and
superseded by `/api/embed`, which is now the recommended endpoint for
generating vector embeddings.

This change ensures users following the template will configure the
correct endpoint when setting up Ollama integration, preventing
potential API errors and maintaining compatibility with current Ollama
versions.

## Type of Change
- [x] Bug fix (non-breaking change that fixes an issue)
- [x] Documentation update

## Screenshots/Videos (if applicable)
N/A - Configuration file change only

## Pre-submission Checklist
- [x] **I have tested my changes thoroughly before submitting this PR**
- [x] **This PR contains minimal changes necessary to address the
issue/feature**
- [x] My code follows the project's coding standards and style
guidelines
- [ ] I have added tests that prove my fix is effective or that my
feature works *(N/A for template changes)*
- [x] I have added necessary documentation (if applicable)
- [x] All new and existing tests pass
- [x] I have searched existing PRs to ensure this change hasn't been
submitted already
- [ ] I have linked any relevant issues in the description *(link if
available)*
- [x] My commits have clear and descriptive messages

## DCO Affirmation
I affirm that all code in every commit of this pull request conforms to
the terms of the Topoteretes Developer Certificate of Origin.
This commit is contained in:
Vasilije 2025-10-27 10:20:09 +01:00 committed by GitHub
commit c92a7b1c8d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -242,13 +242,14 @@ LITELLM_LOG="ERROR"
########## Local LLM via Ollama ###############################################
#LLM_API_KEY ="ollama"
#LLM_MODEL="llama3.1:8b"
#LLM_PROVIDER="ollama"
#LLM_ENDPOINT="http://localhost:11434/v1"
#EMBEDDING_PROVIDER="ollama"
#EMBEDDING_MODEL="nomic-embed-text:latest"
#EMBEDDING_ENDPOINT="http://localhost:11434/api/embeddings"
#EMBEDDING_ENDPOINT="http://localhost:11434/api/embed"
#EMBEDDING_DIMENSIONS=768
#HUGGINGFACE_TOKENIZER="nomic-ai/nomic-embed-text-v1.5"