refac
This commit is contained in:
@@ -4658,6 +4658,7 @@ async def streaming_chat_response_handler(response, ctx):
|
|||||||
**form_data,
|
**form_data,
|
||||||
'model': model_id,
|
'model': model_id,
|
||||||
'stream': True,
|
'stream': True,
|
||||||
|
'metadata': metadata,
|
||||||
}
|
}
|
||||||
|
|
||||||
if ENABLE_RESPONSES_API_STATEFUL and last_response_id:
|
if ENABLE_RESPONSES_API_STATEFUL and last_response_id:
|
||||||
@@ -4881,6 +4882,7 @@ async def streaming_chat_response_handler(response, ctx):
|
|||||||
**form_data,
|
**form_data,
|
||||||
'model': model_id,
|
'model': model_id,
|
||||||
'stream': True,
|
'stream': True,
|
||||||
|
'metadata': metadata,
|
||||||
'messages': [
|
'messages': [
|
||||||
*form_data['messages'],
|
*form_data['messages'],
|
||||||
*convert_output_to_messages(output, raw=True),
|
*convert_output_to_messages(output, raw=True),
|
||||||
|
|||||||
Reference in New Issue
Block a user