chore(ollama): switch to ty (#36571)

This commit is contained in:
Mason Daugherty
2026-04-06 15:07:09 -04:00
committed by GitHub
parent 555bdfbade
commit d7575ffac9
6 changed files with 37 additions and 81 deletions

View File

@@ -475,7 +475,7 @@ class OllamaLLM(BaseLLM):
**kwargs,
)
generations.append([final_chunk])
return LLMResult(generations=generations) # type: ignore[arg-type]
return LLMResult(generations=generations)
async def _agenerate(
self,
@@ -494,7 +494,7 @@ class OllamaLLM(BaseLLM):
**kwargs,
)
generations.append([final_chunk])
return LLMResult(generations=generations) # type: ignore[arg-type]
return LLMResult(generations=generations)
def _stream(
self,