Skip to content

Commit

Permalink
fix generator
Browse files Browse the repository at this point in the history
Signed-off-by: Matteo Collina <[email protected]>
  • Loading branch information
mcollina committed May 10, 2024
1 parent dbfe084 commit 5b018f2
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion lib/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,30 @@ class AiWarpGenerator extends ServiceGenerator {
default: 'gpt-3.5-turbo',
type: 'string',
configValue: 'aiModel'
},
{
var: 'PLT_OPENAPI_API_KEY',
label: 'What is your OpenAI API key?',
default: '',
type: 'string'
},
{
var: 'PLT_MISTRAL_API_KEY',
label: 'What is your Mistral API key?',
default: '',
type: 'string'
},
{
var: 'PLT_AZURE_API_KEY',
label: 'What is your AZURE API key?',
default: '',
type: 'string'
},
{
var: 'PLT_LLAMA2_MODEL',
label: 'Where is the llama2 model located?',
default: '',
type: 'string'
}
]
}
Expand Down Expand Up @@ -102,7 +126,7 @@ class AiWarpGenerator extends ServiceGenerator {
case 'llama2':
config.aiProvider = {
llama2: {
modelPath: this.config.aiModel
modelPath: `{${this.getEnvVarName('PLT_LLAMA2_MODEL')}}`
}
}
break
Expand Down

0 comments on commit 5b018f2

Please sign in to comment.