Repository: promptfoo/promptfoo
Issue: ollama embeddings ignores model tags
Root cause: Validation Gap

The ollama embeddings provider ignores model tags such as llama3:8b
Note that it succeeds if llama3:latest is present. It appears to be ignoring the model tag.

>  [FAIL] API response error: Error: No embedding found in Ollama embeddings API response: {"error":"model \"llama3\"  not found, try pulling it first"} 

The following is a minimal reproduction case:

```
$ npx promptfoo@0.72.0 --version
0.72.0

$ ollama --version
ollama version is 0.2.5

$ ollama ls | grep llama3
llama3:8b       365c0bd3c000    4.7 GB  6 weeks ago
```

```promptfooconfig.yaml
prompts:
  - |
    Act as a spelling corrector and improver. Reply with the fixed text ONLY.

    Text: {{text}}

    Fixed Text:

providers:
  - id: ollama:chat:llama3:8b
    config:
      temperature: 0.2
      seed: 42

tests:
  - vars:
      text: |
        This is a test of fix typpo

    assert:
      - type: similar
        provider: ollama:embeddings:llama3:8b
        threshold: 0.8
        value: This is a test of fix typo
```

```
$ npx promptfoo@0.72.0 eval --no-cache
Cache is disabled.
[████████████████████████████████████████] 100% | ETA: 0s | 1/1 | ollama:chat:llama3:8b "Act as a s" text=This

┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┬─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ text                                                                                                                │ [ollama:chat:llama3:8b] Act as a spelling corrector and improver. Reply with the fixed text ONLY.                   │
│                                                                                                                     │ Text: {{text}}                                                                                                      │
│                                                                                                                     │ Fixed Text:                                                                                                         │
├─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ This is a test of fix typpo                                                                                         │ [FAIL] API response error: Error: No embedding found in Ollama embeddings API response: {"error":"model \"llama3\"  │
│                                                                                                                     │ not found, try pulling it first"}                                                                                   │
│                                                                                                                     │ ---                                                                                                                 │
│                                                                                                                     │ This is a test of fix typo                                                                                          │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┴─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
===========================================================================================================================================================================================================================================
✔ Evaluation complete.

» Run promptfoo view to use the local web viewer
» Run promptfoo share to create a shareable URL
» This project needs your feedback. What's one thing we can improve? https://forms.gle/YFLgTe1dKJKNSCsU7
===========================================================================================================================================================================================================================================
Successes: 0
Failures: 1
Token usage: Total 0, Prompt 0, Completion 0, Cached 0
Done.
```

THanks so much @minamijoyo for creating a PR and for contributing Promptfoo. We released your change in [0.72.1](https://github.com/promptfoo/promptfoo/releases/tag/0.72.1).