Closed louis030195 closed 8 months ago
Actually CreateAssistantRequest
does not serialize function tools properly for some reason (ignore function prop)
i think it serialize all tools as code:
[Code(AssistantToolsCode { type: "function" }), Code(AssistantToolsCode { type: "retrieval" })]
Hello, thank you for the issue.
Actually AssitantTools
does implment Serialize
and Deserialize
traits - so you should be able to read write from DB.
https://github.com/64bit/async-openai/blob/main/async-openai/src/types/assistants/assistant.rs#L52
Not sure why custom deserialization needs to be implemented as in description of this issue?
hey
i'm saving AssistantTools to DB and have to do some hacks atm because serialization is not implemented i believe
something like this would solve the problem: