[PR #12790] [MERGED] embeddings: modified tests to validate exact base-64 string #24490

Closed
opened 2026-04-19 17:36:25 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/12790
Author: @npardal
Created: 10/27/2025
Status: Merged
Merged: 10/28/2025
Merged by: @npardal

Base: mainHead: nicole/base64-test


📝 Commits (1)

  • 9ee9cf3 added check against exact base64 string

📊 Changes

1 file changed (+31 additions, -17 deletions)

View changed files

📝 openai/openai_encoding_format_test.go (+31 -17)

📄 Description

WHAT
Added expectBase64 field to embedding test cases
Updated test data with expected base64 strings
Enhanced test validation to iterate through ALL embeddings and compare with expected value

WHY
To make embedding test more thorough / comprehensive


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/12790 **Author:** [@npardal](https://github.com/npardal) **Created:** 10/27/2025 **Status:** ✅ Merged **Merged:** 10/28/2025 **Merged by:** [@npardal](https://github.com/npardal) **Base:** `main` ← **Head:** `nicole/base64-test` --- ### 📝 Commits (1) - [`9ee9cf3`](https://github.com/ollama/ollama/commit/9ee9cf3bcb65bb025749d43f0faea1be65a1fbc4) added check against exact base64 string ### 📊 Changes **1 file changed** (+31 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `openai/openai_encoding_format_test.go` (+31 -17) </details> ### 📄 Description **WHAT** Added expectBase64 field to embedding test cases Updated test data with expected base64 strings Enhanced test validation to iterate through ALL embeddings and compare with expected value **WHY** To make embedding test more thorough / comprehensive --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-19 17:36:25 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#24490