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"