Skip to content

Commit

Permalink
Merge pull request #133 from Integration-Automation/dev
Browse files Browse the repository at this point in the history
Fix remove option that not in options list
  • Loading branch information
JE-Chen authored Apr 12, 2024
2 parents 9f261d5 + 8a07bee commit 437fb52
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dev.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "re_edge_gpt_dev"
version = "0.0.42"
version = "0.0.43"
authors = [
{ name = "JE-Chen", email = "jechenmailman@gmail.com" },
]
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "re_edge_gpt"
version = "0.0.35"
version = "0.0.36"
authors = [
{ name = "JE-Chen", email = "jechenmailman@gmail.com" },
]
Expand Down
2 changes: 1 addition & 1 deletion re_edge_gpt/chat/chathub.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ async def ask_stream(
# Construct a ChatHub request
if remove_options is not None:
for option in remove_options:
if option in remove_options:
if option in conversation_style.value:
conversation_style.value.remove(option)
if add_options is not None:
for option in add_options:
Expand Down
2 changes: 1 addition & 1 deletion test/unit_test/back-end/manual_test/test_bot_manual.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ async def test_ask() -> None:
bot = await Chatbot.create(cookies=cookies, mode=mode)
response = await bot.ask(
prompt="What version u are using GPT-4 turbo?",
conversation_style=ConversationStyle.creative_classic,
conversation_style=ConversationStyle.creative_classic, # ConversationStyle.creative
simplify_response=True,
search_result=True,
)
Expand Down

0 comments on commit 437fb52

Please sign in to comment.