()
| 11 | |
| 12 | @pytest.mark.asyncio() |
| 13 | async def test_ask() -> None: |
| 14 | bot = await Chatbot.create(cookies=getenv("EDGE_COOKIES")) |
| 15 | response = await bot.ask( |
| 16 | prompt="find me some information about the new ai released by meta.", |
| 17 | conversation_style=ConversationStyle.balanced, |
| 18 | simplify_response=True, |
| 19 | ) |
| 20 | await bot.close() |
| 21 | print(json.dumps(response, indent=2)) |
| 22 | assert response |