mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-06 13:33:37 +00:00
@@ -327,7 +327,7 @@ class ChatDeepInfra(BaseChatModel):
|
||||
if chunk:
|
||||
yield ChatGenerationChunk(message=chunk, generation_info=None)
|
||||
if run_manager:
|
||||
run_manager.on_llm_new_token(chunk.content) # type: ignore[arg-type]
|
||||
run_manager.on_llm_new_token(str(chunk.content))
|
||||
|
||||
async def _astream(
|
||||
self,
|
||||
@@ -349,7 +349,7 @@ class ChatDeepInfra(BaseChatModel):
|
||||
if chunk:
|
||||
yield ChatGenerationChunk(message=chunk, generation_info=None)
|
||||
if run_manager:
|
||||
await run_manager.on_llm_new_token(chunk.content) # type: ignore[arg-type]
|
||||
await run_manager.on_llm_new_token(str(chunk.content))
|
||||
|
||||
async def _agenerate(
|
||||
self,
|
||||
|
Reference in New Issue
Block a user