Skip to content

Commit 17e8ddc

Browse files
Added type hint
1 parent 3c1ba81 commit 17e8ddc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/messages.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ async def stream_response(
5151
# Create a generator to stream the response from the assistant
5252
# Create a generator to stream the response from the assistant
5353
async def event_generator():
54-
stream = openai.beta.threads.runs.stream(
54+
stream: AsyncAssistantStreamManager = openai.beta.threads.runs.stream(
5555
assistant_id=assistant_id,
5656
thread_id=thread_id
5757
)

0 commit comments

Comments
 (0)