Questions tagged [openai-api]

OpenAI makes several AI products, including ChatGPT, Dall-E, Whisper. Use for questions about the OpenAI API, and not for general support.

Use for questions about using the OpenAI API. All question should be according to the scope of Stack Overflow and following the How to ask a good question and Expected Behavior guidelines.

Before asking a question, read the documentation.

If you will include non-original code, be sure to provide proper attribution.

Don't use for questions about using ChatGPT as an end-user. Don't use for questions about responses given by ChatGPT that aren't directly related to a programming issue using the OpenAI API.

Related tags:


OpenAI Community

https://community.openai.com/

1620 questions
0
votes
0 answers

embeddings distribution wrong

I'm having the code below which is supposed to plot word embeddings. Since it creates a list of embeddings of identical words I would have expected a cluster of points - all embeddings at one point. But they are scattered like this. Any Idea what I…
HeikoG
  • 1,793
  • 1
  • 20
  • 29
0
votes
1 answer

Integrate OpenAI on Google Spreadsheet

I'm creating a simple script to call the OpenAI API through Google App Script and send it several prompts at the same time to write the answers in column B: For that purpose, I create an array with the prompts from column A, I loop through them…
0
votes
0 answers

Authorization function for R program, trying to use openai package, yet still getting an error

I am trying to use the openai package in R. I have used the Sys.setenv function and filled in the prompt. Although I have entered the API key in the code, this error still comes up: Error: OpenAI API request failed [401]: You didn't provide an API…
0
votes
1 answer

openai python seems to be only generating the same image from openai.Image.create_edit

When calling the openai.Image.create_edit function and sending for a edit to an existing picture with a mask it seems to only generate the same image that I submit. import os import openai class OpenAIConnect: def OpenAIConnectToSource(): …
h ca
  • 11
  • 3
0
votes
1 answer

How to get Open AI API to return part of the text result?

I am using the Python Open AI API to give definitions for words automatically and return the text result, but it is giving too much text. response = openai.Completion.create( model="text-davinci-003", prompt="give a definition for…
0
votes
1 answer

How can I create OAuth based login with Open AI api?

I'm trying to build an app using GPT3 APIs and would like users to login to the app using OpenAI's credentials so as to use their account for GPT3 APIs requests, however there is no support for 3rd party login so far in Open AI's documentation.…
Suyash
  • 190
  • 1
  • 10
0
votes
1 answer

OpenAI call from .net API

I am attempting to replicate a call I can make within Postman within my .net Core API. Within Postman I am performing a POST call to: https://api.openai.com/v1/completions In the body I pass the following: { …
pachyderm94
  • 431
  • 1
  • 5
  • 15
0
votes
2 answers

Combining responses from for loop and exporting them in additional column to excel

Below is the python code I have. The output is exactly what I am looking for however I cannot figure out how to put the multiple responses that is printed out by the last line of python code to return back all responses into a new column in a…
Fox
  • 1
0
votes
0 answers

My GPT3 discord bot send multiple replies instead of 1:

I created a python chat discord bot. However when asking it a question in direct messages it replies multiple times. Sometimes it replies (highlighted messages) other times it just posts a normal message not surrounded by ``` and I can't for the…
Nomad
  • 11
  • 3
0
votes
0 answers

Generate keywords from text content using OpenAI

everyone. So i've developed some basic OpenAI queries before like generating title, meta tags and content out of a simple prompt. Now i'm facing this situation: how to generate keywords out of an existing piece of text content using OpenAI, is this…
Eduardo Escobar
  • 3,301
  • 2
  • 18
  • 15
0
votes
0 answers

Failed to create GLFW Window while trying to run Mujoco (UBUNTU)

So, I am trying to install, and run Mujoco-py on my ubuntu. Everything went well but, I cant install the libglew1.5. I searche for it in the Ubuntu Package Archives, but no luck. Then I skipped that part, but when im trying to run the example its…
0
votes
1 answer

Error with discord bot 1.7.3 giving very long error

I was trying to make a discord chat bot but I got this error I am not sure what to do by the way I am using discord 1.7.3 here is the code by the way the DISCORD KEY and OPENAI-KEY are not the problem those are to hide my openai key and discord bot…
0
votes
0 answers

Employing a large discrete observation space in OpenAI Gym

I am creating a custom environment in OpenAI Gym, and I'm having some trouble navigating the observation space. Every timestep, the agent is given two potential students to accept or deny admission to - these are randomized and are part of the…
0
votes
3 answers

How to extract required information using GPT-3 API

I tried the steps mentioned in this article. https://matthewbilyeu.com/blog/2022-09-01/responding-to-recruiter-emails-with-gpt-3 There is a screenshot that says: Here's an example from the OpenAI Playground. I typed all the text in "playground" but…
shantanuo
  • 31,689
  • 78
  • 245
  • 403
0
votes
0 answers

Dataset for Employee welcome email For training OpenAi model with Prompt and Completion

wondering if anyone can help with this… What is the best way to prepare dataset for Employe Welcome emails. Also what would be the effective way to write prompt and completion for welcome emails and use sender and receiver names and job roles in…