68 questions
-1
votes
0
answers
26
views
Forcing ChatGPT to warn about missing files in projects instead of silent substitution
ChatGPT recently launched the Project feature that allows uses upload files for subsequent use. An important limitation with this feature is that if a prompt includes a reference to a file name and no ...
-1
votes
0
answers
41
views
Zoom in ChartJS is not centered in the mouse position
I'm having trouble with the zoom using ChartJS. I'm using a canvas with a candle chart to display the stock price and other two canvas to display bars for the volume.
The problem is that when zooming, ...
0
votes
1
answer
67
views
Markdown with Code Blocks Appearing as Frontend UI Issue in ChatGPT Responses
I’m encountering a problem when using ChatGPT to generate Markdown that includes code blocks. Instead of returning proper Markdown output, the content appears to break and render as part of the ...
0
votes
0
answers
60
views
ChatGPT API : How to generate documents from other documents?
Context: I gather my notes in docs and pdfs, named Year 2022, Year 2023 and Year 2024.
Roughly 500 pages each, notes about everything, work, life lessons, journal entries…
Let's say that today, I want ...
0
votes
0
answers
68
views
github gh cli search for query
I'm looking to use the GitHub CLI (gh) or API to search within a specific organization for repositories containing "private": true in JSON files. I've tried several commands suggested by ...
1
vote
0
answers
115
views
How to make sure OpenAI object stays in its context in ASP.NET Core 6 MVC ajax calls
We have implemented OpenAI chatbot in our ASP.NET Core 6 MVC project. Installed OpenAI nuget package. It is working fine for one question, but observed than for next questions it is not staying in its ...
0
votes
1
answer
8k
views
Is there an image upload limit in ChatGPT Plus?
I'm currently using the free version of ChatGPT, and I can upload only 3 images per session. After that, I have to wait for 4 hours before the next session. I was considering upgrading to ChatGPT Plus ...
0
votes
0
answers
78
views
Is it possible to request a xls/csv file as payload to chatgpt via API?
I have simple sheet with some financial data like Date, Category, Amount, Name, Tag for personal expenses control.
My idea is to provide some questions about this sheet and chatgpt give me answers (eg....
1
vote
1
answer
170
views
Does the answer quality of OpenAI gpt4o (from API) change over time? [closed]
I'm creating an application that uses GPT-4 (via the OpenAI API) for visual question answering.
The problem is that tests using this module, which previously passed, have started to fail constantly ...
-1
votes
1
answer
125
views
Unable to properly generate dalle-3 logo images using python
If I am giving prompt in azure open ai studio > playground > dall-e-3 using api version 2024-05-01-preview" .it is generating perfect image but the same prompt if I am using it in my python ...
0
votes
0
answers
175
views
How to Upload a File to OpenAI API and Get a Summary Using .NET Core?
I'm trying to upload a file to the OpenAI API and get a summary of its content using .NET Core. I have written the following code, but I'm encountering issues with empty file content and extracting ...
1
vote
0
answers
44
views
ChatGPT API in Kotlin Android Studio gives me 404 error
Hello i am trying to make an android app with an assistant feature but I am getting 404 error when trying this code although my API key is correct and i have not reached any limit. Any ideas why? ...
0
votes
2
answers
327
views
How to integrate GPT-4 model hosted on Azure with the gptstudio package?
I am looking to integrate the OpenAI GPT-4 model into my application. Here are the details I have:
Endpoint: https://xxxxxxxxxxxxxxx.openai.azure.com/
Location/Region: yyyyyyyyyyyyyyyyyyyyyyyy
Key: **...
-1
votes
3
answers
389
views
gpt-4o model provider errror
I am working on a projejct and when i run an X function, it fails. When I log my eventData, I get an error "Failed to find a model provider for model [gpt-4o]. Is it because I'm not a paid user? ...
0
votes
1
answer
1k
views
BadRequestError: Context length exceeded the 8192 token limit, resulting in error code 400
I am building a chat flow in Azure AI studio. The goal is to have 3 index lookup and have the LLM compare the difference.
However, if I set top_k as 3, I would have the following error as the LLM ...
0
votes
2
answers
243
views
Unexpected result when sending a prompt containing HTML code to OpenAI API
I try to send a prompt containing raw text and HTML code in order to fix spelling errors.
E.g. a prompt would be:
fix spelling and grammar in the following html code
<p>this is som txt which ...
2
votes
2
answers
10k
views
"Failed to get upload status for /mnt/data/*filename*" Issue downloading files generated by ChatGPT
I'm working on a project where I need to extract employee information from an HTML file, save this data into a JSON file, and download employee images to a specific folder. I used ChatGPT to generate ...
-2
votes
1
answer
90
views
Issues with LLM Retrieving Passwords from Provided Passages
I'm using a language model (LLM) and providing it with a passage that contains the password for a specific website. Later, I'm asking the LLM to retrieve the password from the passage, similar to a ...
0
votes
1
answer
310
views
Formatting ChatGPT output results in last bullet in list losing formatting
I wrote the following code that tries to format ChatGPT output pasted into Word as PasteSpecial unformatted.
I had to do a double loop because everything would lose formatting as the loop progressed.
...
0
votes
0
answers
88
views
OpenAI API Integration in Django: Request Getting Lost on Server
I have integrated the OpenAI API into my Django project for generating dynamic descriptions for tables generated in my application. The workflow involves processing user input, generating tables, and ...
-1
votes
1
answer
503
views
Using ChatGPT4 Vision in ASP.NET Core [closed]
I am working on a web application with openai integration. I have the standard chat prompt and response implemented, but I am having issues accessing the vision api. All of the examples I can find are ...
0
votes
1
answer
1k
views
Output parse as list of dictionaries in LLM agent
I want to get the holidays and it's date from LLM agent as a list of dictionary. Following is the code I have used
from langchain.agents import AgentType,initialize_agent,load_tools
from langchain....
-1
votes
1
answer
72
views
Regenerate option in RAG system
I'm trying to implement a PPT content generator using the GPT-3.5-turbo-16k model from Azure OpenAI. The client wants to have a Regenerate option included in the UI, so if the client/user feels the ...
0
votes
0
answers
80
views
Troubleshooting OAuth integration with the GPT API
The OAuth integration for our system, including the GPT API, is encountering an issue where the GPT fails to call the token endpoint after correctly handling the Authorization process. This results in ...
0
votes
0
answers
69
views
GPT-4 doesn't seem to be set when I'm using the Node.js API
I have set up GPT-4 model for chat completions, and I sent a simple question through the API
"what is the model you using for generation text"? and i got the funny ansewer:
"I am ...
0
votes
0
answers
189
views
Text to speech in chat GPT streaming response with google cloud api in next js
I want to implement Google Cloud text-to-speech API in the streaming response of chat GPT in such a way that if first sentence i got call the API and audio will start play a second time 2 sentence ...
0
votes
0
answers
68
views
Getting Error while integrating the chat gpt into Power BI
(message as text ) as text => let url = "https://api.openai.com/v1/chat/completions", apikey = "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" , headers = [ #"...
0
votes
0
answers
93
views
How can I create multiple operations for the same domain on GPT Builder?
I am looking to feed back different responses from my server based on the query which a person enters on my custom franchising ChatGPT.
I have created an operation action which listens for the term &...
0
votes
0
answers
27
views
Warning message on Terminal for macOS Sonoma14.1 - What does this mean and how can I, and *should I*, bypass this? [duplicate]
I am a beginner Coming across a warning message that reads as follows:
WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate....
0
votes
1
answer
626
views
Passing questions to ChatGPT via URL
So officially you cannot pass ChatGPT questions via the browser URL (only via API), unofficially however, I've gotten very close by creating a user script, which essentially reads a parameter I pass ...
0
votes
1
answer
3k
views
Azure OpenAI and token limit
I want to use GPT model to analyze my data. Data is a suite of records (e.g. 1000 records) with 10 or even more properties. I want to say GPT (or other model):
"please, analyze this data and ...
0
votes
0
answers
44
views
human handoff Conversation transfero admin
I'm implementing a custom ChatGPT using LLM-index. I want to transfer the chat to the admin if the user asks anything about talking to the admin. Additionally, I want to store booking data (date, time,...
4
votes
0
answers
305
views
GPT-4 returning text-based prompt instead of returning the function call designated to do the same prompt
I'm using Azure OpenAI for implementing a conversational AI using GPT-4 to act as an assistant for resolving user queries. The assistant is supposed to follow a predefined set of instructions, ...
0
votes
0
answers
173
views
Unable to Identify GPT Model Version with OpenAI Chat API
import os
from openai import OpenAI
os.environ["OPENAI_API_KEY"] = "sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
client = OpenAI()
response = client.chat.completions.create(
model=&...
0
votes
1
answer
8k
views
How to change Github Copilot settings in VSCode to increase the token limit to 4098 or 8196 (as promised by Microsoft)?
How can I change Github Copilot settings in VSCode to increase the token limit to 4098 or 8196 as promised in the Copilot product announcements and documentation? OpenAI is supposed to provide a 32K ...
0
votes
0
answers
23
views
Managing Concurrent PDF Uploads: How to Dynamically Link Questions to Specific PDF Files for Seamless Communication with ChatGPT?
In my current project, I'm dealing with a scenario where multiple PDF files are being uploaded simultaneously. While implementing this functionality, I've encountered a challenge related to ...
0
votes
0
answers
2k
views
Langchain model to extract key information from pdf
I was looking for a solution to extract key information from pdf based on my instruction.
Here's what I've done:
Extract the pdf text using ocr
Use langchain splitter , CharacterTextSplitter, to ...
0
votes
0
answers
182
views
How to include browsing and web search in a prompt with few shot examples for ChatGPT?
I'm including few shot examples for a custom GPT with Web Browsing enabled. I would like ChatGPT to browse all user provided links before answering. What keywords should I include in the few shot ...
1
vote
0
answers
73
views
Java android output from chatgpt in commercial use
I have one Question Can I use a generated code from chatgpt for commercial use ?
If so, what do I have to do to be able to use the generated code ?
I try ask help desk but I do not have an answer and ...
0
votes
1
answer
1k
views
Redirect to login page after successful login at chatGPT openai
When ever I log into the openai.com I get an error in console and then get redirected to login page.
I've tried incognito mode and VPN services but it was not fixed
P.S I'm living in Iran right now.
0
votes
1
answer
2k
views
Chat GPT 4 API connect with PHP using file upload feature
I am trying to connect to gpt-4 API using php. I have a paid account and a valid API key. I use the API key all the time, with gpt-3.5.-turbo model.
I have created an assistant in my account. I want ...
1
vote
1
answer
669
views
Langchain - Chat History with Embedded Data not working
I'm trying to embed some data to gpt-4-1106-preview and chat on it. You may think like chatPDF. But my problem is, ChatGPT answers the question but doesn't remember our chat history.
Here is the code, ...
0
votes
1
answer
947
views
Ollama with Docker
Hi Can you help me to debug this:
I pushed llama2 docker and i'm calling it using a link https and it is up
I pulled llama2:70b to this instance.
I have "Ollama is running" in my browser i ...
1
vote
0
answers
99
views
How to keep ChatGPT responses within a topic?
I am working on a chat app which uses ChatGPT to give them some insights on a particular topic
Lets say Topic is : "Colors"
Now ChatGPT Responses depend upon what user has typed. How can I ...
1
vote
0
answers
1k
views
How to generate description for image using Chat GPT API using "gpt-4-vision-preview" in Laravel?
Here's with this code i want to generate description for the provided image with the help of Chat GPT API using "gpt-4-vision-preview" model. But the cide is not working. Please help.
<?...
28
votes
3
answers
36k
views
How can I process a pdf using OpenAI's APIs (GPTs)?
The web interface for ChatGPT has an easy pdf upload. Is there an API from openAI that can receive pdfs?
I know there are 3rd party libraries that can read pdf but given there are images and other ...
-2
votes
1
answer
697
views
Building public GPTs for own PDFs
I tried creating a GPT on OpenAI by uploading a PDF. It worked well from the UI and was able to answer questions. But when I sent the link to some one they need to be ChatGPT plus users to use it. So ...
0
votes
1
answer
224
views
OpenAi ChatGPT Start of EventStream Messages Not Valid
With php I implemented the ChatGPT API using StreamedResponse which worked fine so far but I started to encounter a strange behaviour I have no explanation for.
The first $data response is suddenly ...
1
vote
0
answers
286
views
Using webpilot API + GPT 4 or GPT 3.5 API
Has anyone tried to use the webpilot api with gpt 4 or gpt 3.5 api to be able to have prompts like “Create references for this topic or concept”?
Or basically have access to the internet through GPT4 ...
0
votes
1
answer
2k
views
How to include json data into prompt api
I want to send data to chatgpt via the gpt-4 api. My data is in json format and I'm having trouble sending it along with the prompt.
{
"model":"gpt-4",
"messages":[
...