disable assertion of dict type checking as an ad-hoc

This commit is contained in:
3DAlgoLab 2024-12-01 10:16:54 +09:00
parent fe48b9fb8c
commit c486ece6fe

View file

@ -269,7 +269,8 @@ class OllamaInferenceAdapter(Inference, ModelsProtocolPrivate):
if "messages" in params:
r = await self.client.chat(**params)
else:
r = await self.client.generate(**params)
r = await self.client.generate(**params)
r = dict(r) #ad-hoc
assert isinstance(r, dict)
if "message" in r: