Skip to content

Commit 3930814

Browse files
dsanders11Copilot
andauthored
chore: apply code review comment
Co-authored-by: Copilot <[email protected]>
1 parent 48f0ede commit 3930814

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export async function run(): Promise<void> {
5353

5454
// Get common parameters
5555
const modelName = promptConfig?.model || core.getInput('model')
56-
let maxTokens = promptConfig?.modelParameters?.maxTokens || core.getInput('max-tokens')
56+
let maxTokens = promptConfig?.modelParameters?.maxTokens ?? core.getInput('max-tokens')
5757

5858
if (typeof maxTokens === 'string') {
5959
maxTokens = parseInt(maxTokens, 10)

0 commit comments

Comments
 (0)