🔄 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>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 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.