mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-12-28 07:29:06 +00:00
parent
24b8cfb1c7
commit
7886284d4e
@ -191,7 +191,7 @@ class HFInferenceEndpointInvocationLayer(PromptModelInvocationLayer):
|
||||
:param stream_handler: The handler to invoke on each token.
|
||||
:param stop_words: The stop words to ignore.
|
||||
"""
|
||||
client = sseclient.SSEClient(response)
|
||||
client = sseclient.SSEClient(response) # type: ignore # requests.Response behaves like a generator but the typing does not reflect it
|
||||
tokens: List[str] = []
|
||||
try:
|
||||
for event in client.events():
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user