Questions tagged [gpt-3]

Use this tag with Generative Pre-trained Transformer 3 (GPT-3). Do not use with GPT-2 or the ad tagging library (GPT).

References:

GPT-3 (Wikipedia)

Related tags:

296 questions
5
votes
2 answers

How to save pre-trained API on GPT-3?

I have a question about GPT-3. As we know we can give some examples to the network and "adjust" the model. Show examples to the model. Save these examples. Reuse the APIs. import openai class Example(): """Stores an input, output pair and…
dnobl
  • 147
  • 8
4
votes
2 answers

OpenAI GPT-3 API error: "Invalid URL (POST /v1/chat/completions)"

Here is my code snippet: const { Configuration, OpenAI, OpenAIApi } = require ("openai"); const configuration = new Configuration({ apiKey: 'MY KEY' }) const openai = new OpenAIApi(configuration) async function start() { const response =…
Das CO
  • 53
  • 1
  • 4
4
votes
2 answers

Getting RateLimitError while implementing openai GPT with Python

I have started to implement openai gpt model in python. I have to send a single request in which I am getting RateLimitError. My code looks like this import openai key = '' openai.api_key = key model_engine = 'text-ada-001' prompt =…
Shubham Srivastava
  • 1,190
  • 14
  • 28
4
votes
0 answers

Can i train chatgpt with custom data from a database?

Let's say I'm a law firm and I have this tables(basic structure) users: name, email, telephone etc.. employees: kind, name, email, telephone etc.. cases: case name, casenumber, parties names, attorney assigned, entries, last update, status,…
John Balvin Arias
  • 2,632
  • 3
  • 26
  • 41
4
votes
2 answers

OpenAI GPT-3 API: Why do I get only partial completion? Why is the completion cut off?

I tried the following code but got only partial results like [{"light_id": 0, "color I was expecting the full JSON as suggested on this page: https://medium.com/@richardhayes777/using-chatgpt-to-control-hue-lights-37729959d94f import json import…
shantanuo
  • 31,689
  • 78
  • 245
  • 403
4
votes
2 answers

How to use the OpenAI stream=true property with a Django Rest Framework response, and still save the content returned?

I'm trying to use the stream=true property as follows. completion = openai.Completion.create( model="text-davinci-003", prompt="Write me a story about dogs.", temperature=0.7, max_tokens=MAX_TOKENS, …
rd360
  • 186
  • 8
4
votes
1 answer

OpenAI Unity - POST Request not working properly (400 status)

I'm connecting GPT3 OpenAI but I just cant manage to make a proper POST request to it (I'm following some guides but for them it works...). private IEnumerator Upload ( ) { WWWForm form = new WWWForm(); form.AddField ( "prompt", prompt ); …
Dolev Mitz
  • 103
  • 14
4
votes
3 answers

How to keep the conversation going with OpenAI API PHP sdk

I'm trying to keep a conversation going using the completion() method with OpenAI PHP SDK. Prompt #1: "How Are You?" Prompt #2: "What I asked you before?" but the AI seems to forget what i asked before. and it reply with random answers to the…
Evil0x
  • 41
  • 1
  • 2
4
votes
5 answers

How to get the items inside of an OpenAIobject in Python?

I would like to get the text inside this data structure that is outputted via GPT3 OpenAI. I'm using Python. When I print the object I get: JSON: { "choices": [ …
Katie Melosto
  • 1,047
  • 2
  • 14
  • 35
4
votes
1 answer

Open AI generate longer text with GPT-3

I'm playing with the GPT-3 API of OPENAI but I struggle to find a way to make long enough generated text. Here is my piece of code : import os import openai # export OPENAI_API_KEY='get_key_from_openai' openai.api_key =…
Aydin Abiar
  • 334
  • 3
  • 11
4
votes
2 answers

Is there a known workaround for the max token limit on the input to GPT-3?

For a bit of context, I recently started working on a personal project that accepts the URL of some recipe web page, pulls the HTML, converts the HTML to simplified markdown (this is the GPT-3 part), then sends that markdown to a thermal receipt…
Chris Doohan
  • 61
  • 1
  • 3
4
votes
1 answer

GPT-3 fine tuning Error: Incorrect API key provided

I'm following this tutorial to fine-tune a GPT-3 model. However, when I run this part of the code: # Enter credentials %env OPENAI_API_KEY= "" !openai api fine_tunes.create \ -t dw_train.jsonl \ -v dw_valid.jsonl \ -m $model…
craftApprentice
  • 2,697
  • 17
  • 58
  • 86
4
votes
3 answers

How to fine tune fine tune GitHub Copilot?

We can fine tune language models like BERT, GPT-3. Can I fine tune GitHub Copilot model? I have already looked into examples from https://copilot.github.com/ but cant find the details. Would really appreciate if someone had fine tuned Github…
Exploring
  • 2,493
  • 11
  • 56
  • 97
4
votes
3 answers

Can I create a fine-tuned model for OpenAI API Codex models?

I'd like to translate user requests into tickets in some sort of structured data format, e.g. JSON. For example: User: I want to order two chairs and a desk with three drawers on the left side. Output: { "type": "furniture", "items": [ …
xaxa
  • 1,057
  • 1
  • 24
  • 53
4
votes
3 answers

GPT-3 davinci gives different results with the same prompt

I am not sure if you have access to GPT-3, particularly DaVinci (the complete-a-sentence tool). You can find the API and info here I've been trying this tool for the past hour and every time I hit their API using the same prompt (indeed the same…
Duy Bui
  • 1,348
  • 6
  • 17
  • 38
1
2
3
19 20