Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Administrator
/
chatgpt.ai-pro.org
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
3
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
827420b8
authored
2023-02-02 20:06:44 +0800
by
RSA
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix
1 parent
0634b3ad
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
env-template
index.js
env-template
View file @
827420b
API_KEY
=
API_ORG
=
OPENAI_API_ORG
=
OPENAI_API_KEY
=
SERVER_URL=
\ No newline at end of file
...
...
index.js
View file @
827420b
...
...
@@ -5,8 +5,8 @@ const cors = require('cors')
// Open AI Configuration
const
configuration
=
new
Configuration
({
organization
:
process
.
env
.
API_ORG
,
apiKey
:
process
.
env
.
API_KEY
,
organization
:
process
.
env
.
OPENAI_
API_ORG
,
apiKey
:
process
.
env
.
OPENAI_
API_KEY
,
});
const
openai
=
new
OpenAIApi
(
configuration
);
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment