Skip to content

Commit

Permalink
更新ChatGPT模型
Browse files Browse the repository at this point in the history
  • Loading branch information
Ikaros-521 committed Feb 25, 2024
1 parent c97c6ec commit 68e81b3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
5 changes: 4 additions & 1 deletion utils/my_handle.py
Original file line number Diff line number Diff line change
Expand Up @@ -1700,7 +1700,7 @@ def comment_handle(self, data):
data (dict): 包含用户名,弹幕内容
Returns:
_type_: 寂寞
dict: 传递给音频合成的JSON数据
"""

try:
Expand Down Expand Up @@ -1918,8 +1918,11 @@ def comment_handle(self, data):
}

self.audio_synthesis_handle(message)

return message
except Exception as e:
logging.error(traceback.format_exc())
return None


# 礼物处理
Expand Down
11 changes: 7 additions & 4 deletions webui.py
Original file line number Diff line number Diff line change
Expand Up @@ -2138,21 +2138,24 @@ def common_textarea_handle(content):
with ui.row():
chatgpt_models = [
"gpt-3.5-turbo",
"gpt-3.5-turbo-instruct",
"gpt-3.5-turbo-instruct-0914",
"gpt-3.5-turbo-0301",
"gpt-3.5-turbo-0613",
"gpt-3.5-turbo-1106",
"gpt-3.5-turbo-0125",
"gpt-3.5-turbo-16k",
"gpt-3.5-turbo-16k-0613",
"gpt-3.5-turbo-instruct",
"gpt-3.5-turbo-instruct-0914",
"gpt-4",
"gpt-4-0314",
"gpt-4-turbo-preview",
"gpt-4-0613",
"gpt-4-32k",
"gpt-4-32k-0314",
"gpt-4-32k-0613",
"gpt-4-1106-preview",
"text-embedding-ada-002",
"gpt-4-0125-preview",
"text-embedding-3-large",
"text-embedding-3-small",
"text-davinci-003",
"text-davinci-002",
"text-curie-001",
Expand Down

0 comments on commit 68e81b3

Please sign in to comment.