test: add additional new agent messaging tests (#2120)
This commit is contained in:
@@ -326,10 +326,12 @@ def openai_chat_completions_process_stream(
|
||||
expect_reasoning_content=expect_reasoning_content,
|
||||
name=name,
|
||||
message_index=message_idx,
|
||||
prev_message_type=prev_message_type,
|
||||
)
|
||||
if message_type != prev_message_type and message_type is not None:
|
||||
if message_type != prev_message_type and message_type is not None and prev_message_type is not None:
|
||||
message_idx += 1
|
||||
prev_message_type = message_type
|
||||
if message_type is not None:
|
||||
prev_message_type = message_type
|
||||
elif isinstance(stream_interface, AgentRefreshStreamingInterface):
|
||||
stream_interface.process_refresh(chat_completion_response)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user