MCPcopy Create free account
hub / github.com/Agora-Lab-AI/Bing-Chat-API / test_ask

Function test_ask

test_base.py:13–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11
12@pytest.mark.asyncio()
13async 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

Callers

nothing calls this directly

Calls 3

askMethod · 0.80
createMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected