-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New: - Uses ollama offiical python package instead of openapi - Ask for confirmation when resetting settings changes - Added option to see all pulled ollama models instead of fixed ones (now you can choose from all of the downaloded models you have in your ollama library) Improvements: Most models should work smoothly now without any extra text after generation. Now you can choose from already pulled models instead of a fixed list.
- Loading branch information
Showing
6 changed files
with
141 additions
and
40 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,23 @@ | ||
annotated-types==0.6.0 | ||
anyio==4.3.0 | ||
certifi==2024.2.2 | ||
colorama==0.4.6 | ||
distro==1.9.0 | ||
exceptiongroup==1.2.0 | ||
h11==0.14.0 | ||
httpcore==1.0.4 | ||
httpx==0.27.0 | ||
idna==3.6 | ||
ollama==0.1.8 | ||
packaging==23.2 | ||
pydantic==2.6.2 | ||
pydantic_core==2.16.3 | ||
PySide6==6.6.2 | ||
openai==1.12.0 | ||
qdarkstyle==3.2.3 | ||
PySide6_Addons==6.6.2 | ||
PySide6_Essentials==6.6.2 | ||
QDarkStyle==3.2.3 | ||
QtPy==2.4.1 | ||
shiboken6==6.6.2 | ||
sniffio==1.3.0 | ||
tqdm==4.66.2 | ||
typing_extensions==4.9.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,10 +47,4 @@ class ExampleEntry(TypedDict): | |
"🔥 Fire", | ||
] | ||
|
||
MODELS = [ | ||
"llama2", | ||
"mistral", | ||
"llava" | ||
] | ||
|
||
DEFAULT_MODEL = "llama2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
from PySide6.QtCore import Signal, QThread | ||
import httpx | ||
|
||
class FetchModels(QThread): | ||
fetched = Signal(list) | ||
error = Signal(str) | ||
|
||
def __init__(self, client): | ||
super().__init__(None) | ||
self.client = client | ||
|
||
def run(self): | ||
try: | ||
ollama_models = self.client.list() | ||
ollama_models = [model["name"] for model in ollama_models['models']] | ||
self.fetched.emit(ollama_models) | ||
except httpx.ConnectError as e: | ||
self.error.emit("Ollama is not running in the background, please make sure it is, and try again.\nIf it is running and you are still getting this, make sure your base url is correct.") | ||
except Exception as e: | ||
self.error.emit(str(e)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters