64bit / async-openai

Rust library for OpenAI
https://docs.rs/async-openai
MIT License
1.09k stars 161 forks source link

Wrong type of function tools in Assistant #224

Closed WildBench closed 2 months ago

WildBench commented 3 months ago

When a function inserted in CreateRunRequest.tools, the tool of the RunObject is: AssistantTools::Code(AssistantToolsCode { type: "function" }) . I assume it be AssistantTools::Function(AssistantToolsFunction). Could you help give some hints? Thanks.