[PR #667] [CLOSED] feat: Use modelfiles with external API instead of ollama #7208

Closed
opened 2025-11-11 17:20:14 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/667
Author: @keriati
Created: 2/6/2024
Status: Closed

Base: mainHead: feat/ext-models


📝 Commits (1)

  • 5fa8e45 feat: Use modelfiles with external API instead of ollama

📊 Changes

4 files changed (+118 additions, -96 deletions)

View changed files

📝 src/routes/(app)/+page.svelte (+6 -1)
📝 src/routes/(app)/c/[id]/+page.svelte (+6 -1)
📝 src/routes/(app)/modelfiles/create/+page.svelte (+52 -44)
📝 src/routes/(app)/modelfiles/edit/+page.svelte (+54 -50)

📄 Description

With this change a modelfile from the ollama hub can be imported in a way that it uses an external model from openAI compatible API instead of ollama.

A pre requirement is to provide an API key and refresh the page so the models are loaded.

In my testing to achieve this we have to copy an existing model's name to two places:

  • the Tag name
  • the FROM part of the content

This works in my local instance.

I am rather not so sure about this changes as I never touched svelte before.

Probably a checkbox called: use external and a dropdown list to select from external models would be a more complete solution.

Should relate to #665


🔄 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/open-webui/open-webui/pull/667 **Author:** [@keriati](https://github.com/keriati) **Created:** 2/6/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat/ext-models` --- ### 📝 Commits (1) - [`5fa8e45`](https://github.com/open-webui/open-webui/commit/5fa8e45edc3955c4423da54a030d359528946515) feat: Use modelfiles with external API instead of ollama ### 📊 Changes **4 files changed** (+118 additions, -96 deletions) <details> <summary>View changed files</summary> 📝 `src/routes/(app)/+page.svelte` (+6 -1) 📝 `src/routes/(app)/c/[id]/+page.svelte` (+6 -1) 📝 `src/routes/(app)/modelfiles/create/+page.svelte` (+52 -44) 📝 `src/routes/(app)/modelfiles/edit/+page.svelte` (+54 -50) </details> ### 📄 Description With this change a modelfile from the ollama hub can be imported in a way that it uses an external model from openAI compatible API instead of ollama. A pre requirement is to provide an API key and refresh the page so the models are loaded. In my testing to achieve this we have to copy an existing model's name to two places: - the Tag name - the FROM part of the content This works in my local instance. I am rather not so sure about this changes as I never touched svelte before. Probably a checkbox called: use external and a dropdown list to select from external models would be a more complete solution. Should relate to #665 --- <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 2025-11-11 17:20:14 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#7208