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_78755950
stackoverflow
ARTIFICIAL_INTELLIGENCE
Different model in code than what is deployed
Different model in code than what is deployed Using ChatGPT4o on Azure for additional security and GDPR compliance. Deployed the latest model version 2024-05-13. When we use that model in the code though it errors, with 'no existing resource.' Only when we use the model shown in the playground code endpoint (2024-02-1...
https://stackoverflow.com/questions/78755950/different-model-in-code-than-what-is-deployed
azure, openai-api
1,721,150,450
se_78706130
stackoverflow
ARTIFICIAL_INTELLIGENCE
OpenAI API query for an input document
OpenAI API query for an input document I could build and chat with openAI model but I wish to upload a document and try to ask questions based on that doc. I check some discussions like this My code likes from langchain_community.document_loaders.csv_loader import CSVLoader from langchain_openai import AzureChatOpenAI...
https://stackoverflow.com/questions/78706130/openai-api-query-for-an-input-document
openai-api, large-language-model, azure-openai
1,720,084,166
se_78754838
stackoverflow
ARTIFICIAL_INTELLIGENCE
Call Chat-GPT Assistant using Google Apps Script
Call Chat-GPT Assistant using Google Apps Script I wrote a small Google Apps Script that basically calls a trained Chat-GPT Playground Assistant to answer my query. The code is working perfectly when using it for example with a default model such as: gpt-3.5-turbo The problem is that I keep getting the error that my...
https://stackoverflow.com/questions/78754838/call-chat-gpt-assistant-using-google-apps-script
google-apps-script, openai-api, chatgpt-function-call
1,721,136,322
se_78754181
stackoverflow
ARTIFICIAL_INTELLIGENCE
integrate ChatGPT API to project to detect objects in image
integrate ChatGPT API to project to detect objects in image I am encountering a problem with ChatGPT API to detect objects in an image, I am not sure if this API is incapable of doing so. I tried to check OpenAI docs and it seems like he is able of doing so : https://platform.openai.com/docs/guides/vision?lang=node th...
https://stackoverflow.com/questions/78754181/integrate-chatgpt-api-to-project-to-detect-objects-in-image
typescript, openai-api
1,721,127,777
se_78712265
stackoverflow
ARTIFICIAL_INTELLIGENCE
Problems retrieving the embeddings data form OpenAI API Batch embedding job
Problems retrieving the embeddings data form OpenAI API Batch embedding job I have to embed over 300,000 products description for a multi-classification project. I split the descriptions onto chunks of 34,337 descriptions to be under the Batch embeddings limit size. A sample of my jsonl file for batch processing: {"cu...
https://stackoverflow.com/questions/78712265/problems-retrieving-the-embeddings-data-form-openai-api-batch-embedding-job
batch-processing, openai-api, openaiembeddings
1,720,193,712
se_78751921
stackoverflow
ARTIFICIAL_INTELLIGENCE
openai.ChatCompletion issue
openai.ChatCompletion issue Seems I'm another person affected by the OpenAI migration issue. Can you please help me? The full error: OpenAI API error: You tried to access openai.ChatCompletion, but this is no longer supported in openai>=1.0.0 - see the README at https://github.com/openai/openai-python for the API. You...
https://stackoverflow.com/questions/78751921/openai-chatcompletion-issue
python, openai-api, chatgpt-api
1,721,078,242
se_77015671
stackoverflow
ARTIFICIAL_INTELLIGENCE
llama-index: How to Extract `context_str` Used in LlamaIndex for a Given Response?
llama-index: How to Extract `context_str` Used in LlamaIndex for a Given Response? I'm working with LlamaIndex, and I need to extract the context_str that was used in a query before it was sent to the LLM (Language Model). Here's the relevant code: index = VectorStoreIndex.from_documents( documents, storage_contex...
https://stackoverflow.com/questions/77015671/llama-index-how-to-extract-context-str-used-in-llamaindex-for-a-given-respons
openai-api, langchain, llama-index
1,693,483,473
se_78750586
stackoverflow
ARTIFICIAL_INTELLIGENCE
Flask "error": "415 Unsupported Media Type: Did not attempt to load JSON data because the request Content-Type was not 'application/json'."
Flask "error": "415 Unsupported Media Type: Did not attempt to load JSON data because the request Content-Type was not 'application/json'." I am building a backend for my react app using flask. Using an openai api to generate cover letters from submitted form data. from flask import Flask, ...
https://stackoverflow.com/questions/78750586/flask-error-415-unsupported-media-type-did-not-attempt-to-load-json-data-be
python, reactjs, json, flask, openai-api
1,721,055,892
se_78747915
stackoverflow
ARTIFICIAL_INTELLIGENCE
How could langchain agent step by step in `astream_event()`?
How could langchain agent step by step in `astream_event()`? Example Code @tool async def tool1(): """tool1""" print('start1...') cmd = { 'cmd': 'Scrape', } await asyncio.sleep(5) # do something need long time. go2_command_queue.put(cmd) print('time1....') @tool async def tool2():...
https://stackoverflow.com/questions/78747915/how-could-langchain-agent-step-by-step-in-astream-event
python, streaming, openai-api, langchain, agent
1,721,012,586
se_77461555
stackoverflow
ARTIFICIAL_INTELLIGENCE
I got "You exceeded your current quota, please check your plan and billing details" without reaching the limit
I got "You exceeded your current quota, please check your plan and billing details" without reaching the limit I just created my first API key, and I want use the gpt-3.5-turbo model just for simple test, here is my code : $url = "https://api.openai.com/v1/chat/completions"; $headers = [ 'Conten...
https://stackoverflow.com/questions/77461555/i-got-you-exceeded-your-current-quota-please-check-your-plan-and-billing-detai
openai-api
1,699,634,228
se_77946794
stackoverflow
ARTIFICIAL_INTELLIGENCE
Maintaining Conversation Context in Django API View with OpenAI GPT for Chat Application
Maintaining Conversation Context in Django API View with OpenAI GPT for Chat Application I am building a chat application using Django that integrates with OpenAI's GPT to generate responses based on the conversation history. I've set up an APIView in Django to handle the chat interactions but am struggling with maint...
https://stackoverflow.com/questions/77946794/maintaining-conversation-context-in-django-api-view-with-openai-gpt-for-chat-app
python, django, django-rest-framework, openai-api, chatgpt-api
1,707,213,726
se_78005393
stackoverflow
ARTIFICIAL_INTELLIGENCE
How can I find out the GPT-4 model version when using openai Python library and Azure OpenAI?
How can I find out the GPT-4 model version when using openai Python library and Azure OpenAI? I use GPT-4 via openai Python library and Azure OpenAI. How can I find out the GPT-4 model version by using the openai Python library (and not looking at https://portal.azure.com/ because for some Azure OpenAI instances I onl...
https://stackoverflow.com/questions/78005393/how-can-i-find-out-the-gpt-4-model-version-when-using-openai-python-library-and
python, version, openai-api, azure-openai, gpt-4
1,708,062,999
se_78160818
stackoverflow
ARTIFICIAL_INTELLIGENCE
Errors Using langchain_core.agents.utils.function_calling.convert_to_openai_function in Python
Errors Using langchain_core.agents.utils.function_calling.convert_to_openai_function in Python I'm working on a Python project where I need to use specific functions from a library called langchain_core to convert tools into OpenAI-compatible functions. However, I'm encountering a NameError when I attempt to run my co...
https://stackoverflow.com/questions/78160818/errors-using-langchain-core-agents-utils-function-calling-convert-to-openai-func
python, openai-api, nameerror
1,710,422,226
se_78728847
stackoverflow
ARTIFICIAL_INTELLIGENCE
RateLimitError: Error code: 429, chatgpt api not working
RateLimitError: Error code: 429, chatgpt api not working I want to use the ChatGPT API for a project. I had an older account with $18 in free credit. However, it expired, and I created a new account where I got $5 in free credit. But still, when I request something from the API, it shows as follows: RateLimitError: E...
https://stackoverflow.com/questions/78728847/ratelimiterror-error-code-429-chatgpt-api-not-working
python, openai-api
1,720,591,443
se_78084538
stackoverflow
ARTIFICIAL_INTELLIGENCE
OpenAI Assistants API: How do I upload a file and use it as a knowledge base?
OpenAI Assistants API: How do I upload a file and use it as a knowledge base? My goal is to create a chatbot that I can provide a file to that holds a bunch of text, and then use the OpenAI Assistants API to actually use the file when querying my chatbot. I will use the gpt-3.5-turbo model to answer the questions. The...
https://stackoverflow.com/questions/78084538/openai-assistants-api-how-do-i-upload-a-file-and-use-it-as-a-knowledge-base
python, artificial-intelligence, openai-api, chatgpt-api, openai-assistants-api
1,709,244,405
se_78725533
stackoverflow
ARTIFICIAL_INTELLIGENCE
Upload an Image and have the title name using openai package in R
Upload an Image and have the title name using openai package in R I am trying to upload an image and have the title description using the openAI packgae in R library(openai) Sys.setenv(OPENAI_API_KEY = "myopenAIkey") image_path <- 'www/img/book1.jpg' create_chat_completion( model = 'gpt-4o', ...
https://stackoverflow.com/questions/78725533/upload-an-image-and-have-the-title-name-using-openai-package-in-r
r, openai-api
1,720,527,345
se_78465603
stackoverflow
ARTIFICIAL_INTELLIGENCE
How to add embeddings in already existing Chroma vector store
How to add embeddings in already existing Chroma vector store I have to load and process large number of PDFs and store processed embeddings in vector store. To avoid TPM limitation and other errors and also for the sake of modularity, I want to do it in batches (A batch of 10 PDFs each time). I have done these steps:...
https://stackoverflow.com/questions/78465603/how-to-add-embeddings-in-already-existing-chroma-vector-store
openai-api, langchain, chromadb
1,715,450,453
se_78707063
stackoverflow
ARTIFICIAL_INTELLIGENCE
How can I improve the accuracy of ChatGPT in Prolog?
How can I improve the accuracy of ChatGPT in Prolog? How can I design a ChatGPT alternative that recognises patterns in algorithm specifications in Prolog and maps input to output? I need recursive patterns in nested list form with [r,"a"] for ["a","a"] and [r,[1,[r,"b"]]] for [1,"b","b",1,"b","b"] and variables 'A1',...
https://stackoverflow.com/questions/78707063/how-can-i-improve-the-accuracy-of-chatgpt-in-prolog
algorithm, prolog, openai-api, specifications
1,720,095,392
se_78698002
stackoverflow
ARTIFICIAL_INTELLIGENCE
How can I get the lastModifiedDate (or any date) in Azure Open AI Service maps?
How can I get the lastModifiedDate (or any date) in Azure Open AI Service maps? I created an Azure resource for testing that I am populating with a custom blob I created in Azure only for testing, I created the skillset, the indexer, the index, everything for the retrieval of the date and up until the index all the da...
https://stackoverflow.com/questions/78698002/how-can-i-get-the-lastmodifieddate-or-any-date-in-azure-open-ai-service-maps
azure, openai-api, langchain, azure-openai, azure-ai-search
1,719,934,045
se_78720407
stackoverflow
ARTIFICIAL_INTELLIGENCE
Not able to keep chart in streamlit chatbot using LLM
Not able to keep chart in streamlit chatbot using LLM I am building a basic chatbot using OpenAI and streamlit, the flow is like: classify intent of user -> if he/she asks to plot chart then plot else continue chatting. So in output I can see historical text messages but as soon as I type something else, the chart van...
https://stackoverflow.com/questions/78720407/not-able-to-keep-chart-in-streamlit-chatbot-using-llm
openai-api, streamlit
1,720,435,795
se_78659588
stackoverflow
ARTIFICIAL_INTELLIGENCE
An error occurred: &#39;AzureOpenAI&#39; object has no attribute &#39;Completion&#39; in RAG using OpenAI keys and Langchain
An error occurred: &#39;AzureOpenAI&#39; object has no attribute &#39;Completion&#39; in RAG using OpenAI keys and Langchain I am fetching my embeddings from Mongo Atlas Converting the query to embeddings using text-embedding-adaa002 api key Performing Similarity check Introduced GPT api keys and azure endpoint os.en...
https://stackoverflow.com/questions/78659588/an-error-occurred-azureopenai-object-has-no-attribute-completion-in-rag-usi
openai-api, langchain
1,719,168,761
se_78716179
stackoverflow
ARTIFICIAL_INTELLIGENCE
Check if a fine-tuned OpenAI model was successfully deleted
Check if a fine-tuned OpenAI model was successfully deleted I am doing some work with the OpenAI API with Python. I'm working with fine-tuning and I am working on deleting an existing model and starting over again. I want to be able to check if the deletion actually succeeded or failed. The OpenAI.models.delete() func...
https://stackoverflow.com/questions/78716179/check-if-a-fine-tuned-openai-model-was-successfully-deleted
python, openai-api
1,720,310,883
se_78713855
stackoverflow
ARTIFICIAL_INTELLIGENCE
How to Smoothly Stream and Render Dynamic Table Content in React without UI Shake?
How to Smoothly Stream and Render Dynamic Table Content in React without UI Shake? I'm working on a React application that streams content from the OpenAI API. The content is displayed using the ReactMarkdown component, as it can contain both Markdown and HTML. However, when the streamed content includes a table, the ...
https://stackoverflow.com/questions/78713855/how-to-smoothly-stream-and-render-dynamic-table-content-in-react-without-ui-shak
css, reactjs, markdown, openai-api
1,720,239,093
se_73547502
stackoverflow
ARTIFICIAL_INTELLIGENCE
How do I Stream OpenAI&#39;s completion API?
How do I Stream OpenAI&#39;s completion API? I want to stream the results of a completion via OpenAI's API. The doc's mention using server-sent events - it seems like this isn't handled out of the box for flask so I was trying to do it client side (I know this exposes API keys). However, because the OpenAI API require...
https://stackoverflow.com/questions/73547502/how-do-i-stream-openais-completion-api
javascript, openai-api
1,661,887,242
se_75664531
stackoverflow
ARTIFICIAL_INTELLIGENCE
Get list of prompts and conversations for all ChatGPT sessions
Get list of prompts and conversations for all ChatGPT sessions I have hundreds of ChatGPT conversations and I want to extract them all into a JSON structure. Name of conversation List of prompts and response for conversation. I couldn't find anything in the API Reference so wondering I have just missed or if there...
https://stackoverflow.com/questions/75664531/get-list-of-prompts-and-conversations-for-all-chatgpt-sessions
web-scraping, openai-api
1,678,205,837
se_78705383
stackoverflow
ARTIFICIAL_INTELLIGENCE
Issue with OpenAI&#39;s transcription API
Issue with OpenAI&#39;s transcription API I'm having some issues with OpenAI's endpoint: https://api.openai.com/v1/audio/transcriptions I have an audio file that I'm pulling from telegram's api. it's a .m4a file. I'm not getting errors when I'm downloading the file, but when I try to transcribe it, it keeps saying it'...
https://stackoverflow.com/questions/78705383/issue-with-openais-transcription-api
rust, openai-api, rust-tokio, openai-whisper
1,720,074,701
se_78490315
stackoverflow
ARTIFICIAL_INTELLIGENCE
Managing object lifecycles in OpenAI api
Managing object lifecycles in OpenAI api Which OpenAI api objects are cleaned up by the server vs. which are the app's responsibility? I'm most interested in: Assistants, VectorStores, VectorStoreFiles -- all seem intuitively like things that will be retained until the app removes them explicitly. Threads -- seem like...
https://stackoverflow.com/questions/78490315/managing-object-lifecycles-in-openai-api
openai-api
1,715,866,880
se_78690284
stackoverflow
ARTIFICIAL_INTELLIGENCE
oobabooga-textgen-web-ui how to get authorization to view model list from port 5000 via the ooba&#39;s api-key in python
oobabooga-textgen-web-ui how to get authorization to view model list from port 5000 via the ooba&#39;s api-key in python I wish to extract and print out a list of llm models from the oobabooga-text-gen-web-ui in python. Some context first before i head over to my problem. For those familiar with what ooba is its essen...
https://stackoverflow.com/questions/78690284/oobabooga-textgen-web-ui-how-to-get-authorization-to-view-model-list-from-port-5
python, openai-api, large-language-model
1,719,801,741
se_78694273
stackoverflow
ARTIFICIAL_INTELLIGENCE
How to use Library that works on Java version 17, in my Java version 8 project?
How to use Library that works on Java version 17, in my Java version 8 project? I can't use spring-snapshots library in my project. I'm going to develop simple chat function using Azure OpenAI and this is guide URL: https://learn.microsoft.com/en-us/azure/ai-services/openai/chatgpt-quickstart?tabs=command-line%2Cpytho...
https://stackoverflow.com/questions/78694273/how-to-use-library-that-works-on-java-version-17-in-my-java-version-8-project
java, azure, openai-api, azure-openai
1,719,869,122
se_78694672
stackoverflow
ARTIFICIAL_INTELLIGENCE
How to implement Azure openai in Java version 8 project
How to implement Azure openai in Java version 8 project As I mentioned before, now I have trouble using spring-snapshot library in Java version 8 project. I think the reason is this library was launched after Java version 8. (Java version 8 was launched over 10 years ago) Currently this library works on Java 17 and th...
https://stackoverflow.com/questions/78694672/how-to-implement-azure-openai-in-java-version-8-project
java, azure, openai-api, azure-openai
1,719,880,958
se_78685685
stackoverflow
ARTIFICIAL_INTELLIGENCE
when i am using langchain chatopenai model and invoking method it&#39;s working but when using in crewai same llm models it gives invalid api key
when i am using langchain chatopenai model and invoking method it&#39;s working but when using in crewai same llm models it gives invalid api key import os from langchain_openai import OpenAI from langchain_openai import ChatOpenAI from langchain.prompts import PromptTemplate chat_model = ChatOpenAI( openai_api_base...
https://stackoverflow.com/questions/78685685/when-i-am-using-langchain-chatopenai-model-and-invoking-method-its-working-but
python-3.x, openai-api, large-language-model
1,719,655,976
se_78597097
stackoverflow
ARTIFICIAL_INTELLIGENCE
Azure AI Search MultiIndex / Conditional Semantic search
Azure AI Search MultiIndex / Conditional Semantic search I'm working with Azure OpenAI to create a chatbot for retrieving data from massive enterprise textual data. At my editorial company, I'm facing a challenge with Azure AI Search. Initially, all the data was in a single index, but now I need to separate it into th...
https://stackoverflow.com/questions/78597097/azure-ai-search-multiindex-conditional-semantic-search
azure, indexing, openai-api, azure-openai, azure-ai-search
1,717,885,893
se_78685337
stackoverflow
ARTIFICIAL_INTELLIGENCE
OpenAI Assistant now answering from specific file
OpenAI Assistant now answering from specific file It's answering from file which is fine. But I have many Assistant, and the every user will answer from a selected file. I have two assistants (1, A2), and three files ( F1, F2, F3). A1 will answer from F1, and A2 will answer from F1 and F2. How to achieve that? const a...
https://stackoverflow.com/questions/78685337/openai-assistant-now-answering-from-specific-file
node.js, openai-api
1,719,646,196
se_76062394
stackoverflow
ARTIFICIAL_INTELLIGENCE
ValueError: Got unknown type S when using GPT-4 with LangChain for Summarization
ValueError: Got unknown type S when using GPT-4 with LangChain for Summarization I am trying to use LangChain with the GPT-4 model for a summarization task. When I use the GPT-3.5-turbo model instead of GPT-4, everything works fine. However, as soon as I switch to GPT-4, I get the following error: ValueError: Got unkn...
https://stackoverflow.com/questions/76062394/valueerror-got-unknown-type-s-when-using-gpt-4-with-langchain-for-summarization
python, openai-api, langchain
1,681,981,795
se_78680213
stackoverflow
ARTIFICIAL_INTELLIGENCE
Possible Way to have OpenAI code run on Flet?
Possible Way to have OpenAI code run on Flet? I'm attempting to create a chatbot app for a project, I currently have everything running with OpenAI and Gradio. This is what my code looks like right now: import openai import gradio openai.api_key = "api_key" messages = [{"role": "system", "content": "You are a medic...
https://stackoverflow.com/questions/78680213/possible-way-to-have-openai-code-run-on-flet
python, ios, openai-api, flet, gradio
1,719,533,175
se_78614488
stackoverflow
ARTIFICIAL_INTELLIGENCE
Azure search index with RAG vector search on own data. Chat completions doesn&#39;t return chunk_id as expected
Azure search index with RAG vector search on own data. Chat completions doesn&#39;t return chunk_id as expected When I index with a skillset that splits the text and then creates embeddings I am able to search and retrieve a chat completion along with relevant citations with a single API call to https://xxxxxxxxxxxxxx...
https://stackoverflow.com/questions/78614488/azure-search-index-with-rag-vector-search-on-own-data-chat-completions-doesnt
azure, chatbot, openai-api
1,718,218,084
se_78600004
stackoverflow
ARTIFICIAL_INTELLIGENCE
How to fix streaming Azure AI responses from sending incomplete data?
How to fix streaming Azure AI responses from sending incomplete data? I'm streaming chat completion responses from a serverless deployment of the Phi3 mini model from the Azure AI Hub. Though I have the issue of random characters or words being left out in the response. The API works just fine when tested with streami...
https://stackoverflow.com/questions/78600004/how-to-fix-streaming-azure-ai-responses-from-sending-incomplete-data
javascript, azure, streaming, openai-api, azure-ai
1,717,976,666
se_78622400
stackoverflow
ARTIFICIAL_INTELLIGENCE
Embedding Token limit overpass by chunking concatenation and dimensionality reduction
Embedding Token limit overpass by chunking concatenation and dimensionality reduction If you want to generate embeddings for documents using Azure OpenAI with ada-002 model then you should sent maximum 8192 tokens to this API. If one document has more than 8K tokens then in order to process it we should follow specifi...
https://stackoverflow.com/questions/78622400/embedding-token-limit-overpass-by-chunking-concatenation-and-dimensionality-redu
c#, token, openai-api, embedding, dimensions
1,718,360,773
se_78671931
stackoverflow
ARTIFICIAL_INTELLIGENCE
LLM Azure Openai - Unable to connect to PostgreSQL DB
LLM Azure Openai - Unable to connect to PostgreSQL DB I am using LLM in Azure OpenAI and trying to connect to my local instance of PostgreSQL. Getting error. The code and error are paste here. Help is much appreciated. #!pip install langchain psycopg2 #!pip install --upgrade langchain-experimental from langchain.llms...
https://stackoverflow.com/questions/78671931/llm-azure-openai-unable-to-connect-to-postgresql-db
postgresql, azure, openai-api, large-language-model
1,719,398,949
se_74944407
stackoverflow
ARTIFICIAL_INTELLIGENCE
Using fetch to call the OpenAi API throws error 400 &quot;you must provide a model parameter&quot;
Using fetch to call the OpenAi API throws error 400 &quot;you must provide a model parameter&quot; Followed the OpenAI API docs and but there is something wrong with this POST request... I get an "you must provide a model parameter" error ... what is wrong with the request body? try { const response = await fe...
https://stackoverflow.com/questions/74944407/using-fetch-to-call-the-openai-api-throws-error-400-you-must-provide-a-model-pa
javascript, fetch-api, openai-api
1,672,256,758
se_78674078
stackoverflow
ARTIFICIAL_INTELLIGENCE
Unable to fetch NEXT_PUBLIC_OPENAI_API_KEY in Vercel production environment
Unable to fetch NEXT_PUBLIC_OPENAI_API_KEY in Vercel production environment I'm experiencing an issue with accessing an environment variable in a Next.js project deployed on Vercel. The variable is correctly set in both my local environment and the Vercel dashboard, but it's not accessible in the production environmen...
https://stackoverflow.com/questions/78674078/unable-to-fetch-next-public-openai-api-key-in-vercel-production-environment
next.js, vercel, openai-api
1,719,426,049
se_78672314
stackoverflow
ARTIFICIAL_INTELLIGENCE
Why a difference in Score for Manhattan distance vs Cosine Distance despite same text chunk being returned?
Why a difference in Score for Manhattan distance vs Cosine Distance despite same text chunk being returned? I am using the qdrant DB and client for embedding a document as part of a PoC that I am working on in building a RAG. I see that when I use a Manhattan distance to build the vector collection I get a high score ...
https://stackoverflow.com/questions/78672314/why-a-difference-in-score-for-manhattan-distance-vs-cosine-distance-despite-same
artificial-intelligence, openai-api, qdrantclient
1,719,403,631
se_78244309
stackoverflow
ARTIFICIAL_INTELLIGENCE
How do I embed json documents using embedding models like sentence-transformer or open ai&#39;s embedding model?
How do I embed json documents using embedding models like sentence-transformer or open ai&#39;s embedding model? I have a domain specific JSON object for which I want to store in a vector db. I would be using embedding models like sentence=transformer or openai's text-embedding-002. Questions are: a) Can these models ...
https://stackoverflow.com/questions/78244309/how-do-i-embed-json-documents-using-embedding-models-like-sentence-transformer-o
openai-api, large-language-model, sentence-transformers, openaiembeddings
1,711,722,692
se_78670044
stackoverflow
ARTIFICIAL_INTELLIGENCE
Concurrent Api call to OpenAI is returning empty response
Concurrent Api call to OpenAI is returning empty response I need to process a batch of video items, format them, and call an asynchronous API to get additional data in a YAML format. However, I'm encountering an issue where the API responses are mostly empty, despite the tasks completing successfully. Below is the rel...
https://stackoverflow.com/questions/78670044/concurrent-api-call-to-openai-is-returning-empty-response
c#, asynchronous, .net-core, openai-api, asp.net-core-8
1,719,366,033
se_75664787
stackoverflow
ARTIFICIAL_INTELLIGENCE
Is there an official OpenAI nuget package to be able to use its API?
Is there an official OpenAI nuget package to be able to use its API? I want to use the openAI API in a console app project in Visual Studio but I don't know if they have released an official nuget package. I understand that this is not true? If they haven't released it, what is the best way to start testing their API...
https://stackoverflow.com/questions/75664787/is-there-an-official-openai-nuget-package-to-be-able-to-use-its-api
azure, openai-api, azure-openai
1,678,207,111
se_78670001
stackoverflow
ARTIFICIAL_INTELLIGENCE
Random&quot;IndexError: list index out of range issue&quot; OpenAI&#39;s &quot;messages = list(client.beta.threads.messages.list(thread_id=thread.id, run_id = run.id))&quot;
Random&quot;IndexError: list index out of range issue&quot; OpenAI&#39;s &quot;messages = list(client.beta.threads.messages.list(thread_id=thread.id, run_id = run.id))&quot; The code works a few iterations of the following: Creating vector store Upload individual file (to ensure clean and singular context) Call OpenA...
https://stackoverflow.com/questions/78670001/randomindexerror-list-index-out-of-range-issue-openais-messages-listclie
python, openai-api, vectorstore
1,719,364,326
se_77921051
stackoverflow
ARTIFICIAL_INTELLIGENCE
No module named &#39;langgraph.prebuilt&#39;, &#39;langgraph&#39; is not a package
No module named &#39;langgraph.prebuilt&#39;, &#39;langgraph&#39; is not a package I am trying to work with langgraph. Although I installed all required packages, I still encounter error. from langchain_community.tools.tavily_search import TavilySearchResults from langgraph.prebuilt import ToolExecutor OPENAI_API_KEY...
https://stackoverflow.com/questions/77921051/no-module-named-langgraph-prebuilt-langgraph-is-not-a-package
python, openai-api, langchain
1,706,798,330
se_78666604
stackoverflow
ARTIFICIAL_INTELLIGENCE
Call openai.Audio.transcribe(&#39;model_name&#39;, bytes, prompt=language_prompt, response_format=&#39;verbose_json&#39;) with timeout
Call openai.Audio.transcribe(&#39;model_name&#39;, bytes, prompt=language_prompt, response_format=&#39;verbose_json&#39;) with timeout Is it possible to call the OpenAI speech to text API in Python with a timeout so if it doesn't respond within the timeout the call is cancelled? The call has the following signature: o...
https://stackoverflow.com/questions/78666604/call-openai-audio-transcribemodel-name-bytes-prompt-language-prompt-respon
python, timeout, openai-api
1,719,309,098
se_78656331
stackoverflow
ARTIFICIAL_INTELLIGENCE
Using Batch API through AzureOpenAI
Using Batch API through AzureOpenAI I want to use OpenAI's Batch API . But I need to create the client using AzureOpenAI. https://platform.openai.com/docs/guides/batch batch_input_file_id = batch_input_file.id client.batches.create( input_file_id=batch_input_file_id, endpoint="/v1/chat/completions", com...
https://stackoverflow.com/questions/78656331/using-batch-api-through-azureopenai
azure, openai-api
1,719,066,645
se_78659959
stackoverflow
ARTIFICIAL_INTELLIGENCE
With node javascript : How use OpenAI api as OCR for a local image?
With node javascript : How use OpenAI api as OCR for a local image? I try to use openApi's api as OCR in node with gpt-4o model from a local image . const api_key = "mykey" import OpenAI from 'openai'; import fs from "fs" const openai = new OpenAI({ apiKey: api_key, }); function convertToBase64(filePath) { ...
https://stackoverflow.com/questions/78659959/with-node-javascript-how-use-openai-api-as-ocr-for-a-local-image
javascript, node.js, ocr, openai-api, chatgpt-api
1,719,180,258
se_76697130
stackoverflow
ARTIFICIAL_INTELLIGENCE
Open AI Embeddings
Open AI Embeddings import openai from langchain.embeddings.openai import OpenAIEmbeddings embeddings = OpenAIEmbeddings(model_name="ada") query_result = embeddings.embed_query("Hello world") len(query_result) When compiling the above code it gives the following error: > ValidationError Tra...
https://stackoverflow.com/questions/76697130/open-ai-embeddings
python, openai-api, embedding, langchain
1,689,492,271
se_78628145
stackoverflow
ARTIFICIAL_INTELLIGENCE
Langchain Pandas agent not following instructions
Langchain Pandas agent not following instructions I'm working with a langchain pandas agent using GPT-4 from Azure OpenAI as the LLM. I'm working with a DataFrame that contains enterprise data from our employees, and the main objective is to retrieve information from our employees using the agent. Currently, we are ha...
https://stackoverflow.com/questions/78628145/langchain-pandas-agent-not-following-instructions
azure, openai-api, langchain
1,718,505,135
se_78656155
stackoverflow
ARTIFICIAL_INTELLIGENCE
Problem when testing webframe created using flask
Problem when testing webframe created using flask I am trying to test out how openai api works by creating to-do list maker. After writing the code and sending some test using curl. When I tested on terminal it return 200. curl -X POST http://127.0.0.1:5000/chatbot -H "Content-Type: application/json" -d '{"message": "...
https://stackoverflow.com/questions/78656155/problem-when-testing-webframe-created-using-flask
python, flask, openai-api
1,719,061,643
se_77482126
stackoverflow
ARTIFICIAL_INTELLIGENCE
OpenAI API error: &quot;You tried to access openai.Model, but this is no longer supported in openai\&gt;=1.0.0&quot;
OpenAI API error: &quot;You tried to access openai.Model, but this is no longer supported in openai\&gt;=1.0.0&quot; Using Visual Studio Code and PyCharm, after install openai (pip install openai) a strange error is bugging me - please help. If for example I write: import openai openai.api_key = "sk-xxxxxxxxxxxxxxxxx...
https://stackoverflow.com/questions/77482126/openai-api-error-you-tried-to-access-openai-model-but-this-is-no-longer-suppo
python, visual-studio-code, error-handling, configuration, openai-api
1,699,978,017
se_78648942
stackoverflow
ARTIFICIAL_INTELLIGENCE
How do I exclude chat commands in C#?
How do I exclude chat commands in C#? I integrated chat GPT into my twitch chat and it responds to all messages. I've excluded gpt to respond to some users (including myself) using the code below (top), but I want to exclude all messsages that start with "!" as well. This is the very first time I've ever touched C# so...
https://stackoverflow.com/questions/78648942/how-do-i-exclude-chat-commands-in-c
c#, chatbot, openai-api, twitch
1,718,905,370
se_78639296
stackoverflow
ARTIFICIAL_INTELLIGENCE
Webhook error on Twilion when trying to communicate with OpenAI
Webhook error on Twilion when trying to communicate with OpenAI I'm frustrated here, got stuck, can't overcome this :/ I'm trying ChatGPT but it can't correct it. Project My project is to communicate Whatsapp Business with OpenAI using Twilio. Problem Twilio is getting the message from whatsapp but can't post on Fireb...
https://stackoverflow.com/questions/78639296/webhook-error-on-twilion-when-trying-to-communicate-with-openai
twilio, webhooks, openai-api
1,718,738,805
se_74313676
stackoverflow
ARTIFICIAL_INTELLIGENCE
Attribute Error: openai has no attribute Image
Attribute Error: openai has no attribute Image So I was getting my hands-on on the new DALL.E api for Python which has been made public. I was getting the Attribution Error as it was not detecting the Image model in Open ai after running the following code: response = openai.Image.create( prompt="a white siamese cat...
https://stackoverflow.com/questions/74313676/attribute-error-openai-has-no-attribute-image
python, openai-api
1,667,547,958
se_78639662
stackoverflow
ARTIFICIAL_INTELLIGENCE
TypeError: &#39;ChatCompletion&#39; object is not subscriptable
TypeError: &#39;ChatCompletion&#39; object is not subscriptable Here's my code. I'm just messing around and trying to make a simple Reddit bot but there are SO MANY ERRORS. i've spent days just fixing the errors... Can someone help me not only fix this error but prevent me from getting more errors? I just want it TO W...
https://stackoverflow.com/questions/78639662/typeerror-chatcompletion-object-is-not-subscriptable
bots, openai-api, reddit, social-media
1,718,744,957
se_78638363
stackoverflow
ARTIFICIAL_INTELLIGENCE
How to search/index a site that uses IIS Windows Integrated Authentication?
How to search/index a site that uses IIS Windows Integrated Authentication? We're using OpenAI URL Datasource with Azure resources connected to our internal network. We have been able to build the entire demo, but since our internal web servers require integrated Windows NT authentication, the indexer is unable to cr...
https://stackoverflow.com/questions/78638363/how-to-search-index-a-site-that-uses-iis-windows-integrated-authentication
azure, openai-api, azure-cognitive-services
1,718,724,507
se_78617302
stackoverflow
ARTIFICIAL_INTELLIGENCE
Azure call automation with custom voice
Azure call automation with custom voice I've created a voicebot using Azure call automation. def get_chat_completions_async(system_prompt,user_prompt): openai.api_key = AZURE_OPENAI_SERVICE_KEY openai.api_base = AZURE_OPENAI_SERVICE_ENDPOINT # your endpoint should look like the following https://YOUR_RESOURCE...
https://stackoverflow.com/questions/78617302/azure-call-automation-with-custom-voice
python, azure, openai-api
1,718,274,530
se_76880224
stackoverflow
ARTIFICIAL_INTELLIGENCE
Error using Using DocArrayInMemorySearch in Langchain: Could not import docarray python package
Error using Using DocArrayInMemorySearch in Langchain: Could not import docarray python package Here is the full code. It runs perfectly fine on https://learn.deeplearning.ai/ notebook. But when I run it on my local machine, I get an error about ImportError: Could not import docarray python package I have tried rein...
https://stackoverflow.com/questions/76880224/error-using-using-docarrayinmemorysearch-in-langchain-could-not-import-docarray
python, openai-api, python-packaging, langchain
1,691,718,068
se_78121525
stackoverflow
ARTIFICIAL_INTELLIGENCE
Spring AI - openAi Error extracting response of type OpenAiApi$EmbeddingList&lt;......OpenAiApi$Embedding&gt;
Spring AI - openAi Error extracting response of type OpenAiApi$EmbeddingList&lt;......OpenAiApi$Embedding&gt; I am trying my hands on spring ai. I am trying to read a pdf and save the data into a vector store. Then I am calling aiclient to respond to prompts. This is what it looks like @Component class Chatbot { ...
https://stackoverflow.com/questions/78121525/spring-ai-openai-error-extracting-response-of-type-openaiapiembeddinglist
java, spring, spring-boot, openai-api, spring-ai
1,709,815,905
se_78633812
stackoverflow
ARTIFICIAL_INTELLIGENCE
Understanding the instructor Package for Structuring LLM Outputs
Understanding the instructor Package for Structuring LLM Outputs I am trying to structure outputs from a Large Language Model (LLM) and came across the instructor package, which is a true gem. However, I don't fully understand how instructor works "under the hood." Here are two simple examples that achieve the same r...
https://stackoverflow.com/questions/78633812/understanding-the-instructor-package-for-structuring-llm-outputs
python, openai-api, pydantic, langchain, large-language-model
1,718,643,164
se_76284412
stackoverflow
ARTIFICIAL_INTELLIGENCE
How can I stream a response from LangChain&#39;s OpenAI using Flask API?
How can I stream a response from LangChain&#39;s OpenAI using Flask API? I am using Python Flask app for chat over data. In the console I am getting streamable response directly from the OpenAI since I can enable streming with a flag streaming=True. The problem is, that I can't "forward" the stream or "show" the strem...
https://stackoverflow.com/questions/76284412/how-can-i-stream-a-response-from-langchains-openai-using-flask-api
python, flask, openai-api, langchain
1,684,443,183
se_78564718
stackoverflow
ARTIFICIAL_INTELLIGENCE
How to make a request to the OpenAI API?
How to make a request to the OpenAI API? I'm getting an authentication error when using my API key that I created at OpenAI.com to make a request. This is the code that I used: from openai import OpenAI client = OpenAI(api_key = "Lkey") response = client.completions.create( model = "gpt-3.5-turbo-instruct", ...
https://stackoverflow.com/questions/78564718/how-to-make-a-request-to-the-openai-api
python, openai-api, api-key
1,717,269,531
se_78629100
stackoverflow
ARTIFICIAL_INTELLIGENCE
langchain DirectoryLoader stuck when reading .md files
langchain DirectoryLoader stuck when reading .md files Trying to create embeddings from .md files but DirectoryLoader is stuck. This works for pdf files but not for .md. I am using the below code to create a vector db in chroma, this works perfectly when using the commented loader to read pdfs but when using the curre...
https://stackoverflow.com/questions/78629100/langchain-directoryloader-stuck-when-reading-md-files
openai-api, langchain, large-language-model, retrieval-augmented-generation
1,718,540,242
se_78630534
stackoverflow
ARTIFICIAL_INTELLIGENCE
How do I fix this React failure to compile error when using the Groq API?
How do I fix this React failure to compile error when using the Groq API? I am trying to use the Groq AI in my app to be able to add a feature where users can send a message to the AI and get back a response. But I am running into the following error ./node_modules/groq-sdk/index.js 78:32 Module parse failed: Unexpect...
https://stackoverflow.com/questions/78630534/how-do-i-fix-this-react-failure-to-compile-error-when-using-the-groq-api
javascript, reactjs, artificial-intelligence, openai-api, groq
1,718,583,270
se_78304660
stackoverflow
ARTIFICIAL_INTELLIGENCE
How to make Azure OpenAI API GPT Batch calls in python
How to make Azure OpenAI API GPT Batch calls in python I have been trying to make batch calls to Azure OpenAI API to the GPT models and I couldn't find a tutorial so here is something I came up with (I am not a Software Engineer)
https://stackoverflow.com/questions/78304660/how-to-make-azure-openai-api-gpt-batch-calls-in-python
openai-api, azure-openai
1,712,754,272
se_78623315
stackoverflow
ARTIFICIAL_INTELLIGENCE
KeyError: &#39;temperature&#39; in DSPy ChainOfThought()
KeyError: &#39;temperature&#39; in DSPy ChainOfThought() I created a custom LM Client class like this from dsp import LM import json class CustomLMClient(LM): def __init__(self, model, **kwargs): self.model = model self.provider = "default" self.history = [] self.llm = ChatOpenAI(m...
https://stackoverflow.com/questions/78623315/keyerror-temperature-in-dspy-chainofthought
openai-api, large-language-model, keyerror, dspy
1,718,372,443
se_78564567
stackoverflow
ARTIFICIAL_INTELLIGENCE
How to upload a file to OpenAI Assistant API via QT C basd code
How to upload a file to OpenAI Assistant API via QT C basd code OpenAI Assistant API allows the client to upload additional "knowledge" in a file so that the Assistant work with ChatGPT to provide more customized/private AI responses. My client is C based code in QT Creator IDE. I use QT 6.5 which has QT classes QNetW...
https://stackoverflow.com/questions/78564567/how-to-upload-a-file-to-openai-assistant-api-via-qt-c-basd-code
qt, openai-api
1,717,264,980
se_71888625
stackoverflow
ARTIFICIAL_INTELLIGENCE
OpenAI API: How do I specify the maximum number of words a completion should return?
OpenAI API: How do I specify the maximum number of words a completion should return? How can I specify the number of words the Open AI completion should return? E.g imagine I ask the AI the question Who is Elon Musk? What parameter can I use to make sure the AI sends back results less than or equal to 300 words? I w...
https://stackoverflow.com/questions/71888625/openai-api-how-do-i-specify-the-maximum-number-of-words-a-completion-should-ret
javascript, node.js, openai-api
1,650,054,232
se_78617066
stackoverflow
ARTIFICIAL_INTELLIGENCE
Get a text from between two words
Get a text from between two words I have the following Greek Sentence which I want to process using OpenAI and get a value: Α. ΔΥΝ. 36111 Ημερ. Εγγρ. I tried the following prompt configuration: The number might be located next to the phrase Α. ΔΥΝ. or before the phrase Ημερ. Εγγρ. Please return the extracted number ev...
https://stackoverflow.com/questions/78617066/get-a-text-from-between-two-words
openai-api
1,718,271,714
se_78395237
stackoverflow
ARTIFICIAL_INTELLIGENCE
Query @azure/openai with images?
Query @azure/openai with images? On chat.openai.com I can upload an image and ask chatgpt a question about it, with the existing openai and @azure/openai api however there doesn't seem to be a way to do this? The ChatCompletion object in both cases only take text prompts. Is this feautre supported at an api level?
https://stackoverflow.com/questions/78395237/query-azure-openai-with-images
openai-api, azure-openai
1,714,226,374
se_77905570
stackoverflow
ARTIFICIAL_INTELLIGENCE
Langchain OpenAI invoke - unexpected keyword argument &quot;functions&quot;
Langchain OpenAI invoke - unexpected keyword argument &quot;functions&quot; from langchain.schema import HumanMessage, SystemMessage, AIMessage from langchain_openai import OpenAI from langchain.chains.openai_functions.tagging import create_tagging_chain from langchain.prompts import ChatPromptTemplate ...
https://stackoverflow.com/questions/77905570/langchain-openai-invoke-unexpected-keyword-argument-functions
openai-api, langchain, large-language-model
1,706,610,069
se_78613782
stackoverflow
ARTIFICIAL_INTELLIGENCE
Azure OpenAI: Where are Assistants API persistent resources stored?
Azure OpenAI: Where are Assistants API persistent resources stored? When interacting with the Assistants Api, some persistent resources are created, namely: Assistants, Threads and Messages. All have an unique ID and the API exposes methods/endpoints to retrieve these resources. I can't find anywhere in the documentat...
https://stackoverflow.com/questions/78613782/azure-openai-where-are-assistants-api-persistent-resources-stored
azure, openai-api, azure-openai, openai-assistants-api
1,718,207,736
se_75613656
stackoverflow
ARTIFICIAL_INTELLIGENCE
OpenAI Chat Completions API: How do I extract the message content from the response?
OpenAI Chat Completions API: How do I extract the message content from the response? When receiving a response from OpenAI's text-davinci-003 model, I was able to extract the text from the response with the following PHP code: $response = $response->choices[0]->text; Here was the text-davinci-003 response code: { "...
https://stackoverflow.com/questions/75613656/openai-chat-completions-api-how-do-i-extract-the-message-content-from-the-respo
php, openai-api, chatgpt-api
1,677,750,144
se_75614444
stackoverflow
ARTIFICIAL_INTELLIGENCE
OpenAI Chat Completions API: Why do I get NULL response?
OpenAI Chat Completions API: Why do I get NULL response? I am trying to carry out API calls to the newly release gpt-3.5-turbo model and have the following code, which should send a query (via the $query variable) to the API and then extract the content of a responding message from the API. But I am getting null respo...
https://stackoverflow.com/questions/75614444/openai-chat-completions-api-why-do-i-get-null-response
php, curl, openai-api, chatgpt-api
1,677,754,301
se_75616048
stackoverflow
ARTIFICIAL_INTELLIGENCE
OpenAI Chat Completions API error 400: &quot;Unexpected response code 400 for https://api.openai.com/v1/completions&quot; (migrating GPT-3 to GPT-3.5 API)
OpenAI Chat Completions API error 400: &quot;Unexpected response code 400 for https://api.openai.com/v1/completions&quot; (migrating GPT-3 to GPT-3.5 API) I have an Android application where I'm currently using the OpenAI Completions API for completions, and it works fine. Now after they released the OpenAI Chat Compl...
https://stackoverflow.com/questions/75616048/openai-chat-completions-api-error-400-unexpected-response-code-400-for-https
java, android, openai-api, chatgpt-api
1,677,763,532
se_75617865
stackoverflow
ARTIFICIAL_INTELLIGENCE
OpenAI Chat Completions API error: &quot;InvalidRequestError: Unrecognized request argument supplied: messages&quot;
OpenAI Chat Completions API error: &quot;InvalidRequestError: Unrecognized request argument supplied: messages&quot; I am currently trying to use OpenAI's most recent model: gpt-3.5-turbo. I am following a very basic tutorial. I am working from a Google Collab notebook. I have to make a request for each prompt in a li...
https://stackoverflow.com/questions/75617865/openai-chat-completions-api-error-invalidrequesterror-unrecognized-request-ar
python, openai-api, chatgpt-api
1,677,772,535
se_75625675
stackoverflow
ARTIFICIAL_INTELLIGENCE
OpenAI Chat Completions API error 400: &quot;&#39;user&#39; is not of type &#39;object&#39;&quot;
OpenAI Chat Completions API error 400: &quot;&#39;user&#39; is not of type &#39;object&#39;&quot; I share with you my code below to get a response from a POST request with R from the OpenAI Chat Completions API: param <- list(model = "gpt-3.5-turbo", messages = c("role" = "user", ...
https://stackoverflow.com/questions/75625675/openai-chat-completions-api-error-400-user-is-not-of-type-object
r, openai-api, chatgpt-api
1,677,838,076
se_75650840
stackoverflow
ARTIFICIAL_INTELLIGENCE
OpenAI Chat Completions API error 400: &quot;Bad Request&quot; (migrating from GPT-3 API to GPT-3.5 API)
OpenAI Chat Completions API error 400: &quot;Bad Request&quot; (migrating from GPT-3 API to GPT-3.5 API) I'm trying to call the Chat Completions API that was just released, but I'm getting a bad request error. var body = new { model = "gpt-3.5-turbo", ...
https://stackoverflow.com/questions/75650840/openai-chat-completions-api-error-400-bad-request-migrating-from-gpt-3-api-t
post, openai-api, chatgpt-api
1,678,105,619
se_75622285
stackoverflow
ARTIFICIAL_INTELLIGENCE
OpenAI Chat Completions API error: &quot;openai.createChatCompletion is not a function&quot;
OpenAI Chat Completions API error: &quot;openai.createChatCompletion is not a function&quot; I have this in my MERN stack code file, and it works well. exports.chatbot = async (req, res) => { console.log("OpenAI Chatbot Post"); const { textInput } = req.body; try { const response = await openai.createComp...
https://stackoverflow.com/questions/75622285/openai-chat-completions-api-error-openai-createchatcompletion-is-not-a-functio
axios, openai-api, chatgpt-api
1,677,805,169
se_75729386
stackoverflow
ARTIFICIAL_INTELLIGENCE
OpenAI Chat Completions API: Can I fine-tune the gpt-3.5-turbo model?
OpenAI Chat Completions API: Can I fine-tune the gpt-3.5-turbo model? I have a SQL table containing huge amounts of data, need to train an OpenAI model on the SQL table data using the Chat Completions API. I tried generating a SQL query using ChatGPT, but that didn't work as expected. Sometimes it generates inappropri...
https://stackoverflow.com/questions/75729386/openai-chat-completions-api-can-i-fine-tune-the-gpt-3-5-turbo-model
openai-api, chatgpt-api
1,678,771,842
se_75743057
stackoverflow
ARTIFICIAL_INTELLIGENCE
OpenAI Chat Completions API: How to implement a for loop with a list of questions in Python?
OpenAI Chat Completions API: How to implement a for loop with a list of questions in Python? I've been trying to run a for loop to run through the OpenAI Chat Completions API, but I don't seem to make it work. I'm puzzled. My goal is to have a list of all the responses. Basically, I have a list of sentences. Let's cal...
https://stackoverflow.com/questions/75743057/openai-chat-completions-api-how-to-implement-a-for-loop-with-a-list-of-question
python, list, for-loop, openai-api, chatgpt-api
1,678,874,085
se_75811594
stackoverflow
ARTIFICIAL_INTELLIGENCE
OpenAI Chat Completions API: Can I fine-tune a GPT-3.5 model?
OpenAI Chat Completions API: Can I fine-tune a GPT-3.5 model? I have fine-tuned an openai language model (curie) and was able to access the model via the openai.Completion.create method, but I could not access the fine-tuned model via openai.ChatCompletion.create. By researching a bit, I have found out that the proble...
https://stackoverflow.com/questions/75811594/openai-chat-completions-api-can-i-fine-tune-a-gpt-3-5-model
openai-api, chatgpt-api
1,679,484,025
se_75823578
stackoverflow
ARTIFICIAL_INTELLIGENCE
OpenAI Chat Completions API error 400: &quot;Unexpected response code 400 for https://api.openai.com/v1/chat/completions&quot; (migrating GPT-3 to GPT-3.5 API)
OpenAI Chat Completions API error 400: &quot;Unexpected response code 400 for https://api.openai.com/v1/chat/completions&quot; (migrating GPT-3 to GPT-3.5 API) I'm getting the following error: [3067] NetworkUtility.shouldRetryException: Unexpected response code 400 for https://api.openai.com/v1/chat/completions The ...
https://stackoverflow.com/questions/75823578/openai-chat-completions-api-error-400-unexpected-response-code-400-for-https
android, kotlin, openai-api, chatgpt-api
1,679,577,790
se_75899189
stackoverflow
ARTIFICIAL_INTELLIGENCE
OpenAI Chat Completions API error: &quot;Invalid URL (POST /chat/v1/completions)&quot;
OpenAI Chat Completions API error: &quot;Invalid URL (POST /chat/v1/completions)&quot; I followed a tutorial to make a ChatGPT-like app and got this error: Failed to load response due to { 'error' : { 'message' : 'Invalid URL (POST /chat/v1/completions)', 'type':'invalid_request_error', 'pa...
https://stackoverflow.com/questions/75899189/openai-chat-completions-api-error-invalid-url-post-chat-v1-completions
java, android, okhttp, openai-api, chatgpt-api
1,680,269,857
se_75909209
stackoverflow
ARTIFICIAL_INTELLIGENCE
OpenAI Chat Completions API error: &quot;Request failed with status code 404&quot;
OpenAI Chat Completions API error: &quot;Request failed with status code 404&quot; I'm working on a ChatGPT-like app using React and Axios for making API requests to OpenAI's Chat Completions API. However, I'm encountering a 404 error when trying to make a request. I'm hoping someone can help me identify the issue and...
https://stackoverflow.com/questions/75909209/openai-chat-completions-api-error-request-failed-with-status-code-404
javascript, node.js, reactjs, openai-api, chatgpt-api
1,680,388,778
se_75971578
stackoverflow
ARTIFICIAL_INTELLIGENCE
OpenAI Chat Completions API error: &quot;&#39;messages&#39; is a required property&quot; when testing the API with Postman
OpenAI Chat Completions API error: &quot;&#39;messages&#39; is a required property&quot; when testing the API with Postman How do I successfully get a completion back from the gpt-3.5-turbo model? This is what I've tried with Postman: post https://api.openai.com/v1/chat/completions body { "model":"gpt-3.5-turbo",...
https://stackoverflow.com/questions/75971578/openai-chat-completions-api-error-messages-is-a-required-property-when-test
openai-api, chatgpt-api
1,681,056,922
se_75987139
stackoverflow
ARTIFICIAL_INTELLIGENCE
OpenAI Chat Completions API: Why does it take so long to get a completion?
OpenAI Chat Completions API: Why does it take so long to get a completion? I'm trying to use GPT-3.5 in my Flutter app. I got answers but it takes 30-60 seconds to get a response. The code is the following: Future<String> getResponse(String message) async { OpenAI.apiKey = openApiKey; try { final chatCo...
https://stackoverflow.com/questions/75987139/openai-chat-completions-api-why-does-it-take-so-long-to-get-a-completion
flutter, dart, openai-api, chatgpt-api
1,681,223,886
se_76019941
stackoverflow
ARTIFICIAL_INTELLIGENCE
OpenAI Chat Completions API: Can I use a fine-tuned GPT-3 model with the GPT-3.5 API endpoint (error: &quot;Invalid URL (POST /v1/chat/completions)&quot;)?
OpenAI Chat Completions API: Can I use a fine-tuned GPT-3 model with the GPT-3.5 API endpoint (error: &quot;Invalid URL (POST /v1/chat/completions)&quot;)? After we create a fine-tuned model, how can we use it at /v1/chat/completions? We tried this but it gave an error curl --location 'https://api.openai.com/v1/chat/c...
https://stackoverflow.com/questions/76019941/openai-chat-completions-api-can-i-use-a-fine-tuned-gpt-3-model-with-the-gpt-3-5
openai-api, chatgpt-api
1,681,521,883
se_76084296
stackoverflow
ARTIFICIAL_INTELLIGENCE
OpenAI Chat Completions API error: &quot;Invalid URL (POST /v1/engines/gpt-3.5-turbo/chat/completions)&quot;
OpenAI Chat Completions API error: &quot;Invalid URL (POST /v1/engines/gpt-3.5-turbo/chat/completions)&quot; I'm using OpenAI to learn more about API integration, but I keep running into this code when running the Python program. I asked ChatGPT about the Invalid URL (POST /v1/engines/gpt-3.5-turbo/chat/completions) e...
https://stackoverflow.com/questions/76084296/openai-chat-completions-api-error-invalid-url-post-v1-engines-gpt-3-5-turbo
python, python-3.x, openai-api, chatgpt-api
1,682,245,287
se_76100086
stackoverflow
ARTIFICIAL_INTELLIGENCE
OpenAI Chat Completions API: Why am I not getting a response if the stream parameter is set to false?
OpenAI Chat Completions API: Why am I not getting a response if the stream parameter is set to false? You can see the $prompt value in my application below. When I type this promp value, chatGPT does not give results. But this is because "stream" => false in the params. If "stream" => true, chatGPT gives results. My q...
https://stackoverflow.com/questions/76100086/openai-chat-completions-api-why-am-i-not-getting-a-response-if-the-stream-param
php, openai-api, chatgpt-api
1,682,417,993
se_76133067
stackoverflow
ARTIFICIAL_INTELLIGENCE
OpenAI Chat Completions API error: &quot;Invalid URL (POST /v1/engines/gpt-3.5-turbo/chat/completions)&quot; (migrating GPT-3 to GPT-3.5 API)
OpenAI Chat Completions API error: &quot;Invalid URL (POST /v1/engines/gpt-3.5-turbo/chat/completions)&quot; (migrating GPT-3 to GPT-3.5 API) I've been fighting with this for hours. I'm no expert, clearly, but I've gotten this far. API set up, running on the front end. When I input the chat prompt, I get an error, and...
https://stackoverflow.com/questions/76133067/openai-chat-completions-api-error-invalid-url-post-v1-engines-gpt-3-5-turbo
python-3.x, chatbot, openai-api, chatgpt-api
1,682,713,657
se_76162470
stackoverflow
ARTIFICIAL_INTELLIGENCE
OpenAI Chat Completions API error: &quot;Request failed with status code 400&quot;
OpenAI Chat Completions API error: &quot;Request failed with status code 400&quot; I want to upgrade my GPT-3 to GPT-3.5 Turbo in Node.js. But I have a problem with that. My code: const askAi = async (message) => { try { const openAIInstance = await _createOpenAIInstance() const response = await openAIInsta...
https://stackoverflow.com/questions/76162470/openai-chat-completions-api-error-request-failed-with-status-code-400
node.js, openai-api, chatgpt-api
1,683,107,296
se_76347639
stackoverflow
ARTIFICIAL_INTELLIGENCE
OpenAI Chat Completions API: Why does the API report more prompt_tokens used for the messages parameter than I thought it would?
OpenAI Chat Completions API: Why does the API report more prompt_tokens used for the messages parameter than I thought it would? I'm using the gpt-3.5-turbo model and sending the following message to the OpenAI API: What is the most beautiful country? I'm sending it as a JSON object: {"role":"user","content":"What i...
https://stackoverflow.com/questions/76347639/openai-chat-completions-api-why-does-the-api-report-more-prompt-tokens-used-for
openai-api, chatgpt-api
1,685,201,377
se_76749071
stackoverflow
ARTIFICIAL_INTELLIGENCE
OpenAI Chat Completions API error in WordPress PHP code: &quot;Invalid URL (POST /v4/engines/davinci-codex/completions)&quot;
OpenAI Chat Completions API error in WordPress PHP code: &quot;Invalid URL (POST /v4/engines/davinci-codex/completions)&quot; I've asked ChatGPT to generate a code to be incorporated in WordPress function.php to generate tags automatically for all my newly created or updated posts. Here is the code: function add_tags_...
https://stackoverflow.com/questions/76749071/openai-chat-completions-api-error-in-wordpress-php-code-invalid-url-post-v4
php, openai-api, chatgpt-api
1,690,126,563
se_76779241
stackoverflow
ARTIFICIAL_INTELLIGENCE
OpenAI Chat Completions API error: &quot;StatusCode: 429, ReasonPhrase: &#39;Too Many Requests&#39;&quot;
OpenAI Chat Completions API error: &quot;StatusCode: 429, ReasonPhrase: &#39;Too Many Requests&#39;&quot; I am passing requests to the OpenAI API with .net core web API. I am getting an error. I have a balance in my OpenAI account. Code: public async Task<string> SendPromptAndGetResponse() { const string r...
https://stackoverflow.com/questions/76779241/openai-chat-completions-api-error-statuscode-429-reasonphrase-too-many-req
.net-core, openai-api, chatgpt-api
1,690,456,875
se_76962144
stackoverflow
ARTIFICIAL_INTELLIGENCE
OpenAI Chat Completions API: How do I make the API return a completion faster?
OpenAI Chat Completions API: How do I make the API return a completion faster? I'm using the OpenAI Chat Completions API to generate descriptions and short descriptions of many products. I developed a tool that can generate it, but it takes around 40 seconds to generate and create it. I would like to know if there are...
https://stackoverflow.com/questions/76962144/openai-chat-completions-api-how-do-i-make-the-api-return-a-completion-faster
python, openai-api, chatgpt-api
1,692,799,470
se_77127630
stackoverflow
ARTIFICIAL_INTELLIGENCE
OpenAI Chat Completions API error: Why do I get an HTTP error 400 on the ESP32 board?
OpenAI Chat Completions API error: Why do I get an HTTP error 400 on the ESP32 board? I was planning to make a project to receive the response given by chatgpt to my ESP32 board for a given text. I tried the following, but after connecting to the WiFi, the serial plotter shows the message HTTP error 400. I double-chec...
https://stackoverflow.com/questions/77127630/openai-chat-completions-api-error-why-do-i-get-an-http-error-400-on-the-esp32-b
arduino, artificial-intelligence, openai-api, arduino-esp32, chatgpt-api
1,695,043,553