Relative Content

Tag Archive for pythonopenai-apichatgpt-api

How to make OpenAI Assistant API to retrieve a word document?

I’m trying to make my chatgpt through the api to answer a question and generate a word document with the answer’s content, but it says it can’t do it. I have also tried telling it to generate an empty word document but it doesn’t work either. When I ask it to generate a word document I get the response: I’m sorry, that’s not possible. How else can I assist you?

How to use OpenAI to process a large text file?

I have a daily file that I want to process using OpenAI API. This is a text file containing approximately 4 MB and 250,000 lines containing names. Using TikToken, I could calculate that each file as approximately 1.5 million tokens (model gpt-3.5-turbo).

Seeking Python guidance on uploading PDF to OpenAI and asking questions about its content using OpenAI APIs, similar to the ChatGPT GUI. Any insights?

I’m seeking guidance on how to utilize the OpenAI API to upload a PDF file for analysis. My goal is to enable OpenAI to analyze the PDF content, allowing me to subsequently pose questions related to that content, akin to the interactive querying process available in the ChatGPT GUI. How can I integrate PDF file uploading and analysis with OpenAI’s API to achieve this functionality?