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
0
votes
0 answers

GPT Index: Issue using ComposableGraph with Vector Stores

I am having issue with implementing Vector Stores with composability from llama_index.composability import ComposableGraph index1 = GPTQdrantIndex(doc1, client=qdrant_client,collection_name="index1") index1.set_text("S3document1") index2 =…
0
votes
1 answer

Chat bot not sending message to API

I asked chat gpt to write a chat bot code modeled on gpt3, and he actually wrote it. The site was created, but messages could not be sent. I also got a gpt3 api key and used it, but it doesn't seem to work well. What's the problem? Below is the code…
이춘자
  • 9
  • 1
0
votes
1 answer

Does Visual Studio Code support Environment Variables for the ChatGPT extension?

I would like to open the editor and be able to use the ChatGPT extension without needing to log in via browser or store the OpenAI api key in a workspace file. Ideally, I would be able to use the environment variable stored in .zshenv. I know that…
Azul
  • 581
  • 4
  • 12
0
votes
1 answer

OpenAI GPT-3 API: How does it count tokens for different languages?

We all know that GPT-3 models can accept and produce all kinds of languages such as English, French, Chinese, Japanese and so on. In traditional NLP, different languages have different token-making methods. For those Alphabetic Languages such as…
dongrixinyu
  • 172
  • 2
  • 14
0
votes
1 answer

OpenAI GPT-3 API: How to preserve formatting when pasting content into an Excel cell?

I'm trying to create a fine tuned GPT-3 model. to that end, I have some content that i've formatted in word that im trying to bring to excel (in order to import the training dataset). My inputs are in the format: *Point A *Subpoint A1 …
galeej
  • 535
  • 9
  • 23
0
votes
2 answers

OpenAI GPT-3 API: How to parse the response into an ordered list or dictionary?

GPT-3 is amazing, but parsing its results is a bit of a headache, or I'm missing something here? For example, I'm asking GPT-3 to write something about "digital marketing" and it's returning back some interesting stuff: \n\n1. Topic: The Benefits of…
Dany M
  • 760
  • 1
  • 13
  • 28
0
votes
1 answer

Context window length in OpenAI API Codex models

Is the completion window length included in the context window length for OpenAI Codex models? For da-vinci, the context window length is set to 4000 tokens. From what I understand, as an example, if the prompt length is 3500 tokens, then the…
Exploring
  • 2,493
  • 11
  • 56
  • 97
0
votes
1 answer

OpenAI API error: "You didn't provide an API key. You need to provide your API key in an Authorization header using Bearer auth"

I am creating a PHP script to access Open Ai's API, to ask a query and get a response. I am getting the following error: You didn't provide an API key. You need to provide your API key in an Authorization header using Bearer auth (i.e.…
sw123456
  • 3,339
  • 1
  • 24
  • 42
0
votes
1 answer

Discordbot.py:NotFound: 404 Not Found (error code: 10062): Unknown interaction

Here is the code @bot.tree.command(description="create a txt with chat-gpt") async def gpt(interaction: discord.Interaction, *, prompt:str): async with aiohttp.ClientSession() as session: payload = { …
0
votes
1 answer

[InteractionAlreadyReplied]: The reply to this interaction has already been sent or deferred

It says [InteractionAlreadyReplied]: The reply to this interaction has already been sent or deferred. But inreality i am using editReply I am having issue in logging error, it works fine with try and else but it shows [InteractionAlreadyReplied]:…
Darcel
  • 1
  • 1
0
votes
1 answer

Not getting proper response from GPT-3 using SDK in JS

When using createCompletion I get a response but it doesn't have the actual text response. In textPayload it has "text: 'package com.example.demo.controller;'," Below is my code const openai = new OpenAIApi(configuration); async function step1()…
Steven
  • 149
  • 1
  • 10
0
votes
1 answer

OpenAI GPT-3 API error: "This model's maximum context length is 2049 tokens"

I have two issues relating to the response result from OpenAI completion. The following result doesn't return back the full text when I give a content of 500 words and prompt with "Fix grammar mistakes" (Is tokens issue?) The second issue is when…
Mostafa Ezzat
  • 29
  • 1
  • 11
0
votes
1 answer

How do I make an API call to GPT-3 correctly?

I am trying to make an API call to GPT-3 but I am getting an error (Bad request 400). Here is my code: url = "https://api.openai.com/v1/engines/gpt-3/jobs" headers = { "Content-Type": "application/json", "Authorization": "sk-apikey" } data…
Kaptan Singh
  • 221
  • 1
  • 3
  • 11
0
votes
0 answers

Python Telegram bot chat gpt

import telebot import requests import time TELEGRAM_TOKEN = "my-token" bot = telebot.TeleBot(TELEGRAM_TOKEN) @bot.message_handler(commands=['search']) def handle_search(message): # extract the search word from the message text …
0
votes
2 answers

How to avoid word limit in OpenAI API in R?

I registered at this link to get a key for the OpenAI API. And I used the "chatgpt" package in R. library(chatgpt) And set environment: Sys.setenv(OPENAI_API_KEY = "sk-YOURAPI") I used this function: chatgpt::ask_chatgpt("How to make a strawberry…
neves
  • 796
  • 2
  • 10
  • 36