Skip to content

Commit 6b41be7

Browse files
authored
Merge pull request #187 from yjg30737/feature/general
v1.7.1
2 parents 99d37a2 + 6715665 commit 6b41be7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+171
-156
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "pyqt-openai"
7-
version = "1.7.0"
7+
version = "1.7.1"
88
description = "Python multipurpose chatbot that user can use GPT, other AI models altogether (Release Name: VividNode)"
99
authors = [{ name = "Jung Gyu Yoon", email = "yjg30737@gmail.com" }]
1010
license = { text = "MIT" }

pyqt_openai/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
# For the sake of following the PEP8 standard, we will declare module-level dunder names.
2424
# PEP8 standard about dunder names: https://peps.python.org/pep-0008/#module-level-dunder-names
2525

26-
__version__ = "1.7.0"
26+
__version__ = "1.7.1"
2727
__author__ = "Jung Gyu Yoon"
2828

2929
# Constants
@@ -1139,6 +1139,7 @@ def move_bin(filename, dst_dir):
11391139
"model",
11401140
"width",
11411141
"height",
1142+
"provider",
11421143
"prompt",
11431144
"negative_prompt",
11441145
"n",

pyqt_openai/aboutDialog.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ def __initUi(self):
5454
<p>Powered by PySide6</p>
5555
<p>Powered by GPT4Free</p>
5656
<p>Powered by LiteLLM</p>
57+
<p>Powered by LlamaIndex</p>
5758
"""
5859
)
5960

pyqt_openai/chat_widget/center/aiChatUnit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from pyqt_openai.chat_widget.center.responseInfoDialog import ResponseInfoDialog
1515
from pyqt_openai.models import ChatMessageContainer
1616
from pyqt_openai.globals import DB
17-
from pyqt_openai.util.script import stream_to_speakers
17+
from pyqt_openai.util.common import stream_to_speakers
1818
from pyqt_openai.widgets.button import Button
1919
from pyqt_openai.widgets.fileTableDialog import FileTableDialog
2020

pyqt_openai/chat_widget/center/chatBrowser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from pyqt_openai.chat_widget.center.userChatUnit import UserChatUnit
1515
from pyqt_openai.models import ChatMessageContainer
1616
from pyqt_openai.globals import DB
17-
from pyqt_openai.util.script import is_valid_regex
17+
from pyqt_openai.util.common import is_valid_regex
1818

1919

2020
class ChatBrowser(QScrollArea):

pyqt_openai/chat_widget/center/chatWidget.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
from pyqt_openai.chat_widget.center.chatHome import ChatHome
1616
from pyqt_openai.chat_widget.center.menuWidget import MenuWidget
1717
from pyqt_openai.chat_widget.center.prompt import Prompt
18-
from pyqt_openai.chat_widget.llamaOpenAIThread import LlamaOpenAIThread
18+
from pyqt_openai.chat_widget.llamaIndexThread import LlamaIndexThread
1919
from pyqt_openai.config_loader import CONFIG_MANAGER
2020
from pyqt_openai.globals import LLAMAINDEX_WRAPPER, DB
21-
from pyqt_openai.util.script import get_argument, ChatThread
21+
from pyqt_openai.util.common import get_argument, ChatThread
2222
from pyqt_openai.lang.translations import LangClass
2323
from pyqt_openai.models import ChatMessageContainer
2424
from pyqt_openai.widgets.notifier import NotifierWidget
@@ -261,10 +261,9 @@ def __chat(self):
261261
query_text = self.__prompt.getContent()
262262
self.__browser.showLabel(query_text, False, container)
263263

264-
# Get parameters for OpenAI
264+
# Run a different thread based on whether the llama-index is enabled or not.
265265
if is_llama_available:
266-
# Run a different thread based on whether the llama-index is enabled or not.
267-
self.__t = LlamaOpenAIThread(
266+
self.__t = LlamaIndexThread(
268267
param, container, LLAMAINDEX_WRAPPER, query_text
269268
)
270269
else:

pyqt_openai/chat_widget/center/prompt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
UploadedImageFileWidget,
4242
)
4343
from pyqt_openai.lang.translations import LangClass
44-
from pyqt_openai.util.script import (
44+
from pyqt_openai.util.common import (
4545
get_content_of_text_file_for_send,
4646
RecorderThread,
4747
STTThread,

pyqt_openai/chat_widget/center/responseInfoDialog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
from pyqt_openai.lang.translations import LangClass
55
from pyqt_openai.models import ChatMessageContainer
6-
from pyqt_openai.util.script import getSeparator
6+
from pyqt_openai.util.common import getSeparator
77

88

99
class ResponseInfoDialog(QDialog):

pyqt_openai/chat_widget/chatMainWidget.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
CustomizeParamsContainer,
4444
)
4545
from pyqt_openai.globals import DB, LLAMAINDEX_WRAPPER
46-
from pyqt_openai.util.script import (
46+
from pyqt_openai.util.common import (
4747
open_directory,
4848
get_generic_ext_out_of_qt_ext,
4949
message_list_to_txt,

pyqt_openai/chat_widget/left_sidebar/chatImportDialog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
HOW_TO_EXPORT_CHATGPT_CONVERSATION_HISTORY_URL,
2222
)
2323
from pyqt_openai.lang.translations import LangClass
24-
from pyqt_openai.util.script import (
24+
from pyqt_openai.util.common import (
2525
get_chatgpt_data_for_import,
2626
get_chatgpt_data_for_preview,
2727
)

0 commit comments

Comments
 (0)