Skip to content

Commit

Permalink
Remove dynamic chat_history db
Browse files Browse the repository at this point in the history
  • Loading branch information
Mutugiii committed Jul 18, 2023
1 parent 1fafc96 commit 2df03a4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion chatapi/src/services/gpt-prompt.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const openai = new OpenAIApi(configuration);

const db = new NanoCouchService(
process.env.COUCHDB_HOST || 'http://couchdb:5984',
process.env.COUCHDB_NAME || 'chat_history',
'chat_history',
);

// history = db.get the history | [] if empty;
Expand Down
1 change: 0 additions & 1 deletion docker/planet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ services:
- "5000:5000"
environment:
- COUCHDB_HOST=http://couchdb:5984
- COUCHDB_NAME=chat_history
- SERVE_PORT=5000
env_file:
- .chat.env
Expand Down

0 comments on commit 2df03a4

Please sign in to comment.