add new test for tool_calls_rsp.

This commit is contained in:
刘棒棒 2024-01-23 17:50:04 +08:00
parent cff4eff78d
commit 0cc0a16e52

View file

@ -95,6 +95,10 @@ class TestOpenAI:
ChatCompletionMessage(
content='"""python\nprint(\'hello world\')"""', role="assistant", tool_calls=None
),
ChatCompletionMessage(
content="'''python\nprint(\"hello world\")'''", role="assistant", tool_calls=None
),
ChatCompletionMessage(content="```python\nprint('hello world')```", role="assistant", tool_calls=None),
]
)
choices = [