openai

openai command not found (mac)

openai command not found (mac) Question: I’m trying to follow the fine tuning guide for Openai here. I ran: pip install –upgrade openai Which install without any errors. But even after restarting my terminal, i still get zsh: command not found: openai Here is the output of echo $PATH: /bin:/usr/bin:/usr/local/bin:/Users/nickrose/Downloads/google-cloud-sdk/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin Here is the output of …

Total answers: 8

How to get token or code embedding using Codex API?

How to get token or code embedding using Codex API? Question: For a given code snippet, how to get embedding using the Codex API? import os import openai import config openai.api_key = config.OPENAI_API_KEY def runSomeCode(): response = openai.Completion.create( engine="code-davinci-001", prompt=""""n1. Get a reputable free news apin2. Make a request to the api for the latest …

Total answers: 2

How to use files in the Answer api of OpenAI

How to use files in the Answer api of OpenAI Question: As finally OpenAI opened the GPT-3 related API publicly, I am playing with it to explore and discover his potential. I am trying the Answer API, the simple example that is in the documentation: https://beta.openai.com/docs/guides/answers I upload the .jsonl file as indicated, and I …

Total answers: 1

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

How to get th content of a string inside a request response? Question: 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, top_p=1, frequency_penalty=0, presence_penalty=0 ) And when I print …

Total answers: 3