Skip to content

Commit 5e015d6

Browse files
authored
Fix ollama tests (#1714)
<!-- .github/pull_request_template.md --> ## Description <!-- Please provide a clear, human-generated description of the changes in this PR. DO NOT use AI-generated descriptions. We want to understand your thought process and reasoning. --> ## Type of Change <!-- Please check the relevant option --> - [ ] Bug fix (non-breaking change that fixes an issue) - [ ] New feature (non-breaking change that adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] Documentation update - [ ] Code refactoring - [ ] Performance improvement - [ ] Other (please specify): ## Screenshots/Videos (if applicable) <!-- Add screenshots or videos to help explain your changes --> ## Pre-submission Checklist <!-- Please check all boxes that apply before submitting your PR --> - [ ] **I have tested my changes thoroughly before submitting this PR** - [ ] **This PR contains minimal changes necessary to address the issue/feature** - [ ] 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 - [ ] I have added necessary documentation (if applicable) - [ ] All new and existing tests pass - [ ] I have searched existing PRs to ensure this change hasn't been submitted already - [ ] I have linked any relevant issues in the description - [ ] 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.
2 parents 995e7aa + 737f792 commit 5e015d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/test_ollama.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
{ "role": "user", "content": "Whatever I say, answer with Yes." }
7676
]
7777
}'
78-
curl -X POST http://127.0.0.1:11434/v1/embeddings \
78+
curl -X POST http://127.0.0.1:11434/api/embed \
7979
-H "Content-Type: application/json" \
8080
-d '{
8181
"model": "avr/sfr-embedding-mistral:latest",
@@ -98,7 +98,7 @@ jobs:
9898
LLM_MODEL: "phi4"
9999
EMBEDDING_PROVIDER: "ollama"
100100
EMBEDDING_MODEL: "avr/sfr-embedding-mistral:latest"
101-
EMBEDDING_ENDPOINT: "http://localhost:11434/api/embeddings"
101+
EMBEDDING_ENDPOINT: "http://localhost:11434/api/embed"
102102
EMBEDDING_DIMENSIONS: "4096"
103103
HUGGINGFACE_TOKENIZER: "Salesforce/SFR-Embedding-Mistral"
104104
run: uv run python ./examples/python/simple_example.py

0 commit comments

Comments
 (0)