Fixup types and tests

This commit is contained in:
Sean Goedecke
2025-07-21 04:31:06 +00:00
parent 1f89e942aa
commit 8f64ac1284
4 changed files with 69 additions and 43 deletions

View File

@@ -8,7 +8,8 @@ import { loadContentFromFileOrInput, buildInferenceRequest } from './helpers.js'
import {
loadPromptFile,
parseTemplateVariables,
isPromptYamlFile
isPromptYamlFile,
PromptConfig
} from './prompt.js'
const RESPONSE_FILE = 'modelResponse.txt'
@@ -23,7 +24,7 @@ export async function run(): Promise<void> {
const promptFilePath = core.getInput('prompt-file')
const inputVariables = core.getInput('input')
let promptConfig: any = undefined
let promptConfig: PromptConfig | undefined = undefined
let systemPrompt: string | undefined = undefined
let prompt: string | undefined = undefined