Skip to content

Commit

Permalink
updated default_engine with variable type
Browse files Browse the repository at this point in the history
  • Loading branch information
Giovanni Troisi committed Dec 4, 2024
1 parent f4382ef commit 533a8d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion routes/kb.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ let default_preview_settings = {
}
let default_engine = {
name: "pinecone",
type: "pod",
type: process.env.PINECONE_TYPE,
apikey: "",
vector_size: 1536,
index_name: process.env.PINECONE_INDEX
Expand Down
1 change: 1 addition & 0 deletions test/kbRoute.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ process.env.NODE_ENV = 'test';
process.env.GPTKEY = "fakegptkey";
process.env.KB_WEBHOOK_TOKEN = "testtoken"
process.env.PINECONE_INDEX = "test_index"
process.env.PINECONE_TYPE = "pod"
process.env.LOG_LEVEL = 'critical'

var userService = require('../services/userService');
Expand Down

0 comments on commit 533a8d7

Please sign in to comment.