OpenAi api | How can I answer a question with an “uploaded” PDF
I’m working on a Python project where I use OpenAI’s GPT-4 API to analyze data from screenshots and PDFs.
openai.OpenAIError:The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable
I got the error “openai.OpenAIError: The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable”.
Why the new OpenAI model o1-preview doesn’t support system role?
Apparently, the new model OpenAI o1-preview
doesn’t support system
role:
Why the new OpenAI model o1-preview doesn’t support system role?
Apparently, the new model OpenAI o1-preview
doesn’t support system
role:
Why the new OpenAI model o1-preview doesn’t support system role?
Apparently, the new model OpenAI o1-preview
doesn’t support system
role:
Invalid content type. image_url is only supported by certain models
That’s my Python request:
openai.ChatCompletion issue
Seems I’m another person affected by the OpenAI migration issue. Can you please help me?
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?