All Projects → sashabaranov → go-gpt3

sashabaranov / go-gpt3

Licence: Apache-2.0 license
OpenAI GPT-3 API wrapper for Go

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to go-gpt3

prompts-v1
A free and open-source curation of prompts for OpenAI's GPT-3.
Stars: ✭ 18 (-83.18%)
Mutual labels:  openai, gpt-3
prompts-ai
Advanced playground for GPT-3
Stars: ✭ 156 (+45.79%)
Mutual labels:  gpt-3
clip-guided-diffusion
A CLI tool/python module for generating images from text using guided diffusion and CLIP from OpenAI.
Stars: ✭ 260 (+142.99%)
Mutual labels:  openai
gpt-neo-fine-tuning-example
Fine-Tune EleutherAI GPT-Neo And GPT-J-6B To Generate Netflix Movie Descriptions Using Hugginface And DeepSpeed
Stars: ✭ 157 (+46.73%)
Mutual labels:  gpt-3
graphsignal
Graphsignal Python agent
Stars: ✭ 158 (+47.66%)
Mutual labels:  openai
CartPole
Run OpenAI Gym on a Server
Stars: ✭ 16 (-85.05%)
Mutual labels:  openai
learning-to-drive-in-5-minutes
Implementation of reinforcement learning approach to make a car learn to drive smoothly in minutes
Stars: ✭ 227 (+112.15%)
Mutual labels:  openai
yourAI
GPT-2 Discord Bot and Steps to Train Something Like You
Stars: ✭ 71 (-33.64%)
Mutual labels:  openai
pen.el
Pen.el stands for Prompt Engineering in emacs. It facilitates the creation, discovery and usage of prompts to language models. Pen supports OpenAI, EleutherAI, Aleph-Alpha, HuggingFace and others. It's the engine for the LookingGlass imaginary web browser.
Stars: ✭ 376 (+251.4%)
Mutual labels:  openai
frozenlake
Value & Policy Iteration for the frozenlake environment of OpenAI
Stars: ✭ 16 (-85.05%)
Mutual labels:  openai
ActiveRagdollControllers
Research into controllers for 2d and 3d Active Ragdolls (using MujocoUnity+ml_agents)
Stars: ✭ 30 (-71.96%)
Mutual labels:  openai
ru-dalle
Generate images from texts. In Russian
Stars: ✭ 1,606 (+1400.93%)
Mutual labels:  openai
XENA
XENA is the managed remote administration platform for botnet creation & development powered by blockchain and machine learning. Aiming to provide an ecosystem which serves the bot herders. Favoring secrecy and resiliency over performance. It's micro-service oriented allowing for specialization and lower footprint. Join the community of the ulti…
Stars: ✭ 127 (+18.69%)
Mutual labels:  gpt-3
Gpt 2 Simple
Python package to easily retrain OpenAI's GPT-2 text-generating model on new texts
Stars: ✭ 2,834 (+2548.6%)
Mutual labels:  openai
clip playground
An ever-growing playground of notebooks showcasing CLIP's impressive zero-shot capabilities
Stars: ✭ 80 (-25.23%)
Mutual labels:  openai
Pytorch-RL-CPP
A Repository with C++ implementations of Reinforcement Learning Algorithms (Pytorch)
Stars: ✭ 73 (-31.78%)
Mutual labels:  openai
awesome-codex
A list dedicated to products, demos and articles related to 🤖 OpenAI's Codex.
Stars: ✭ 115 (+7.48%)
Mutual labels:  openai
PDN
The official PyTorch implementation of "Pathfinder Discovery Networks for Neural Message Passing" (WebConf '21)
Stars: ✭ 44 (-58.88%)
Mutual labels:  gpt-3
fix
Allows you to use OpenAI Codex to fix errors in the command line.
Stars: ✭ 72 (-32.71%)
Mutual labels:  openai
gpt-j-api
API for the GPT-J language model 🦜. Including a FastAPI backend and a streamlit frontend
Stars: ✭ 248 (+131.78%)
Mutual labels:  gpt-3

go-gpt3

GoDoc Go Report Card

OpenAI GPT-3 API wrapper for Go

Installation:

go get github.com/sashabaranov/go-gpt3

Example usage:

package main

import (
	"context"
	"fmt"
	gogpt "github.com/sashabaranov/go-gpt3"
)

func main() {
	c := gogpt.NewClient("your token")
	ctx := context.Background()

	req := gogpt.CompletionRequest{
		MaxTokens: 5,
		Prompt:    "Lorem ipsum",
	}
	resp, err := c.CreateCompletion(ctx, "ada", req)
	if err != nil {
		return
	}
	fmt.Println(resp.Choices[0].Text)

	searchReq := gogpt.SearchRequest{
		Documents: []string{"White House", "hospital", "school"},
		Query:     "the president",
	}
	searchResp, err := c.Search(ctx, "ada", searchReq)
	if err != nil {
		return
	}
	fmt.Println(searchResp.SearchResults)
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].