Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

Commit 437fb52

Browse files
authored
Merge pull request #133 from Integration-Automation/dev
Fix remove option that not in options list
2 parents 9f261d5 + 8a07bee commit 437fb52

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

dev.toml

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

77
[project]
88
name = "re_edge_gpt_dev"
9-
version = "0.0.42"
9+
version = "0.0.43"
1010
authors = [
1111
{ name = "JE-Chen", email = "jechenmailman@gmail.com" },
1212
]

pyproject.toml

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

77
[project]
88
name = "re_edge_gpt"
9-
version = "0.0.35"
9+
version = "0.0.36"
1010
authors = [
1111
{ name = "JE-Chen", email = "jechenmailman@gmail.com" },
1212
]

re_edge_gpt/chat/chathub.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ async def ask_stream(
121121
# Construct a ChatHub request
122122
if remove_options is not None:
123123
for option in remove_options:
124-
if option in remove_options:
124+
if option in conversation_style.value:
125125
conversation_style.value.remove(option)
126126
if add_options is not None:
127127
for option in add_options:

test/unit_test/back-end/manual_test/test_bot_manual.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ async def test_ask() -> None:
2121
bot = await Chatbot.create(cookies=cookies, mode=mode)
2222
response = await bot.ask(
2323
prompt="What version u are using GPT-4 turbo?",
24-
conversation_style=ConversationStyle.creative_classic,
24+
conversation_style=ConversationStyle.creative_classic, # ConversationStyle.creative
2525
simplify_response=True,
2626
search_result=True,
2727
)

0 commit comments

Comments
 (0)