Mismatch between acceptable tools value in the Assistant API documentation and actual implementation

I noticed a mismatch between the documentation for the new Assistant. The assistant tool parameter on the following page: OpenAI Platform, shows the Types for tools as either code_interpreter, retrieval, or function. However, the actual type definition on the node/Typescript version uses a slight variation for retrieval, it uses retreival instead of retrieval.

As shown below:

TS2322: Type "" is not assignable to type "function" | "code_interpreter" | "retreival"


Good catch. I think help.openai.com might be best way to let them know about the problem.

ā€œIā€ before ā€œEā€ except after ā€œCā€ as they say! :wink:

1 Like