mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-02 00:34:44 +00:00
disable assertion of dict type checking as an ad-hoc
This commit is contained in:
parent
fe48b9fb8c
commit
c486ece6fe
1 changed files with 2 additions and 1 deletions
|
@ -269,7 +269,8 @@ class OllamaInferenceAdapter(Inference, ModelsProtocolPrivate):
|
||||||
if "messages" in params:
|
if "messages" in params:
|
||||||
r = await self.client.chat(**params)
|
r = await self.client.chat(**params)
|
||||||
else:
|
else:
|
||||||
r = await self.client.generate(**params)
|
r = await self.client.generate(**params)
|
||||||
|
r = dict(r) #ad-hoc
|
||||||
assert isinstance(r, dict)
|
assert isinstance(r, dict)
|
||||||
|
|
||||||
if "message" in r:
|
if "message" in r:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue