Passing CSV or .py Files Directly to Chat Completion Models

I was wondering if it’s possible to pass CSV or .py files directly to the Chat Completion models without the need for parsing, similar to how it can be done with the assistant. Any insights or workarounds would be greatly appreciated.

Welcome @aadityaporwal234,

As of now, you cannot directly send files to the chat completions endpoint. However, you can send the relevant content from these files that the model needs to answer the query.

Using function calling, you can give the model access to the file on your system and have it retrieve the relevant contents.