id stringlengths 7 11 | source stringclasses 1
value | category stringclasses 11
values | title stringlengths 15 214 | text stringlengths 70 30.5k | url stringlengths 57 160 | tags stringlengths 3 113 | created_at int64 1.22B 1.79B |
|---|---|---|---|---|---|---|---|
se_79809290 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Training ChatGPT on Atlassian Products | Training ChatGPT on Atlassian Products
I created a custom GPT at work so employees can ask it questions about Confluence and Jira as expert knowledge about those products is limited to only a few people. In the spirit of making it stronger, what are the best ways to train the GPT? OpenAI does not have an Atlassian con... | https://stackoverflow.com/questions/79809290/training-chatgpt-on-atlassian-products | jira, openai-api, confluence, best-practices | 1,762,282,142 |
se_76864606 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Importing ConversationalRetrievalChain from langchain.chains isn't working | Importing ConversationalRetrievalChain from langchain.chains isn't working
I am trying to follow various tutorials on langchain and streamlit and I have encountered many problems regarding the names of imports. My main problem is that I can't seem to import ConversationalRetrievalChain from langchain.chains. This ... | https://stackoverflow.com/questions/76864606/importing-conversationalretrievalchain-from-langchain-chains-isnt-working | python, streamlit, openai-api, langchain, large-language-model | 1,691,555,679 |
se_76436635 | stackoverflow | ARTIFICIAL_INTELLIGENCE | CodePilot inside SQL Server SSMS | CodePilot inside SQL Server SSMS
As far as I can see the only options currently for copilot/ChatGPT SQL assistance is to generate queries outside of SSMS.
The real power would be within the SSMS, with access to table definitions, SP's etc. I could see this saving me hours of dev time. Anyone know if there's anything o... | https://stackoverflow.com/questions/76436635/codepilot-inside-sql-server-ssms | sql-server, openai-api, github-copilot | 1,686,274,072 |
se_79816500 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Why does my OpenAI API (ChatGPT) return 429 ‘rate limit exceeded’ even for low traffic? | Why does my OpenAI API (ChatGPT) return 429 ‘rate limit exceeded’ even for low traffic?
I’m integrating OpenAI’s GPT API using Node.js. My app runs fine for a while, but then randomly throws:
Error: 429 - You exceeded your current quota, please check your plan and billing details.
Even with very low traffic (1–2 requ... | https://stackoverflow.com/questions/79816500/why-does-my-openai-api-chatgpt-return-429-rate-limit-exceeded-even-for-low-t | node.js, openai-api, rate-limiting | 1,762,856,332 |
se_77225678 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Importing LLMChain from langchain root module is no longer supported | Importing LLMChain from langchain root module is no longer supported
I am trying to create an adventure game with AI, based on this tutorial https://www.youtube.com/watch?v=nhYcTh6vw9A&t=966s
However, I am getting error message like this:
Importing LLMChain from langchain root module is no longer supported.
This is ... | https://stackoverflow.com/questions/77225678/importing-llmchain-from-langchain-root-module-is-no-longer-supported | python, openai-api | 1,696,369,566 |
se_77527360 | stackoverflow | ARTIFICIAL_INTELLIGENCE | I am having a issue in WebSocket connection between client and server | I am having a issue in WebSocket connection between client and server
Trying to make a local webpage were multiple clients can chat with single Chatgpt bot.
I am running C++ backend implementation through Visual Studio Community and webpage from VS Code (Live Server).
This is my log from Chromebrowser
WebSocket is no... | https://stackoverflow.com/questions/77527360/i-am-having-a-issue-in-websocket-connection-between-client-and-server | javascript, c++, websocket, openai-api | 1,700,628,039 |
se_79809763 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Unable to use gpt-5 model in Spring Boot | Unable to use gpt-5 model in Spring Boot
I'm trying to use the gpt-5 model through Spring Boot's openAI. However, it keeps logging that I'm using gpt-4o-mini. Is gpt-5 unsupported or am I managing my dependencies incorrectly? Im specifying the the model in my application.properties, and I'm farily certain that Spring ... | https://stackoverflow.com/questions/79809763/unable-to-use-gpt-5-model-in-spring-boot | spring-boot, dependencies, pom.xml, openai-api, gpt-5 | 1,762,329,181 |
se_79799930 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Redis- OpenAI not able to tune with actual radis text retrieved from vector index | Redis- OpenAI not able to tune with actual radis text retrieved from vector index
I am trying to create a simple vector index for conversation AI application where i want to use radis as long-term memory.
i configured radis locally and created the index which ideally stores
"user_id"
"text"
"timestmap"
"embedding"
bel... | https://stackoverflow.com/questions/79799930/redis-openai-not-able-to-tune-with-actual-radis-text-retrieved-from-vector-inde | redis, openai-api, large-language-model, vector-database, langgraph | 1,761,469,378 |
se_77462232 | stackoverflow | ARTIFICIAL_INTELLIGENCE | ImportError: cannot import name 'OpenAI' from partially initialized module 'openai' (most likely due to a circular import) | ImportError: cannot import name 'OpenAI' from partially initialized module 'openai' (most likely due to a circular import)
I am trying to use the OpenAI Python SDK. I installed the latest version via pip and verified that it is installed via pip list. Now when I go to run the code and make a simple req... | https://stackoverflow.com/questions/77462232/importerror-cannot-import-name-openai-from-partially-initialized-module-open | openai-api | 1,699,641,940 |
se_79804800 | stackoverflow | ARTIFICIAL_INTELLIGENCE | TypeScript error using OpenAI Responses API — ResponseInputImage.detail required even though documentation doesn't show it | TypeScript error using OpenAI Responses API — ResponseInputImage.detail required even though documentation doesn't show it
I'm trying to use the OpenAI Responses API with image input (Vision).
Following the official documentation example. I am getting this type error
Type '{ type: "input_text"; text: string; } | ... | https://stackoverflow.com/questions/79804800/typescript-error-using-openai-responses-api-responseinputimage-detail-required | openai-api | 1,761,829,906 |
se_79804992 | stackoverflow | ARTIFICIAL_INTELLIGENCE | StackExchange.Redis.RedisTimeoutException on FT.SEARCH with Redis Stack vector index (HNSW) | StackExchange.Redis.RedisTimeoutException on FT.SEARCH with Redis Stack vector index (HNSW)
I'm building a .NET 8 demo that stores OpenAI text embeddings in Redis Stack and performs similarity search with FT.SEARCH (KNN over HNSW vector index).
The setup works for indexing and upserting data, but FT.SEARCH consistentl... | https://stackoverflow.com/questions/79804992/stackexchange-redis-redistimeoutexception-on-ft-search-with-redis-stack-vector-i | .net-core, redis, openai-api | 1,761,841,278 |
se_76908678 | stackoverflow | ARTIFICIAL_INTELLIGENCE | what is the difference between llm and llm chain in langchain? | what is the difference between llm and llm chain in langchain?
this is llm:
question=st.text_input("your question")
llm=OpenAI(temperature=0.9)
if prompt:
response=llm(prompt)
st.write(response)
then if we need to execute a prompt we have to crate llm chain:
from langchain.prompts import PromptTemplate
from l... | https://stackoverflow.com/questions/76908678/what-is-the-difference-between-llm-and-llm-chain-in-langchain | python, streamlit, openai-api, langchain, large-language-model | 1,692,127,952 |
se_79803573 | stackoverflow | ARTIFICIAL_INTELLIGENCE | The AI agent is joining my call but it is not responding | The AI agent is joining my call but it is not responding
The AI agent joins my call but doesn’t respond. I’m testing it using webhooks. I know that the real-time agent requires OpenAI credits, and I've already added them, but the issue is that no error message appears.
I am running the app and the webhook to start it
... | https://stackoverflow.com/questions/79803573/the-ai-agent-is-joining-my-call-but-it-is-not-responding | openai-api, getstream-io | 1,761,727,473 |
se_78378265 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Error adding chat history to LangChain Angular component | Error adding chat history to LangChain Angular component
I am trying to connect my Angular front-end to a LangChain Agent Executor. I presently receive the following error message:
Traceback (most recent call last):
File "/workspace/.pyenv_mirror/user/current/lib/python3.8/site-packages/uvicorn/protocols/http/http... | https://stackoverflow.com/questions/78378265/error-adding-chat-history-to-langchain-angular-component | angular, openai-api, langchain | 1,713,959,806 |
se_77469097 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How can I process a pdf using OpenAI's APIs (GPTs)? | 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 important information in a pdf, it might be better if a model like... | https://stackoverflow.com/questions/77469097/how-can-i-process-a-pdf-using-openais-apis-gpts | python, machine-learning, pdf, openai-api, chat-gpt-4 | 1,699,795,544 |
se_78153154 | stackoverflow | ARTIFICIAL_INTELLIGENCE | AI model answering questions outside of the context provided in the System Prompt (RAG process) | AI model answering questions outside of the context provided in the System Prompt (RAG process)
I am building an app using the RAG process. I have loaded some private documents and I am able to have a conversation with the AI model (I am using Open AI) about the data in the private documents and I am receiving satisfa... | https://stackoverflow.com/questions/78153154/ai-model-answering-questions-outside-of-the-context-provided-in-the-system-promp | spring-boot, openai-api, retrieval-augmented-generation, spring-ai | 1,710,327,055 |
se_79791017 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Cannot get token logprobs while using langchain structured output | Cannot get token logprobs while using langchain structured output
I am using langchain to call an LLM and I want to get the logprobs for each token.
I want to get them after doing this:
from langchain_openai import ChatOpenAI
from pydantic import BaseModel
class ResponseFormat(BaseModel):
question_index: int
... | https://stackoverflow.com/questions/79791017/cannot-get-token-logprobs-while-using-langchain-structured-output | python, openai-api, langchain, large-language-model, litellm | 1,760,521,989 |
se_77338572 | stackoverflow | ARTIFICIAL_INTELLIGENCE | ImportError: No module named langchain.llms | ImportError: No module named langchain.llms
I used the following import statetement:
from langchain.llms import OpenAI
And I am getting the following error:
pycode python main.py Traceback (most recent call last): File
"main.py", line 1, in
from langchain.llms import openai ImportError: No module named langchain... | https://stackoverflow.com/questions/77338572/importerror-no-module-named-langchain-llms | python, openai-api, langchain | 1,697,946,680 |
se_79767369 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Agent outputType not working when using zodSchema | Agent outputType not working when using zodSchema
When working using openai agents I can't provide a outputType without getting this error
error: {
message: "Invalid value: 'object'. Supported values are: 'json_object', 'text', and 'json_schema'.",
type: "invalid_request_error",
param: "text.format.type",
code... | https://stackoverflow.com/questions/79767369/agent-outputtype-not-working-when-using-zodschema | openai-api, openai-agents | 1,758,114,491 |
se_78058770 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to properly handle exceptions raised in the __aiter__ method of an asynchronous iterator in FastAPI? | How to properly handle exceptions raised in the __aiter__ method of an asynchronous iterator in FastAPI?
I'm working on a project using FastAPI and OpenAI's GPT-3 API, where I'm implementing an asynchronous iterator (aiter) to stream responses from the GPT-3 API to the frontend. However, I'm facing difficulties in han... | https://stackoverflow.com/questions/78058770/how-to-properly-handle-exceptions-raised-in-the-aiter-method-of-an-asynchron | python, error-handling, stream, fastapi, openai-api | 1,708,925,429 |
se_79740827 | stackoverflow | ARTIFICIAL_INTELLIGENCE | how to download the files generated by Azure OpenAi Assistant Code Interpreter in streaming mode | how to download the files generated by Azure OpenAi Assistant Code Interpreter in streaming mode
In streaming mode, there is an event "response.output_text.annotation.added",
the data looks like
{
"type": "response.output_text.annotation.added",
"sequence_number": 229,
"item_id": "msg_68a5872f058881a08BBBB... | https://stackoverflow.com/questions/79740827/how-to-download-the-files-generated-by-azure-openai-assistant-code-interpreter-i | openai-api, azure-openai | 1,755,678,788 |
se_79784563 | stackoverflow | ARTIFICIAL_INTELLIGENCE | OpenAI Agents Builder Error: MCP requires input.message_ids, but My agent doesn't provide message_ids | OpenAI Agents Builder Error: MCP requires input.message_ids, but My agent doesn't provide message_ids
I'm trying out the new Agents Builder. I tried connecting an Agent to an MCP
When you click the link from Agent to MCP, it will say the error message above.
It also says that the target input schema must be:
messa... | https://stackoverflow.com/questions/79784563/openai-agents-builder-error-mcp-requires-input-message-ids-but-my-agent-doesn | openai-api, openai-agents | 1,759,841,941 |
se_79775787 | stackoverflow | ARTIFICIAL_INTELLIGENCE | OpenAI API with Express/TypeScript throws Missing credentials after moving API key to .env | OpenAI API with Express/TypeScript throws Missing credentials after moving API key to .env
I’m building an app with NodeJs, Express and TypeScript.
At first, I hardcoded the OPENAI_API_KEY directly in my code for testing, and it worked fine.
Now, I’ve moved the key to a .env file because I want to push the code to a r... | https://stackoverflow.com/questions/79775787/openai-api-with-express-typescript-throws-missing-credentials-after-moving-api-k | node.js, typescript, express, openai-api, dotenv | 1,758,883,388 |
se_79786607 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Why does 'chatkit' not exist on OpenAI object? | Why does 'chatkit' not exist on OpenAI object?
I am trying to setup ChatKit example. I am following the instructions, and it says to use the OpenAI Python SDK 2.2.0. When i run the server example on that page:
from fastapi import FastAPI
from pydantic import BaseModel
from openai import OpenAI
import os
app... | https://stackoverflow.com/questions/79786607/why-does-chatkit-not-exist-on-openai-object | python, openai-api, chatkit | 1,760,024,694 |
se_77278712 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Azure openai The API deployment for this resource does not exist | Azure openai The API deployment for this resource does not exist
I am making sequential calls to Azure OpenAI GPT-4 from a python code. The token size of each call is approx 5000 tokens (inclusing input, prompt and output). The first call goes good. But the API is failing everytime on the 2nd request throwing the belo... | https://stackoverflow.com/questions/77278712/azure-openai-the-api-deployment-for-this-resource-does-not-exist | azure, openai-api, azure-openai, gpt-4 | 1,697,097,317 |
se_79773742 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Restricting Gemini Web Search to a Single Domain – Possible? | Restricting Gemini Web Search to a Single Domain – Possible?
I’m experimenting with the Gemini web search model and have a very specific use case.
I need Gemini to perform retrieval only within a single specified website (e.g., example.com).
No external sources or general web search results should be considered.
Ideal... | https://stackoverflow.com/questions/79773742/restricting-gemini-web-search-to-a-single-domain-possible | google-api, openai-api, google-gemini | 1,758,719,249 |
se_79782309 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to reduce latency in a context-aware chatbot with chart + dataset inputs | 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 browser: users upload a chart image and datas... | https://stackoverflow.com/questions/79782309/how-to-reduce-latency-in-a-context-aware-chatbot-with-chart-dataset-inputs | chatbot, openai-api, prompt, large-language-model, chatgpt-api | 1,759,553,818 |
se_76791149 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to stream the response from LangChain QAMapReduceChain | How to stream the response from LangChain QAMapReduceChain
I am using Langchain to interact with a long piece of text. The text is split into chunks, which are passed in as the docs variable below.
I have set up a chain that streams my response, however I am finding that handleLLMNewToken is called whilst OpenAI is re... | https://stackoverflow.com/questions/76791149/how-to-stream-the-response-from-langchain-qamapreducechain | typescript, openai-api, langchain | 1,690,580,269 |
se_79752212 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Codex with API key on Macbook not working | Codex with API key on Macbook not working
I had codex originally authenticate via openAI web. Since i hit my limit i would now want to upgrade to the "pay per use" via api key. After following all the steps on https://github.com/openai/codex/blob/main/docs/authentication.md#usage-based-billing-alternative-use-an-opena... | https://stackoverflow.com/questions/79752212/codex-with-api-key-on-macbook-not-working | terminal, global-variables, openai-api, api-key, codex | 1,756,707,820 |
se_76201533 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How does the token for openai works and how can I use less tokens? | How does the token for openai works and how can I use less tokens?
I'm currently trying to write my own "AI" with the help of OpenAI. I have followed Langchain and managed to end up having this code:
import os
import re
import discord
import requests
from discord.ext import commands
from langchain.chains import Conve... | https://stackoverflow.com/questions/76201533/how-does-the-token-for-openai-works-and-how-can-i-use-less-tokens | python-3.x, discord.py, openai-api, langchain | 1,683,555,918 |
se_77725308 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Azure OpenAI Chat how do I connect with an entire SQL Table? | Azure OpenAI Chat how do I connect with an entire SQL Table?
I'm playing around with the Chat with your data service from Azure, and I've been trying to connect it to a table from a sample database with the cognitive search indexation. The problem is that when I talk with the chatbot it always says that only 20 docume... | https://stackoverflow.com/questions/77725308/azure-openai-chat-how-do-i-connect-with-an-entire-sql-table | azure, openai-api, azure-openai | 1,703,744,577 |
se_76602355 | stackoverflow | ARTIFICIAL_INTELLIGENCE | I am using langchain to chat with my database I want json format as output which includes fieldname as key | I am using langchain to chat with my database I want json format as output which includes fieldname as key
I am working on Natural language to query your SQL Database using LangChain powered by ChatGPT.I am using Langchain's SQL database to chat with my database, it returns answers in the sentence I want the answer i... | https://stackoverflow.com/questions/76602355/i-am-using-langchain-to-chat-with-my-database-i-want-json-format-as-output-which | python, machine-learning, nlp, openai-api, langchain | 1,688,366,209 |
se_79777128 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Realtime API - WebRTC with Unified Interface is Not Working | Realtime API - WebRTC with Unified Interface is Not Working
Example is not working: https://platform.openai.com/docs/guides/realtime-webrtc
Post request returns this vague error:
{
"message": "",
"type": "",
"code": "",
"param": ""
}
app.post("/session", async (req, res) => {
const fd = new FormData();
fd... | https://stackoverflow.com/questions/79777128/realtime-api-webrtc-with-unified-interface-is-not-working | openai-api | 1,759,035,023 |
se_78501938 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to stop generating response in OpenAI library for Python? | How to stop generating response in OpenAI library for Python?
I am using Completions in OpenAI library for Python. Something like this:
self.__response = self.client.chat.completions.create(
model='gpt-4',
messages=messages,
stream=True
)
After this I just loop through chunks:
for chunk in self.__resp... | https://stackoverflow.com/questions/78501938/how-to-stop-generating-response-in-openai-library-for-python | python, openai-api | 1,716,105,496 |
se_79772098 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Chat response when using function tools | 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";
console.log(process.env.OPENAI_API_KEY);
const client = new OpenAI();
const model = "gpt-5";
const tools... | https://stackoverflow.com/questions/79772098/chat-response-when-using-function-tools | typescript, openai-api, chatgpt-api | 1,758,579,587 |
se_79771777 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Schema Guided Reasoning to dynamically force LLM to select one of the values from list | Schema Guided Reasoning to dynamically force LLM to select one of the values from list
I am trying to use a Schema Guided Reasoning approach to develop a system which will classify for me product into one of the categories from predefined list based on its name\description. For that I use pydantic standup as follows:
... | https://stackoverflow.com/questions/79771777/schema-guided-reasoning-to-dynamically-force-llm-to-select-one-of-the-values-fro | openai-api, pydantic, large-language-model, typing | 1,758,553,700 |
se_79767829 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Implementing a custom LiteLlm for Google agent development kit that supports tool calls | Implementing a custom LiteLlm for Google agent development kit that supports tool calls
I'm trying to implement a custom LiteLlm wrapper to access an LLM endpoint. This is the code I have:
import os
import litellm
import requests
from dotenv import load_dotenv
from litellm import CustomLLM
from litellm.types.utils imp... | https://stackoverflow.com/questions/79767829/implementing-a-custom-litellm-for-google-agent-development-kit-that-supports-too | openai-api, agent, azure-openai, litellm | 1,758,144,903 |
se_76800382 | stackoverflow | ARTIFICIAL_INTELLIGENCE | OpenAI from Langchain requires "openai_api_key" even though it is loaded | OpenAI from Langchain requires "openai_api_key" even though it is loaded
this is my code:
import os
from dotenv import load_dotenv,find_dotenv
load_dotenv(find_dotenv())
print(os.environ.get("OPEN_AI_KEY"))
from langchain.llms import OpenAI
llm=OpenAI(model_name="text-davinci-003",temperature=0.7,max_token... | https://stackoverflow.com/questions/76800382/openai-from-langchain-requires-openai-api-key-even-though-it-is-loaded | python, python-3.x, openai-api, langchain, large-language-model | 1,690,771,130 |
se_79663364 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to get input_audio_transcription when i use openai realtime api | 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 generated audio and text from OpenAI through the r... | https://stackoverflow.com/questions/79663364/how-to-get-input-audio-transcription-when-i-use-openai-realtime-api | openai-api, chatgpt-api, openai-whisper | 1,749,724,567 |
se_79677279 | stackoverflow | ARTIFICIAL_INTELLIGENCE | unable to update OpenAI Realtime session (transcription prompt) | unable to update OpenAI Realtime session (transcription prompt)
I want to update the input_audio_transcription prompt during the Realtime session as mentioned here :
I use the following code :
const transcriptionUpdate = {
type: "transcription_session.update",
session: {
input_audio_format: "g711_... | https://stackoverflow.com/questions/79677279/unable-to-update-openai-realtime-session-transcription-prompt | openai-api | 1,750,754,889 |
se_76870448 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Error with model.list() in OpenAI Python Library | Error with model.list() in OpenAI Python Library
When attempting to use model.list(), the library encounters an authentication error due to the incorrect configuration of the API key. I've been continuously receiving the error message.
import openai
openai.api_key = "your_api_key"
models = openai.Model.list()
print... | https://stackoverflow.com/questions/76870448/error-with-model-list-in-openai-python-library | python, openai-api | 1,691,606,326 |
se_78948310 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Open-ai pydantic ModuleNotFoundError | Open-ai pydantic ModuleNotFoundError
Trying to use open ai 1.43 library in termux through pydroid3 but getting moduleNotFound error
Since I cannot install openai directly in pydroid3 since it needs a rust to be installed.i decided to copy the sitepackages of termux to a shared storage so it can be accessed by pydroid3... | https://stackoverflow.com/questions/78948310/open-ai-pydantic-modulenotfounderror | android, python-3.x, openai-api, pydroid | 1,725,448,193 |
se_79767063 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Microsoft.SemanticKernel + OpenAI .NET: ChatClient.CompleteChatAsync throws HTTP 500 (server_error) — how can I debug/fix this? | Microsoft.SemanticKernel + OpenAI .NET: ChatClient.CompleteChatAsync throws HTTP 500 (server_error) — how can I debug/fix this?
I’m calling OpenAI via Microsoft Semantic Kernel (C#/.NET). The call fails with an HTTP 500 (server_error) coming from OpenAI.Chat.ChatClient.CompleteChatAsync. The exception is wrapped by Mi... | https://stackoverflow.com/questions/79767063/microsoft-semantickernel-openai-net-chatclient-completechatasync-throws-http | c#, .net, openai-api | 1,758,098,253 |
se_79663606 | stackoverflow | ARTIFICIAL_INTELLIGENCE | LiveKit Agent Isn't Picking Up Chat Message From Room Participant | LiveKit Agent Isn't Picking Up Chat Message From Room Participant
I've built a Python Live Kit agent that uses the Open AI real time API so that my users can have a voice conversation with the AI. I also want the user to be able to send a text message to the bot if they decide they don't want to speak. In my prot... | https://stackoverflow.com/questions/79663606/livekit-agent-isnt-picking-up-chat-message-from-room-participant | openai-api, livekit | 1,749,734,723 |
se_79761005 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to distinguish an OpenAI API "quota exceeded" 429 from a standard rate limit 429? | How to distinguish an OpenAI API "quota exceeded" 429 from a standard rate limit 429?
I'm integrating the OpenAI API into my application and keep encountering a 429 error with the message "You exceeded your current quota, please check your plan and billing details".
I understand this is a rate-limiting/quota... | https://stackoverflow.com/questions/79761005/how-to-distinguish-an-openai-api-quota-exceeded-429-from-a-standard-rate-limit | python, error-handling, openai-api, rate-limiting | 1,757,517,083 |
se_72663133 | stackoverflow | ARTIFICIAL_INTELLIGENCE | GPT-3 fine tuning Error: Incorrect API key provided | GPT-3 fine tuning Error: Incorrect API key provided
I'm following this tutorial to fine-tune a GPT-3 model. However, when I run this part of the code:
# Enter credentials
%env OPENAI_API_KEY= "<MY OPENAI KEY>"
!openai api fine_tunes.create \
-t dw_train.jsonl \
-v dw_valid.jsonl \
-m $model \
--n_epochs $n_epochs \
--... | https://stackoverflow.com/questions/72663133/gpt-3-fine-tuning-error-incorrect-api-key-provided | python, openai-api, gpt-3 | 1,655,488,433 |
se_79225401 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to use AzureOpenai instance model inside RAGAS - [ not langchain] | How to use AzureOpenai instance model inside RAGAS - [ not langchain]
I am having these secrets and this is how I use gpt-4o model:
from ragas import SingleTurnSample
from ragas.metrics import ResponseRelevancy
import os
from openai import AzureOpenAI
from ragas import evaluate
import requests
To get the secret key... | https://stackoverflow.com/questions/79225401/how-to-use-azureopenai-instance-model-inside-ragas-not-langchain | python-3.x, openai-api, large-language-model, ragas | 1,732,598,201 |
se_78697541 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Cannot assign to property 'search' which has only a getter | Cannot assign to property 'search' which has only a getter
I am using an OpenAI Assistant with my own contextual data to get contextual responses to my queries:
const openai = new OpenAI({ apiKey: xxx });
async function queryNoFileSearch(prompt: string): Promise<string> {
const assistant = await openai.be... | https://stackoverflow.com/questions/78697541/cannot-assign-to-property-search-which-has-only-a-getter | react-native, async-await, openai-api, openai-assistants-api | 1,719,928,728 |
se_79748920 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to pass dynamic parameters (eg, index name, key) from Semantic Kernel to MCP server without LLM decision-making | How to pass dynamic parameters (eg, index name, key) from Semantic Kernel to MCP server without LLM decision-making
Problem Description:
I'm building a production-grade enterprise application using Semantic Kernel with Model Context Protocol (MCP) servers for vector search capabilities. I need to dynamically pass an A... | https://stackoverflow.com/questions/79748920/how-to-pass-dynamic-parameters-eg-index-name-key-from-semantic-kernel-to-mcp | azure, openai-api, azure-ai, model-context-protocol, semantic-kernel | 1,756,375,450 |
se_77127234 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Using Delphi application to ask question to ChatGpt | Using Delphi application to ask question to ChatGpt
I'm interfacing with the ChatGPT API to create an application using Delphi 11, where the purpose is send data to the genAI tool, and then get a response related to it.
This is the code (but I get SSL protocol error on httpClient.Post as error:1409442E:SSL routines:SS... | https://stackoverflow.com/questions/77127234/using-delphi-application-to-ask-question-to-chatgpt | delphi, openai-api | 1,695,040,232 |
se_79746907 | stackoverflow | ARTIFICIAL_INTELLIGENCE | No model seems to support supports_parallel_function_calling to LiteLLM | No model seems to support supports_parallel_function_calling to LiteLLM
I'm using LiteLLM in a Python project and I'm testing support for parallel function calling on different models.
Here’s a minimal reproducible example:
from litellm import completion
from litellm.utils import supports_function_calling, supports_pa... | https://stackoverflow.com/questions/79746907/no-model-seems-to-support-supports-parallel-function-calling-to-litellm | python, openai-api, litellm | 1,756,215,553 |
se_79747045 | stackoverflow | ARTIFICIAL_INTELLIGENCE | langchain4j mcp & memory - tool call | langchain4j mcp & memory - tool call
How does langhchain4j know how to generate the arguments for MCP tool calling?
I have implemented an chatAgent with MessageWindowChatMemory.withMaxMessages(50).
The tools are added dynamically from an MCP server via McpToolProvider.
I am doing turn conversation with the chatAge... | https://stackoverflow.com/questions/79747045/langchain4j-mcp-memory-tool-call | openai-api, micronaut, langchain4j | 1,756,223,875 |
se_78459874 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Frozen os while using os.environ["OPENAI_API_KEY"] | Frozen os while using os.environ["OPENAI_API_KEY"]
File "C:\Users\dhruv\Desktop\langchain\app.py", line 9, in <module>
os.environ["OPENAI_API_KEY"]=os.getenv("OPENAI_API_KEY")
~~~~~~~~~~^^^^^^^^^^^^^^^^^^
File "<frozen os>", line 690, in __setitem__
File "<frozen os>", line 750, in check_str
Type... | https://stackoverflow.com/questions/78459874/frozen-os-while-using-os-environopenai-api-key | openai-api, langchain | 1,715,341,253 |
se_79746015 | stackoverflow | ARTIFICIAL_INTELLIGENCE | OpenAI RealTime function calls not executing | OpenAI RealTime function calls not executing
Functions are not being called by the OpenAI Realtime API despite being properly defined and registered. The AI assistant responds to user requests but never invokes any of the available functions, including simple test functions.
Environment & Setup
Using OpenAI Realtime ... | https://stackoverflow.com/questions/79746015/openai-realtime-function-calls-not-executing | typescript, openai-api | 1,756,140,719 |
se_79480448 | stackoverflow | ARTIFICIAL_INTELLIGENCE | What is the default value of temperature parameter in ChatOpenAI in Langchain? | What is the default value of temperature parameter in ChatOpenAI in Langchain?
What is the default value of the temperature parameter when I create an instance of ChatOpenAI in Langchain?
from langchain_openai import ChatOpenAI
llm = ChatOpenAI(model="gpt-4o")
print(llm.temperature) # it is None!
llm=ChatOpenAI(mod... | https://stackoverflow.com/questions/79480448/what-is-the-default-value-of-temperature-parameter-in-chatopenai-in-langchain | python, openai-api, langchain | 1,740,988,876 |
se_79677814 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Invalid JSON error using n8n to create a leadscraper | Invalid JSON error using n8n to create a leadscraper
I have attached my two JSON files for the main workflow and subworkflow. My error is happening in the JSON node in the subworkflow. It gives the error message:
The 'JSON Output' in item 0 contains invalid JSON.
I am not sure where to go from here. I am trying to m... | https://stackoverflow.com/questions/79677814/invalid-json-error-using-n8n-to-create-a-leadscraper | artificial-intelligence, openai-api, apify, n8n | 1,750,777,888 |
se_76843997 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Integrating ChatGPT and Google Assistant on Google Home devices using n8n | Integrating ChatGPT and Google Assistant on Google Home devices using n8n
I hope this is sufficient detail, but feel free to let me know if more information would help. This is a "Can I accomplish this and if so, how?" question.
What I want to happen:
I say, "Hey Google, ask GPT " then Google sends the query to my n8n... | https://stackoverflow.com/questions/76843997/integrating-chatgpt-and-google-assistant-on-google-home-devices-using-n8n | oauth-2.0, integration, openai-api, google-home, n8n | 1,691,280,607 |
se_79737395 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Correct input for OpenAI embeddings API? | Correct input for OpenAI embeddings API?
I'm using the OpenAi text-embedding-3-small model to create embeddings for each product category in a file. In total it's about 6000 product categories and they look like this:
Vehicles & Parts > Vehicle Parts & Accessories > Vehicle Safety & Security > Off-Road & All-Terrain V... | https://stackoverflow.com/questions/79737395/correct-input-for-openai-embeddings-api | python, artificial-intelligence, openai-api, azure-openai, openaiembeddings | 1,755,368,212 |
se_79738038 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Model returns mutiple tools to call even when `parallel_tool_calls` is set to `False` | Model returns mutiple tools to call even when `parallel_tool_calls` is set to `False`
I’m experimenting with the OpenAI Agents SDK (Python) and ran into unexpected behavior with parallel_tool_calls.
According to the docs, setting parallel_tool_calls=False should ensure that the model makes at most one tool call per tu... | https://stackoverflow.com/questions/79738038/model-returns-mutiple-tools-to-call-even-when-parallel-tool-calls-is-set-to-f | python, sdk, openai-api, google-gemini, tool-calling | 1,755,456,498 |
se_79731216 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Function call with OpenAI Agent SDK with Ollama fails | Function call with OpenAI Agent SDK with Ollama fails
I'm having trouble getting function call working with OpenAI Agent SDK and Ollama. Suggestions/Solutions would be of great help. Thank you.
Using UV, python-12 and added "openai>=1.68.2" and "openai-agents>=0.0.15" dependencies to the project.
Below is my code:
fro... | https://stackoverflow.com/questions/79731216/function-call-with-openai-agent-sdk-with-ollama-fails | python, openai-api, agent, openai-agents | 1,754,829,688 |
se_79730876 | stackoverflow | ARTIFICIAL_INTELLIGENCE | GPT-OSS does not return valid structured output with Langchain | GPT-OSS does not return valid structured output with Langchain
I'm using LangChain with GPT-OSS models (served via Hyperbolic) to generate and evaluate answers.
My eval model is supposed to return a JSON object (using a Pydantic schema with the class name 'EvalResult') with four integer fields, but often returns non-J... | https://stackoverflow.com/questions/79730876/gpt-oss-does-not-return-valid-structured-output-with-langchain | openai-api, pydantic, langchain | 1,754,772,410 |
se_79526520 | stackoverflow | ARTIFICIAL_INTELLIGENCE | zodResponseFormat not working with OpenAI Responses interface | zodResponseFormat not working with OpenAI Responses interface
If trying to use zodResponseFormat to setup structured outputs (as you did with other OpenAI interfaces) you may get an error that says No overload matches this call.
How can you use zod with structured outputs and the new openai.responses.create interface? | https://stackoverflow.com/questions/79526520/zodresponseformat-not-working-with-openai-responses-interface | openai-api, zod | 1,742,588,365 |
se_78122648 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How do I get a list of all available OpenAI models? | How do I get a list of all available OpenAI models?
Can anyone find the cURL command to get a list of all available OpenAI models? I've been looking for like 10 minutes and can't find it. | https://stackoverflow.com/questions/78122648/how-do-i-get-a-list-of-all-available-openai-models | openai-api | 1,709,826,272 |
se_76187256 | stackoverflow | ARTIFICIAL_INTELLIGENCE | ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with LibreSSL 2.8.3 | ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with LibreSSL 2.8.3
After pip install openai, when I try to import openai, it shows this error:
the 'ssl' module of urllib3 is compile with LibreSSL not OpenSSL
I just followed a tutorial on a project about using A... | https://stackoverflow.com/questions/76187256/importerror-urllib3-v2-0-only-supports-openssl-1-1-1-currently-the-ssl-modu | python, openai-api, urllib3 | 1,683,349,902 |
se_79718532 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How do I properly decode French characters from the OpenAI API JSON in Swift? | How do I properly decode French characters from the OpenAI API JSON in Swift?
I am having trouble decoding French outputs from OpenAPI. Issue occurs in the terminal as well as in Xcode, where all of the French special characters are shown in Hexcode, event though I am using the utf8 encoding protocol. Not sure what ... | https://stackoverflow.com/questions/79718532/how-do-i-properly-decode-french-characters-from-the-openai-api-json-in-swift | swift, utf-8, openai-api | 1,753,789,068 |
se_79717965 | stackoverflow | ARTIFICIAL_INTELLIGENCE | AsyncImage not loading image, error with 'unimplemented' | AsyncImage not loading image, error with 'unimplemented'
I have been trying to separate out tasks because OpenAI can take some time to generate images, so I have a page that allows you to input items and it will build a recipe for you. I originally had it so it would also generate an image of the dish while bu... | https://stackoverflow.com/questions/79717965/asyncimage-not-loading-image-error-with-unimplemented | android, node.js, android-jetpack-compose, openai-api, coil | 1,753,743,956 |
se_74711107 | stackoverflow | ARTIFICIAL_INTELLIGENCE | OpenAI API continuing conversation in a dialogue | OpenAI API continuing conversation in a dialogue
I am playing around with the openAI API and I am trying to continue a conversation. For example:
import openai
openai.api_key = mykey
prompt= "write me a haiku"
response = openai.Completion.create(engine="text-davinci-001",
... | https://stackoverflow.com/questions/74711107/openai-api-continuing-conversation-in-a-dialogue | python, openai-api | 1,670,380,288 |
se_75942269 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to generate gpt-3 completion beyond max token limit | How to generate gpt-3 completion beyond max token limit
I want to ask if there's a way to properly use OpenAI API to generate complete responses even after the max token limit.
I'm using the official OpenAI python package but can't find any way to replicate that in GPT-3 (text-davinci-003) since it doesn't support cha... | https://stackoverflow.com/questions/75942269/how-to-generate-gpt-3-completion-beyond-max-token-limit | python, openai-api, gpt-3, chatgpt-api | 1,680,714,707 |
se_77776950 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Azure openai speech to text -Whisper "code":"404","message": "Resource not found" | Azure openai speech to text -Whisper "code":"404","message": "Resource not found"
I am trying to transcribe an audio file by using Whisper through Azure OpenAI key, endpoints, deployment.
I am using right credentials and deploying in a valid region for Whisper, with their permis... | https://stackoverflow.com/questions/77776950/azure-openai-speech-to-text-whisper-code404-message-resource-not-found | python, azure, openai-api, speech-to-text, azure-openai | 1,704,694,141 |
se_75795242 | stackoverflow | ARTIFICIAL_INTELLIGENCE | OpenAI Whisper API: Get token/minute usage from response | OpenAI Whisper API: Get token/minute usage from response
I am using openAI whisper to convert voice to text: https://platform.openai.com/docs/api-reference/audio/create
the json response is
{
"text": "some text"
}
the response data return only one text field and has no other information
I want to know how much toke... | https://stackoverflow.com/questions/75795242/openai-whisper-api-get-token-minute-usage-from-response | openai-api, openai-whisper | 1,679,345,910 |
se_79624529 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Twilio Media Streams + ElevenLabs + OpenAI (Python): Call Connects, Transcripts Work, But Caller Hears Silence | Twilio Media Streams + ElevenLabs + OpenAI (Python): Call Connects, Transcripts Work, But Caller Hears Silence
I’ve built a real-time AI voice assistant using Twilio Media Streams, OpenAI GPT, and ElevenLabs, with audio handled in Python using Quart + Hypercorn. The app connects, transcribes voices from the LL, genera... | https://stackoverflow.com/questions/79624529/twilio-media-streams-elevenlabs-openai-python-call-connects-transcripts | python, websocket, twilio, openai-api, elevenlabs | 1,747,373,331 |
se_79705278 | stackoverflow | ARTIFICIAL_INTELLIGENCE | [Spring AI]: Use the connection property: spring.ai.openai.api-key or spring.ai.openai.speech.api-key property | [Spring AI]: Use the connection property: spring.ai.openai.api-key or spring.ai.openai.speech.api-key property
I am working on a project to use the custom configuration with ChatGroq and Spring AI. I am following the steps given here. I configured the application.properties with-
spring.ai.chat.client.enabled=false
gr... | https://stackoverflow.com/questions/79705278/spring-ai-use-the-connection-property-spring-ai-openai-api-key-or-spring-ai | spring-boot, openai-api, spring-ai | 1,752,777,222 |
se_79679844 | stackoverflow | ARTIFICIAL_INTELLIGENCE | "No existing trace found" error thrown in OpenAI Agents SDK | "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
But it always throws No existing trace found Error.... | https://stackoverflow.com/questions/79679844/no-existing-trace-found-error-thrown-in-openai-agents-sdk | typescript, next.js, openai-api, chatgpt-api | 1,750,904,827 |
se_75985522 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Is it possible to access the history of calls done by LangChain LLM object to external API? | Is it possible to access the history of calls done by LangChain LLM object to external API?
When we create an Agent in LangChain we provide a Large Language Model object (LLM), so that the Agent can make calls to an API provided by OpenAI or any other provider. For example:
llm = OpenAI(temperature=0)
agent = initial... | https://stackoverflow.com/questions/75985522/is-it-possible-to-access-the-history-of-calls-done-by-langchain-llm-object-to-ex | python, openai-api, langchain | 1,681,213,473 |
se_78137523 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How do I fix the error when running ChatGPT in python? | How do I fix the error when running ChatGPT in python?
I need to get a working ChatGPT in python. I used the official documentation from the openal website and wrote this code:
from openai import OpenAI
client = OpenAI(api_key='<my API is written here>')
response = client.chat.completions.create(
model="gpt-3.5-tu... | https://stackoverflow.com/questions/78137523/how-do-i-fix-the-error-when-running-chatgpt-in-python | python, openai-api, gpt-4 | 1,710,105,472 |
se_79278602 | stackoverflow | ARTIFICIAL_INTELLIGENCE | For use of the OpenAI API in Android Studio, does something need to be done with the Content Negotiation from Ktor? | For use of the OpenAI API in Android Studio, does something need to be done with the Content Negotiation from Ktor?
I am trying to develop an app as well as learn Kotlin. I decided to create an app that allows a User to create a story using AI, based on prompts, a sort of Text RPG game. I finished the UI, so now I mov... | https://stackoverflow.com/questions/79278602/for-use-of-the-openai-api-in-android-studio-does-something-need-to-be-done-with | android, kotlin, openai-api, ktor, content-negotiation | 1,734,099,023 |
se_79525028 | stackoverflow | ARTIFICIAL_INTELLIGENCE | No converter for org.springframework.ai.openai.api.ResponseFormat | No converter for org.springframework.ai.openai.api.ResponseFormat
I have a Spring Boot (version 3.4.2) application with Spring AI and I want to get only JSON responses from OpenAI, so I configured it in my application.yml file, see Built-in JSON mode:
Some AI Models provide dedicated configuration options to generate... | https://stackoverflow.com/questions/79525028/no-converter-for-org-springframework-ai-openai-api-responseformat | openai-api, spring-ai | 1,742,549,550 |
se_77513190 | stackoverflow | ARTIFICIAL_INTELLIGENCE | AttributeError: module ‘openai’ has no attribute ‘error’ | AttributeError: module ‘openai’ has no attribute ‘error’
I'm running a Python summarizer in Azure ML that queries my gpt4 deployment for information. Everything was working fine until two days ago, when I decided to switch the output directory of the summaries to a different blob storage. Since then I am strangely get... | https://stackoverflow.com/questions/77513190/attributeerror-module-openai-has-no-attribute-error | python, openai-api, azure-machine-learning-service, chatgpt-api, azure-openai | 1,700,445,988 |
se_79680987 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Chainlit <> Mermaid Rendering Issue | Chainlit <> Mermaid Rendering Issue
I am creating a Chainlit app, and instructing the model to provide some Mermaid diagrams as well.
I am instructing the model to give the diagrams in this way in the system prompt,
system_prompt = """
...
...
### Mermaid Diagram Format:
Always wrap Mermaid code in triple backti... | https://stackoverflow.com/questions/79680987/chainlit-mermaid-rendering-issue | python, openai-api, streamlit, large-language-model, chainlit | 1,750,961,362 |
se_79687251 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to create an OpenAI Assistant using Responses API | How to create an OpenAI Assistant using Responses API
When I try using Python Azure OpenAI SDK to create a thread for my OpenAI Assistant
my_thread = azure_openai_client.beta.threads.create()
, it works but the following annoying error is shown:
/tmp/ipykernel_1880725/4229537171.py:1: DeprecationWarning: The
Assista... | https://stackoverflow.com/questions/79687251/how-to-create-an-openai-assistant-using-responses-api | python, openai-api | 1,751,451,620 |
se_76518144 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Trouble deleting ChromaDB documents | Trouble deleting ChromaDB documents
I can't seem to delete documents from my Chroma vector database. I would appreciate any insight as to why this example does not work, and what modifications can/should be made to get it functioning correctly.
import dotenv
import os
import chromadb
from chromadb.config import Settin... | https://stackoverflow.com/questions/76518144/trouble-deleting-chromadb-documents | python, database, artificial-intelligence, openai-api, chromadb | 1,687,292,362 |
se_77583070 | stackoverflow | ARTIFICIAL_INTELLIGENCE | 429 "Insufficient Quota" error in OpenAI API even though account has paid subscription amount remaining | 429 "Insufficient Quota" error in OpenAI API even though account has paid subscription amount remaining
I have bought API usage quota, however I am still getting insufficient_quota error when I call the API (using javascript). I am calling API at very low rate ~1 call per minute, mostly manual invocation on ... | https://stackoverflow.com/questions/77583070/429-insufficient-quota-error-in-openai-api-even-though-account-has-paid-subscr | openai-api | 1,701,406,155 |
se_77966225 | stackoverflow | ARTIFICIAL_INTELLIGENCE | OpenAPI / Swagger 2.0: Default discriminator value | OpenAPI / Swagger 2.0: Default discriminator value
I am using Swagger 2.0 to define our API contract schema where we are planning to use polymorphism with discriminator. I have a parent class (named Animal) and two child class extending Animal for now (Dog/Cat).
Animal would have a field animalType which would be used... | https://stackoverflow.com/questions/77966225/openapi-swagger-2-0-default-discriminator-value | swagger, openai-api, swagger-2.0, azure-rest-api, azure-openai | 1,707,457,888 |
se_76844017 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to pass a CSV file or a dataframe to Pandas REPL tool in Langchain? | How to pass a CSV file or a dataframe to Pandas REPL tool in Langchain?
I am trying to utilize Python Repl Tool in langchain with a CSV file and send me the answer based on the CSV file content. The problem is that it gets the action_input step of writing the code to execute right. However, it fails to answer because ... | https://stackoverflow.com/questions/76844017/how-to-pass-a-csv-file-or-a-dataframe-to-pandas-repl-tool-in-langchain | pandas, openai-api, agent, langchain, py-langchain | 1,691,281,242 |
se_79670242 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Unable to remove "server closed abruptly (missing close_notify)" notification | Unable to remove "server closed abruptly (missing close_notify)" notification
The following is about the OpenAI fine-tuning. I wish to get the streaming response. For this, I don't see I can use the OpenAI SDK for fine-tuning, so I call API manually. I used SendAsync, for PostAsync does not seem to work with... | https://stackoverflow.com/questions/79670242/unable-to-remove-server-closed-abruptly-missing-close-notify-notification | c#, openai-api | 1,750,233,914 |
se_75740652 | stackoverflow | ARTIFICIAL_INTELLIGENCE | FastAPI StreamingResponse not streaming with generator function | FastAPI StreamingResponse not streaming with generator function
I have a relatively simple FastAPI app that accepts a query and streams back the response from ChatGPT's API. ChatGPT is streaming back the result and I can see this being printed to console as it comes in.
What's not working is the StreamingResponse back... | https://stackoverflow.com/questions/75740652/fastapi-streamingresponse-not-streaming-with-generator-function | python, python-requests, streaming, fastapi, openai-api | 1,678,855,713 |
se_79666130 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Multi MCP Tool Servers Issue with llama-3-3-70b-instruct | Multi MCP Tool Servers Issue with llama-3-3-70b-instruct
I'm following codes from links:
https://github.com/jalr4ever/Tiny-OAI-MCP-Agent/blob/main/mcp_client.py
https://github.com/philschmid/mcp-openai-gemini-llama-example/blob/master/sqlite_llama_mcp_agent.py
I'm using llama-3-3-70b-instruct model from a separately... | https://stackoverflow.com/questions/79666130/multi-mcp-tool-servers-issue-with-llama-3-3-70b-instruct | openai-api, langchain, langgraph, llama3, model-context-protocol | 1,749,932,456 |
se_77364787 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Problem with getting a response from the API in Russian | Problem with getting a response from the API in Russian
In my Laravel application, I ran into a strange problem.
I get a response from the API, but everything is in spaces in Russian, and everything is OK in English. Please tell me how to fix it?
chatcontroller.php:
<?php
namespace App\Http\Controllers;
use App\Http... | https://stackoverflow.com/questions/77364787/problem-with-getting-a-response-from-the-api-in-russian | php, laravel, openai-api, laravel-api | 1,698,303,998 |
se_79143664 | stackoverflow | ARTIFICIAL_INTELLIGENCE | ChatGPT API request with type:image_url — error while downloading, invalid_image_url | ChatGPT API request with type:image_url — error while downloading, invalid_image_url
I am sending a request to the ChatGPT API with the following content:
'model' => 'gpt-4o',
'messages' => [
[
'role' => 'user',
'content' => array_merge(
[
... | https://stackoverflow.com/questions/79143664/chatgpt-api-request-with-typeimage-url-error-while-downloading-invalid-image | openai-api, chatgpt-api | 1,730,355,408 |
se_79657025 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Can't upload JSON file and reference it in OpenAI prompts | Can't upload JSON file and reference it in OpenAI prompts
I'm trying to use the OpenAI C# SDK to upload a JSON file and reference it in prompts. If I include it in a UserChatMessage then this exception is thrown:
System.ClientModel.ClientResultException: 'HTTP 400
(invalid_request_error: invalid_value) Parameter:... | https://stackoverflow.com/questions/79657025/cant-upload-json-file-and-reference-it-in-openai-prompts | c#, json, artificial-intelligence, openai-api | 1,749,305,343 |
se_79241252 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Pydantic wrapper error while invoking openai client on streamlit. Got an unexpected keyword argument 'proxies' | Pydantic wrapper error while invoking openai client on streamlit. Got an unexpected keyword argument 'proxies'
I have a problem with an app on streamlit: On localhost it works perfectly, but on streamlit not. The funny thing is that the application was working, but after the code update I suddenly started gett... | https://stackoverflow.com/questions/79241252/pydantic-wrapper-error-while-invoking-openai-client-on-streamlit-got-an-unexpec | openai-api, streamlit, pydantic | 1,733,044,996 |
se_79419186 | stackoverflow | ARTIFICIAL_INTELLIGENCE | APIConnectionError when trying to use OpenAI API | APIConnectionError when trying to use OpenAI API
The sample code given here:
https://platform.openai.com/docs/api-reference/chat?lang=python
successfully runs in Google Colab environment.
But when I run it in my local virtual environment, it gives this error:
APIConnectionError: Connection error.
I am using the same k... | https://stackoverflow.com/questions/79419186/apiconnectionerror-when-trying-to-use-openai-api | openai-api | 1,738,871,632 |
se_77433096 | stackoverflow | ARTIFICIAL_INTELLIGENCE | NotImplementedError: Loading a dataset cached in a LocalFileSystem is not supported | NotImplementedError: Loading a dataset cached in a LocalFileSystem is not supported
I try to load a dataset using the datasets python module in my local Python Notebook. I am running a Python 3.10.13 kernel as I do for my virtual environment.
I cannot load the datasets I am following from a tutorial. Here's the error:... | https://stackoverflow.com/questions/77433096/notimplementederror-loading-a-dataset-cached-in-a-localfilesystem-is-not-suppor | python, python-3.x, pip, openai-api, huggingface-datasets | 1,699,291,778 |
se_77555312 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Langchain / ChromaDB: Why does VectorStore return so many duplicates? | Langchain / ChromaDB: Why does VectorStore return so many duplicates?
import os
from langchain.llms import OpenAI
import bs4
import langchain
from langchain import hub
from langchain.document_loaders import UnstructuredFileLoader
from langchain.embeddings import OpenAIEmbeddings
from langchain.text_splitter import Rec... | https://stackoverflow.com/questions/77555312/langchain-chromadb-why-does-vectorstore-return-so-many-duplicates | python, openai-api, langchain, py-langchain, chromadb | 1,701,072,092 |
se_79654460 | stackoverflow | ARTIFICIAL_INTELLIGENCE | No suitable HttpMessageConverter found for response type | No suitable HttpMessageConverter found for response type
I am trying to create image generator with OpenAI. I'm facing this:
error(Title) --Exception: Could not extract response: no suitable HttpMessageConverter found for response type [class org.springframework.ai.openai.api.OpenAiImageApi$OpenAiImageResponse] and c... | https://stackoverflow.com/questions/79654460/no-suitable-httpmessageconverter-found-for-response-type | java, spring-boot, dependency-injection, openai-api, image-generation | 1,749,127,142 |
se_79370856 | stackoverflow | ARTIFICIAL_INTELLIGENCE | FastAPI Swagger UI shows alias instead of original field name in response schema | FastAPI Swagger UI shows alias instead of original field name in response schema
I have the following FastAPI code using Pydantic:
from fastapi import FastAPI
from fastapi.routing import APIRouter
from pydantic import BaseModel, Field
from typing import Optional
app = FastAPI()
router = APIRouter()
class UserSchema(... | https://stackoverflow.com/questions/79370856/fastapi-swagger-ui-shows-alias-instead-of-original-field-name-in-response-schema | python, fastapi, swagger-ui, openai-api, pydantic | 1,737,366,429 |
se_71911771 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Can I create a fine-tuned model for OpenAI API Codex models? | Can I create a fine-tuned model for OpenAI API Codex models?
I'd like to translate user requests into tickets in some sort of structured data format, e.g. JSON. For example:
User: I want to order two chairs and a desk with three drawers on the left side.
Output:
{
"type": "furniture",
"items": [
{ "t... | https://stackoverflow.com/questions/71911771/can-i-create-a-fine-tuned-model-for-openai-api-codex-models | json, openai-api, gpt-3, fine-tuning | 1,650,284,546 |
se_79645038 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Define custom headers using .NET 6 OpenAI SDK | Define custom headers using .NET 6 OpenAI SDK
Technical details
Client applications are using .NET 6
Client applications are using the OpenAIClient class from the official OpenAI nuget library
There is an inhouse cluster of LLM servers with OpenAI API support
A reverse proxy that intercepts the client requests
Goal
... | https://stackoverflow.com/questions/79645038/define-custom-headers-using-net-6-openai-sdk | .net-core, .net-6.0, dotnet-httpclient, openai-api | 1,748,589,265 |
se_79636395 | stackoverflow | ARTIFICIAL_INTELLIGENCE | Codex unable to access java maven repository | Codex unable to access java maven repository
./mvnw clean test
[INFO] Scanning for projects...
Downloading from central: https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-dependencies/3.3.8/spring-boot-dependencies-3.3.8.pom
[ERROR] [ERROR] Some problems were encountered while processing the PO... | https://stackoverflow.com/questions/79636395/codex-unable-to-access-java-maven-repository | java, spring-boot, openai-api, codex | 1,748,056,302 |
se_79479963 | stackoverflow | ARTIFICIAL_INTELLIGENCE | How to include image as part of user prompt in haystack 2.X? | How to include image as part of user prompt in haystack 2.X?
I have a great pipeline of chatbot using Haystack. I am referring to the haystack docs to create a pipeline, here is the example of the pipeline using prompt builder:
from haystack import Pipeline
from haystack.utils import Secret
from haystack.components.re... | https://stackoverflow.com/questions/79479963/how-to-include-image-as-part-of-user-prompt-in-haystack-2-x | python, openai-api, large-language-model, haystack, multimodal | 1,740,961,793 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.