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
1 answer

openAI DALL-E ModuleNotFoundError

I installed DALL-E following the instructions on https://github.com/openai/DALL-E and got : ---> 10 from dall_e import map_pixels, unmap_pixels, load_model 11 from IPython.display import display, display_markdown 12 ModuleNotFoundError: No…
Itay
  • 313
  • 2
  • 3
  • 13
0
votes
1 answer

I can access my heroku free subdomain site via a browser, but I can't ping to it in the terminal

I have this site at heroku that I am trying to ping. It says Ping request could not find host https://doc-hero.herokuapp.com/. Please check the name and try again. even though I can still open the site on a browser. I thought it was an issue with…
0
votes
1 answer

CarRacing-v0 in Gym: The screen is totally black when I run the environment

I'm trying to run one of the gym environments, CarRacing, with the code from (https://gist.github.com/lmclupr/b35c89b2f8f81b443166e88b787b03ab) modified to work with the current versions of Keras etc. And it works: that is, it starts training and,…
0
votes
1 answer

How to fix Heroku Openai Django Deployment Error?

When deploying a new Heroku App Using a Django Docker Enviorment Inside my requirments.txt I have openai==0.11.0 When doing git push heroku master During Build I get this Error Building wheel for pandas (pyproject.toml): finished with status…
A.Fox
  • 1
0
votes
1 answer

OpenAI retrieve file content

Unable to retrieve the content of file uploaded already. Kindly suggest what is going wrong? I have tried for each type of file: search, classification, answers, and fine-tune. Files upload successfully but while retrieving content it shows an…
Saddam
  • 23
  • 1
  • 5
0
votes
2 answers

can't use pip when I activate venv

Most of you may know OpenAI playground, so I built an function generator app and followed all the instructions but I can't launch it via venv-python. I can actually install the requirements using pip while venv is not active and can launch the site…
celo
  • 41
  • 4
0
votes
1 answer

How do I fix the TypeError: load() missing 1 required positional argument: 'Loader' error in Colab?

I'm trying to run this notebook in Colab. from openai.embeddings_utils import get_embedding # This will take just under 10 minutes df['babbage_similarity'] = df.combined.apply(lambda x: get_embedding(x,…
Mashu
  • 79
  • 2
  • 5
0
votes
1 answer

Choosing a good prompt for GPT-3

I am trying to generate a quiz from a text that look like this: Text: "Mary has little lamb and John has a cow. The lamb is one month old. It eats grass and milk, which Mary brings from the the farm." Keywords: "lamb", "cow", "one month old",…
futuredataengineer
  • 442
  • 1
  • 3
  • 14
0
votes
0 answers

Calling remote API with "async" in ASMX webservice not working

I am trying to call a remote API from OpenAI. However, I want to call the remote API via my C# ASMX web service. (ASP.NET webforms project .NET 4.7) The problem I am facing is the the remote call does not completed, i.e. the execution does not go…
user1144596
  • 2,068
  • 8
  • 36
  • 56
0
votes
0 answers

Keras-RL error when training agent for tic tac toe game: "expected dense_16_input to have 2 dimensions, but got array with shape (1, 1, 3, 3)"

I just recently tried using Keras-RL to train an agent in a tictactoe game I made to practice making custom environments for my final third year project which involves doing this but on a much larger proper game. At the following step I get an error…
0
votes
1 answer

Confused about implementation of skip layers in CNN

I'm reading about AlphaGo Zero's network structure and came across this cheatsheet: I'm having a hard time understanding how skip connections work dimensionally. Specifically, it seems like each residual layer ends up with 2 stacked copies of the…
TheDarBear
  • 199
  • 1
  • 1
  • 13
0
votes
1 answer

issues applying q-learning with custom environment (python, reinforcement learning, openai)

I am trying to apply q-learning to my custom reinforcement learning environment that is representing energy storage arbitrage (electricity trading with a battery,charge when prices are low and discharge when prices increase). The environment works…
Theodorska
  • 49
  • 7
0
votes
3 answers

How to get th content of a string inside a request response?

I was coding a webapp based on GPT-2 but it was not good so I decided to switch to official OpenAI GPT-3. So I make that request: response = openai.Completion.create( engine="davinci", prompt="Hello", temperature=0.7, max_tokens=64, …
oscarEGN
  • 3
  • 1
  • 2
0
votes
1 answer

can return False in env.step be True in someway? (gym)

While I was trying to figure out the reset condition of flocking env(from gym-flock), I came up with this question: can 'return False' return True in someway?? The core codes are: 1: test_model.py…
0
votes
1 answer

ValueError: Input 0 of layer dense is incompatible with the layer: expected axis -1 to have value 8 but received input with shape [None, 1]

I'm training a model for the OpenAI lunarLander-v2 environment. I've succesfully done this using a Sequential model, but when trying to use the functional model, I get some errors with tensorshapes being incompatible. Here is the code for the Agent…