Skip to content

Commit

Permalink
update chatgpt model list
Browse files Browse the repository at this point in the history
  • Loading branch information
eliranwong committed Oct 13, 2024
1 parent 9e1e134 commit bbb4a5c
Show file tree
Hide file tree
Showing 4 changed files with 119 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
# https://packaging.python.org/en/latest/guides/distributing-packages-using-setuptools/
setup(
name=package,
version="0.1.04",
version="0.1.05",
python_requires=">=3.8, <3.13",
description=f"UniqueBible App is a cross-platform & offline bible application, integrated with high-quality resources and unique features. Developers: Eliran Wong and Oliver Tseng",
long_description=long_description,
Expand Down
116 changes: 116 additions & 0 deletions test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
a = [
'\[',
'\[',
'\[',
'\{',
'\[',
'\s',
'\s',
'\.',
'\.',
'\.',
'\.',
'\[',
'\.',
'\.',
'\.',
'\[',
'\[',
'\[',
'\-',
'\(',
'\(',
'\(',
'\(',
'\.',
'\[',
'\{',
'\.',
'\.',
'\.',
'\[',
'\[',
'\(',
'\[',
'\(',
'\.',
'\.',
'\.',
'\(',
'\/',
'\]',
'\]',
'\(',
'\]',
'\.',
'\.',
'\.',
'\.',
'\.',
'\.',
'\.',
'\.',
'\.',
'\.',
'\.',
'\.',
'\.',
'\.',
'\.',
'\.',
'\.',
'\(',
'\(',
'\*',
'\*',
'\(',
'\[',
'\-',
'\.',
'\-',
'\[',
'\[',
'\.',
'\[',
'\[',
'\.',
'\(',
'\*',
'\*',
'\(',
'\.',
'\[',
'\[',
'\[',
'\[',
'\.',
'\.',
'\.',
'\(',
'\.',
'\.',
'\(',
'\[',
'\[',
'\(',
'\[',
'\(',
'\[',
'\[',
'\[',
'\.',
'\.',
'\.',
'\.',
'\(',
'\(',
'\(',
'\(',
'\(',
'\(',
'\(',
'\(',
'\(',
]
a = list(set(a))
print(a)
2 changes: 1 addition & 1 deletion uniquebible/plugins/menu/Bible Chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def __init__(self, parent=None):
self.apiModelBox = QComboBox()
initialIndex = 0
index = 0
for key in ("gpt-3.5-turbo", "gpt-3.5-turbo-16k", "gpt-4", "gpt-4-32k"):
for key in ("o1-preview", "o1-mini", "gpt-4o", "gpt-4o-mini", "gpt-4-turbo", "gpt-4", "gpt-3.5-turbo"):
self.apiModelBox.addItem(key)
if key == config.chatGPTApiModel:
initialIndex = index
Expand Down
1 change: 1 addition & 0 deletions uniquebible/util/LocalCliHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -2305,6 +2305,7 @@ def runCompletion(self, thisMessage):
)

def runCompletion_old(self, thisMessage):
import openai
self.functionJustCalled = False
def runThisCompletion(thisThisMessage):
if config.chatGPTApiFunctionSignatures and not self.functionJustCalled:
Expand Down

0 comments on commit bbb4a5c

Please sign in to comment.