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

Stablebaseline3 / Gym / Python : RuntimeError: CUDA error: device-side assert triggered CUDA kernel errors might be asynchronously reported at some

My specs are i5 9th gen gtx 1650 4gb gpu memory 16gb ram (Not potato) Im trying to do Realtime Yolo v7 it outputs like 5 fps Any ideas to get more fps?
0
votes
1 answer

Open AI Gym Observation Space shape Problem

Im trying to solve the Yatzee game once and forever using reinforcement learning. Sadly when i check the gyms conformity with stable baselines, it is critisizing the shape of my observation space. So ive put a print statement in the constructor…
noMatt
  • 11
  • 2
0
votes
1 answer

Trouble retrieving value from a list inside a Python dictionary

I am developing a Discord bot in Python with py-cord and I have implemented the OpenAI API to allow users to query the AI and modify the different weights and biases. I am trying to make the weights specific to each guild, so people in one server…
0
votes
4 answers

"Malformed API key in .env" when setting up OpenAI API Access

I am trying to use OpenAI's API to play with some of the examples they have. However, when I go to load my API key, I get errors. I created a ".env" file and did: OPENAI_API_KEY=XYZ-123 and then in Python I have the following: import os import…
logankilpatrick
  • 13,148
  • 7
  • 44
  • 125
0
votes
3 answers

How do I return OpenAI's text from the completion response?

const gptResponse = await openai .createCompletion({ model: "davinci", prompt, max_tokens: 60, temperature: 0.9, presence_penalty: 0, frequency_penalty: 0.5, best_of: 1, n: 1, …
wolfdmon
  • 1
  • 1
  • 1
0
votes
0 answers

How can I implement text classification for the purpose of matching using GPT-3?

I have tried fine tuning a GPT-3 model for the purpose of text classification to classify whether two names match such as 'William Jonathan' and 'William J' and the label would be yes/no, yes indicating that two names are matching and no indicating…
0
votes
1 answer

Combine GPT3 with RASA

I am trying to integrate rasa with gpt3, but not getting the proper response. Can help me out to look at my code and tell me issue. def gpt3(text): response = openai.Completion.create( model="code-cushman-001", # engine="ada", …
0
votes
0 answers

aws lambda function with layer works perfectly in testing on aws, but doesn't return body to front end fetch

I have a simple openai lambda with a layer that gives me what I want when I test it, but when I try to actually use it, I get no body if it depends on an awaited promise. I can pass an explicit value and it returns, but the minute I use the await…
Joel Hager
  • 2,990
  • 3
  • 15
  • 44
0
votes
0 answers

I want to import after install other packages in pyscript

I want to install packages like openai or transform. - transformer - openai Continue Loading runtime... Runtime created... The Initializing components... window appears.
이승우
  • 5
  • 2
0
votes
1 answer

OpenAI API Quickstart tutorial - POST http://localhost:3000/api/generate 500 (Internal Server Error)

Im new to OpenAI's API and am following the Quickstart tutorial found here: https://beta.openai.com/docs/quickstart/build-your-application I just cloned their GitHub repo (git clone https://github.com/openai/openai-quickstart-node.git) and when I…
sadnapoleon
  • 536
  • 1
  • 4
  • 13
0
votes
2 answers

Trouble running openai gym environment on google colab

Error that I'm struggling with I'm trying to use MarsExplorer (https://github.com/dimikout3/MarsExplorer) in google colab, but I'm struggling with properly importing it. I was able to successfully clone the repo, but when I try to run the demo…
0
votes
1 answer

I can't modify xml files from mujoco py

I want to make my custom mujoco gym env, but since it is hard, I deleted the xml script of hopper.xml and replace with the code I write. So if I do ''' env = gym.make("Hopper-v4") env.render() ''' I thought I could see the xml file I write. But…
Hobbit
  • 1
0
votes
1 answer

What is the best way to make mujoco environment of my own?

I want to make a 3D model of reaction-wheel(https://github.com/simplefoc/Arduino-FOC-reaction-wheel-inverted-pendulum), using mujoco. And then I'll use reinforcement learning in mujoco environment to keep its balance. Is it possible to build a env…
Hobbit
  • 1
0
votes
0 answers

OpenAi API Server error 500 text-curie-001

I have a site that is returning a server error 500 when requesting data from OpenAi api. I'm using the text-curie-001. I'm a newbie with this type of thing so I apologise in advance if I've got something totally wrong. You can see in the console how…
Sambuxc
  • 425
  • 2
  • 11
  • 26
0
votes
1 answer

For OpenAI's gym, is it possible to render without using the gym step function?

In simulating a trajectory for a OpenAI gym environment, such as the Mujoco Walker2d, one feeds the current observation and action into the gym step function to produce the next observation. However, there appears to be no way render a given…
John J
  • 47
  • 2
  • 6