514 questions
-2 votes
1 answer
86 views
Why doesn’t ChatGPT MCP Connector send client_id in /token request even though AS requires client_secret_post?
I'm integrating my own MCP server with OAuth authentication through the ChatGPT Connector. During the authorization code exchange, the connector doesn’t send the client_id field in the POST request to ...
0 votes
1 answer
162 views
How to stream responses token-by-token from OpenAI ChatGPT API using Python? [closed]
I'm using OpenAI's API in Python, and right now the response is returned only after the full answer is generated. Example: response = client.chat.completions.create( model="gpt-4o-mini", ...
0 votes
0 answers
58 views
How to reduce latency in a context-aware chatbot with chart + dataset inputs
I’m building a chatbot for my research project that helps participants understand a chart. The chatbot runs on a website built with React. My goal is to make it feel just like using ChatGPT in the ...
0 votes
0 answers
80 views
How to stop ChatGPT Realtime from speaking JSON when using both text (JSON) and audio (TTS) in the same response?
I’m trying to use the ChatGPT Realtime API to recognize spoken commands and to have natural language conversation. What I need: User speaks a command (e.g. “Turn on the living room lights”). Note the ...
-6 votes
1 answer
294 views
Chat response when using function tools
I’ve set up a tool function to capture important bits of information from user text. import OpenAI from "openai"; import {Tool} from "openai/resources/responses/responses"; ...
0 votes
0 answers
46 views
CodeGPT: MODEL_RESPONSE_ERROR
I am having a CodeGPT Error Code given as below when trying to ask any question within VS Code IDE: Error Message: Error Code: MODEL_RESPONSE_ERROR I have the VS Code extension of CodeGPT: Chat & ...
0 votes
2 answers
411 views
"No existing trace found" error thrown in OpenAI Agents SDK
I am trying tutorial for OpenAI Agents SDK. https://openai.github.io/openai-agents-js/guides/tracing/#default-tracing github.com/openai/openai-agents-js/examples/nextjs/src/app/api/basic/route.ts ...
1 vote
1 answer
397 views
How to get input_audio_transcription when i use openai realtime api
I'm using OpenAI's Realtime API for voice conversations and have written Node.js code based on the documentation. https://platform.openai.com/docs/guides/realtime-conversations I'm able to receive the ...
-1 votes
1 answer
132 views
Using openai python api to upload a file to a chatgpt assistant
I get an error saying file_ids is an unexpected keyword when I try to upload a file in a message using the python openai package. I created a chatgpt-4o thread and I'm trying to upload the file in a ...
0 votes
1 answer
106 views
Openai Eval how do I add my tools, like I do for production?
My production environment loads tools, it contains my functions schema, it's important because that's the response is calling for the tools, so I can't really eval a response when the eval doesn't ...
0 votes
0 answers
30 views
Getting the error [92] NetworkUtility.shouldRetryException: Unexpected response code 400 for https://api.openai.com/v1/images/generations
I'm trying to generate image on my app and it would fail to generate, first time trying to add image generation in an app and not really sure if it's doable, have just been failing to generate the ...
0 votes
0 answers
40 views
FastAPI 422 Unprocessable Entity when using Postman (works in Swagger UI and curl) [duplicate]
I'm building a simple FastAPI POST endpoint that accepts a JSON body. Everything works perfectly when tested via the Swagger UI, Python's requests, and curl. But when I test the same request using ...
1 vote
1 answer
239 views
Is there a reliable way to loop through observations with the LLM packages in R?
I'm trying to use a few LLM packages in R to run a few types of prompts through a large number of observations (255 x three different prompts = 765 observations/LLM run). To ensure that the resulting ...
0 votes
0 answers
37 views
Streaming text from openai in next.js
"Streaming Text Formatting" – Formatting text that arrives in chunks from a stream. "Real-time Text Structuring" I am creating a web app using next.js and openai When I use openai ...
0 votes
0 answers
52 views
Assistant API, gpt-4o-mini PDF processing issue
I have a .NET 8 application. I am using Open AI's assistant API to fetch information from PDF. Below is how I have configured my application. Assistant Creation public async Task<string> ...