mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-06-23 03:04:06 +00:00
Fix unit test after updating error message
This commit is contained in:
parent
a8ce0a3084
commit
43022b1718
@ -291,7 +291,7 @@ async def test_chat_connection_error():
|
|||||||
result = await provider.chat(messages)
|
result = await provider.chat(messages)
|
||||||
|
|
||||||
assert isinstance(result, LLMResponse)
|
assert isinstance(result, LLMResponse)
|
||||||
assert "Error calling Azure OpenAI: Connection failed" in result.content
|
assert "Error calling Azure OpenAI: Exception('Connection failed')" in result.content
|
||||||
assert result.finish_reason == "error"
|
assert result.finish_reason == "error"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user