[PR #13793] [MERGED] fix: use api.GenerateRequest for image generation test #14393

Closed
opened 2026-04-13 00:52:38 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/13793
Author: @jmorganca
Created: 1/20/2026
Status: Merged
Merged: 1/20/2026
Merged by: @jmorganca

Base: mainHead: fix-imagegen-api-import


📝 Commits (1)

  • d0b2359 fix: use api.GenerateRequest for image generation test

📊 Changes

1 file changed (+18 additions, -44 deletions)

View changed files

📝 integration/imagegen_test.go (+18 -44)

📄 Description

Summary

  • Fix go mod tidy failure caused by importing non-existent package github.com/ollama/ollama/x/imagegen/api
  • Use standard api.GenerateRequest/api.GenerateResponse with the Image field instead of custom types and OpenAI-compatible endpoint

Test plan

  • go mod tidy completes without error

🔄 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/13793 **Author:** [@jmorganca](https://github.com/jmorganca) **Created:** 1/20/2026 **Status:** ✅ Merged **Merged:** 1/20/2026 **Merged by:** [@jmorganca](https://github.com/jmorganca) **Base:** `main` ← **Head:** `fix-imagegen-api-import` --- ### 📝 Commits (1) - [`d0b2359`](https://github.com/ollama/ollama/commit/d0b2359c6dc7f537b880b74572de74f95b978ae9) fix: use api.GenerateRequest for image generation test ### 📊 Changes **1 file changed** (+18 additions, -44 deletions) <details> <summary>View changed files</summary> 📝 `integration/imagegen_test.go` (+18 -44) </details> ### 📄 Description ## Summary - Fix `go mod tidy` failure caused by importing non-existent package `github.com/ollama/ollama/x/imagegen/api` - Use standard `api.GenerateRequest`/`api.GenerateResponse` with the `Image` field instead of custom types and OpenAI-compatible endpoint ## Test plan - [x] `go mod tidy` completes without error --- <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-13 00:52:38 -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#14393