chore: apply code review comment
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -53,7 +53,7 @@ export async function run(): Promise<void> {
|
|||||||
|
|
||||||
// Get common parameters
|
// Get common parameters
|
||||||
const modelName = promptConfig?.model || core.getInput('model')
|
const modelName = promptConfig?.model || core.getInput('model')
|
||||||
let maxTokens = promptConfig?.modelParameters?.maxTokens || core.getInput('max-tokens')
|
let maxTokens = promptConfig?.modelParameters?.maxTokens ?? core.getInput('max-tokens')
|
||||||
|
|
||||||
if (typeof maxTokens === 'string') {
|
if (typeof maxTokens === 'string') {
|
||||||
maxTokens = parseInt(maxTokens, 10)
|
maxTokens = parseInt(maxTokens, 10)
|
||||||
|
|||||||
Reference in New Issue
Block a user