#Generate word files
1 messages · Page 1 of 1 (latest)
@fathom sleet The APIs will only return text responses through JSON. Depending on what language you are programming in there are options to automatically format raw text into a .txt file, but for word, I have no idea. I know in C# there are libraries like Telerik that allow you to edit, and translate various types of word documents, but you will never recieve a .doc or .docx as a response from the API.
If you are interested in sending files to be queried, there are other methods through the API endpoints offered you can use, specifically for uploading here is a link to the API documentation for that - https://platform.openai.com/docs/api-reference/files/create
You are able to store files in a vector database offered by OpenAI to retrieve messages that can then likely be parsed to a .doc using a seperate library. Here is some documentation to help you will messaging for APIs - https://platform.openai.com/docs/api-reference/messages/createMessage as well as a link that helps show all of this working together, but for file search - https://platform.openai.com/docs/assistants/tools/file-search/quickstart