mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-11 00:04:08 -05:00
[PR #667] [CLOSED] feat: Use modelfiles with external API instead of ollama #7208
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/667
Author: @keriati
Created: 2/6/2024
Status: ❌ Closed
Base:
main← Head:feat/ext-models📝 Commits (1)
5fa8e45feat: 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:
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.