Skip to content

Commit

Permalink
Merge pull request #98 from Integration-Automation/dev
Browse files Browse the repository at this point in the history
Update README
  • Loading branch information
JE-Chen authored Jan 24, 2024
2 parents b81e867 + 9ac2413 commit 33ace26
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ if __name__ == "__main__":

<summary>

# Using copilot as default mode
# Use copilot as default mode

</summary>

Expand Down
7 changes: 4 additions & 3 deletions test/unit_test/manual_test/test_bot_manual.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
async def test_ask() -> None:
bot = None
try:
mode = "Copilot"
mode = "Bing"
if mode == "Bing":
cookies: list[dict] = json.loads(open(
str(Path(str(Path.cwd()) + "/bing_cookies.json")), encoding="utf-8").read())
Expand All @@ -22,9 +22,10 @@ async def test_ask() -> None:
str(Path(str(Path.cwd()) + "/copilot_cookies.json")), encoding="utf-8").read())
bot = await Chatbot.create(cookies=cookies, mode=mode)
response = await bot.ask(
prompt="Is your name Copilot",
prompt="Beef wellington recipe",
conversation_style=ConversationStyle.balanced,
simplify_response=True
simplify_response=True,
search_result=True
)
# If you are using non ascii char you need set ensure_ascii=False
print(json.dumps(response, indent=2, ensure_ascii=False))
Expand Down

0 comments on commit 33ace26

Please sign in to comment.