Skip to content

Commit

Permalink
Merge pull request #4 from CarlosUlisesOchoa/release/1.1.0
Browse files Browse the repository at this point in the history
Release/1.1.0
  • Loading branch information
CarlosUlisesOchoa authored Mar 25, 2024
2 parents ebb6708 + 8e490f9 commit fffca88
Show file tree
Hide file tree
Showing 12 changed files with 250 additions and 219 deletions.
19 changes: 10 additions & 9 deletions .env.template
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
# OpenAI GPT available models: gpt-4-32k | gpt-4 | gpt-3.5-turbo | gpt-3.5-turbo-16k
# OpenAI GPT available models: https://platform.openai.com/docs/models
#
# IMPORTANT: Rename this file to .env before running the server
#
# PORT Where the server will be running
PORT = 3001
PORT=3001
# Your OpenAI API key value
OPENAI_API_KEY = "sk-EtcEtcEtcEtcEtcEtcEtcEtcEtcEtcEtcEtcEtcEtcEtcEtc"
OPENAI_API_DEFAULT_MODEL = "gpt-3.5-turbo"
OPENAI_API_DEFAULT_MAX_TOKENS = "4000"
OPENAI_API_DEFAULT_TEMPERATURE = "0.25"
OPENAI_API_DEFAULT_TOP_P = "1"
OPENAI_API_DEFAULT_FREQUENCY_PENALTY = "0.5"
OPENAI_API_DEFAULT_PRESENCE_PENALTY = "0.5"
OPENAI_API_KEY="sk-EtcEtcEtcEtcEtcEtcEtcEtcEtcEtcEtcEtcEtcEtcEtcEtc"
OPENAI_ORG_ID="org-EtcEtcEtcEtcEtcEtcEtcEtc"
OPENAI_API_DEFAULT_MODEL="gpt-3.5-turbo"
OPENAI_API_DEFAULT_MAX_TOKENS=4000
OPENAI_API_DEFAULT_TEMPERATURE=0.25
OPENAI_API_DEFAULT_TOP_P=1
OPENAI_API_DEFAULT_FREQUENCY_PENALTY=0.5
OPENAI_API_DEFAULT_PRESENCE_PENALTY=0.5
195 changes: 136 additions & 59 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "openai-node-server",
"version": "1.0.0",
"version": "1.1.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "echo Error: you should specify the environment, e.g. \"npm run start:dev\" or \"npm run start:prod\" && exit 1",
"start:dev": "npm run dev",
"start:prod": "npm run prod",
"server-dev": "nodemon node ./dist/index.js",
"server-prod": "node ./dist/index.js",
"server-dev": "nodemon node --env-file .env ./dist/index.js",
"server-prod": "node --env-file .env ./dist/index.js",
"dev": "NODE_ENV=development npm run dev-cmd",
"dev-cmd": "npm run build && concurrently \"npm run tsc-watch\" \"npm run server-dev\"",
"prod": "NODE_ENV=production npm run prod-cmd",
Expand All @@ -21,16 +21,16 @@
"author": "Carlos Ulises Ochoa",
"license": "ISC",
"devDependencies": {
"@types/node": "^20.3.1",
"@types/express": "^4.17.21",
"@types/node": "^20.11.30",
"concurrently": "^8.2.2",
"eslint": "^8.43.0",
"prettier": "^2.8.8",
"eslint": "^8.57.0",
"prettier": "^3.2.5",
"standard": "^17.1.0",
"typescript": "^5.1.3"
"typescript": "^5.4.3"
},
"dependencies": {
"dotenv": "16.3.1",
"express": "4.18.2",
"express": "4.19.1",
"openai": "4.29.2"
}
}
Loading

0 comments on commit fffca88

Please sign in to comment.