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

Encoding issues on OpenAI predictions after fine-tuning

I'm following this OpenAI tutorial about fine-tuning. I already generated the dataset with the openai tool. The problem is that the outputs encoding (inference result) is mixing UTF-8 with non UTF-8 characters. The generated model looks like…
4
votes
3 answers

GPT-3 Prompts for Sentence-Level and Paragraph-Level Text Summarization / Text Shortening / Text Rewriting

Need effective prompts for GPT-3 that can accomplish this 'programming' task. Creating effective GPT-3 prompts has essentially become a new form of programming (giving a computer instructions to complete a task). There are getting to be…
user2330237
  • 1,629
  • 5
  • 20
  • 39
4
votes
2 answers

OpenAI API and GPT-3, not clear how can I access or set up a learning/dev?

I am reading tons of GPT-3 samples, and came cross many code samples. None of them mentions that how and where I can run and play with the code myself... and especially not mentioning I can not. So I did my research, and concluded, I can not, but I…
g.pickardou
  • 32,346
  • 36
  • 123
  • 268
3
votes
0 answers

Azure OpenAI latency spikes (3-20 minutes!)

We're prototyping a chatbot application using Azure OpenAI gpt-3.5-turbo model using the standard tier. We're facing random latency bursts, which sometimes go between 3-20 minutes. Below I have screenshots with the metrics provided by the portal. As…
3
votes
1 answer

Using GPT 4 or GPT 3.5 with SQL Database Agent throws OutputParserException: Could not parse LLM output:

I am using the SQL Database Agent to query a postgres database. I want to use gpt 4 or gpt 3.5 models in the OpenAI llm passed to the agent, but it says I must use ChatOpenAI. Using ChatOpenAI throws parsing errors. The reason for wanting to switch…
RamlahAziz
  • 47
  • 10
3
votes
1 answer

Chrome Extension with Chat GPT-3.5 - "you must provide a model parameter"

I am making a chrome extension that uses Chat GPT 3.5 and have coded a simple prompt to send to the API using openai api and returns a value in the console. I have my code below and keep getting this error... error: code: null message: "you…
3
votes
2 answers

OpenAI GPT-3 API: What is the difference between davinci and text-davinci-003?

I'm testing the different models for OpenAI, and I noticed that not all of them are developed or trained enough to give a reliable response. The models I tested are the following: model_engine = "text-davinci-003" model_engine = "davinci"…
Waly
  • 157
  • 1
  • 4
  • 12
3
votes
3 answers

Create multi-message conversations with the GPT API

I am experimenting with the GPT API by OpenAI and am learning how to use the GPT-3.5-Turbo model. I found a quickstart example on the web: def generate_chat_completion(messages, model="gpt-3.5-turbo", temperature=1, max_tokens=None): headers =…
dairy
  • 131
  • 2
  • 10
3
votes
1 answer

Getting missing pandas error while trying to fine-tune GPT3

I'm using the following command : openai tools fine_tunes.prepare_data -f ./data.jsonl and I'm getting the following error: Analyzing... Traceback (most recent call last): File "/Users/jyothiraditya/mambaforge/bin/openai", line 8, in
JYOTHIR
  • 51
  • 2
3
votes
1 answer

how do i stop this encoding error in the openai python module?

i'm trying to make a chat completion bot using opeAI's GPT engine that takes voice input and outputs a text to speech file, however, i keep getting an encoding error that i dont understand import os import speech_recognition as sr import openai from…
3
votes
1 answer

OpenAI GPT-3 API: How to make a model remember past conversations?

Is there a way to train a Large Language Model (LLM) to store a specific context? For example, I had a long story I want to ask questions about, but I don't want to put the whole story in every prompt. How can I make the LLM "remember the story"?
nerdlyfe
  • 487
  • 7
  • 21
3
votes
1 answer

OpenAI API: openai.api_key = os.getenv() not working

I am just trying some simple functions in Python with OpenAI APIs but running into an error: I have a valid API secret key which I am using. Code: >>> import os >>> import openai >>> openai.api_key = os.getenv("I have placed the key here") >>>…
Ranadip Dutta
  • 8,857
  • 3
  • 29
  • 45
3
votes
3 answers

OpenAI API: Can I remove the line break from the response with a parameter?

I've starting using OpenAI API in R. I downloaded the openai package. I keep getting a double linebreak in the text response. Here's an example of my code: library(openai) vector = create_completion( model = "text-davinci-003", prompt = "Tell…
James
  • 463
  • 4
  • 13
3
votes
2 answers

How to fix Python pip install openai error: subprocess-exited-with-error

I'm trying to install OpenAI with Python 3.11, Windows OS, pip fully upgraded, and I got this error. Here is the full error message: Collecting openai Using cached openai-0.26.0.tar.gz (54 kB) Installing build dependencies ... done Getting…
Ljyeon
  • 43
  • 1
  • 4
3
votes
1 answer

OpenAI GPT-3 API error 429: "Request failed with status code 429"

I'm trying to connect OpenAI API to my Vue.js project. Everything is OK but every time I try to POST request, I get a 429 status code (too many request) but I didn't even had the chance to make one. Any help? Response: { "message": "Request…
1 2
3
19 20