Skip to content

Commit

Permalink
refactor: dont allow change provider type for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Donovan-Ye committed Apr 22, 2024
1 parent 04f3ae4 commit 6115a5d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ async function notypes() {
}

if (!process.env.NOTYPOS_PROVIDER_TYPE) {
console.log(
chalk.yellow('NOTYPOS_PROVIDER_TYPE not found. Using default value \'openai\'.'),
)
// console.log(
// chalk.yellow('NOTYPOS_PROVIDER_TYPE not found. Using default value \'openai\'.'),
// )

if (!process.env.NOTYPOS_MODEL) {
console.log(
Expand All @@ -41,7 +41,9 @@ async function notypes() {
}

const settings = {
NOTYPOS_PROVIDER_TYPE: process.env.NOTYPOS_PROVIDER_TYPE || 'openai',
// NOTYPOS_PROVIDER_TYPE: process.env.NOTYPOS_PROVIDER_TYPE || 'openai',
// not allow to change provider for now
NOTYPOS_PROVIDER_TYPE: 'openai',
NOTYPOS_MODEL: process.env.NOTYPOS_MODEL || 'gpt-3.5-turbo',
NOTYPOS_API_KEY: process.env.NOTYPOS_API_KEY,
NOTYPOS_BASE_URL: process.env.NOTYPOS_BASE_URL,
Expand Down

0 comments on commit 6115a5d

Please sign in to comment.