Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

sigridjineth/openai-golang-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

1 Commit

Repository files navigation

Golang Boilerplate for OpenAI Service

Description

  • This repository is for the golang-based server boilerplate that wraps OpenAI Service with PostgreSQL and go-chi.
  • The codebase uses the Reverse Engineered ChatGPT API by Antonio Cheong and it is also largely influenced by go-gpt3 from PullRequest Inc.
  • It currently lacks the support for GPT-4 yet whereby please feel free to send the pull request on the repository.

Environment Variables

  • Please make sure that the environment variable has been defined in the ./config.yaml like the following:
Environment: DEV
OpenAIEnv:
 API_KEY: "sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" // if you are going to use the official API
 ACCESS_TOKEN: "sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" // if you are going to use the reverse-engineered API

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /