We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ChatMessage
1 parent 458b756 commit 3c63bd0Copy full SHA for 3c63bd0
ai21/clients/common/maestro/run.py
@@ -33,9 +33,14 @@ def _create_body(
33
include: List[OutputOptions] | NotGiven,
34
**kwargs,
35
) -> dict:
36
+ if isinstance(input, list):
37
+ _input = [{"role": message.role, "content": message.content} for message in input]
38
+ else:
39
+ _input = input
40
+
41
return remove_not_given(
42
{
- "input": input,
43
+ "input": _input,
44
"models": models,
45
"tools": tools,
46
"tool_resources": tool_resources,
0 commit comments