1 parent 6475159 commit 7369fcfCopy full SHA for 7369fcf
1 file changed
dashscope/api_entities/api_request_data.py
@@ -158,6 +158,8 @@ def get_batch_binary_data(self) -> bytes: # type: ignore[return]
158
159
def _only_parameters(self) -> str:
160
obj = {"model": self.model, "parameters": self.parameters, "input": {}}
161
+ if "raw_input" in self.parameters:
162
+ obj["input"] = self.parameters.pop("raw_input")
163
if self.task is not None:
164
obj["task"] = self.task
165
if self.task_group is not None:
0 commit comments