feat: inference generates messages, simplify inference run events, fix encoding bug
This commit is contained in:
1 parent
ee323fe660
commit
868e9b0545
5 files changed
+258
-309
No files matched your search
@@ -9,7 +9,7 @@ def encode_value(value):
|
||||
if isinstance(value, ToolSpec):
|
||||
return value.to_openai_dict()
|
||||
elif isinstance(value, Message):
|
||||
return {'type': value.type, 'content': encode_value(value.content)}
|
||||
return {'role': value.role, 'content': encode_value(value.content)}
|
||||
elif isinstance(value, ToolCall):
|
||||
json = {
|
||||
'id': value.id,
|
||||
|
||||
Reference in new issue
Block a user