Update messagers/message_outputer.py
Browse files
messagers/message_outputer.py
CHANGED
@@ -24,7 +24,7 @@ class OpenaiStreamOutputer:
|
|
24 |
}
|
25 |
}
|
26 |
|
27 |
-
|
28 |
data_str = f"{json.dumps(data)}"
|
29 |
return data_str
|
30 |
|
|
|
24 |
}
|
25 |
}
|
26 |
|
27 |
+
def data_to_string(self, data={}, content_type=""):
|
28 |
data_str = f"{json.dumps(data)}"
|
29 |
return data_str
|
30 |
|