update README

This commit is contained in:
Sean Goedecke
2025-04-07 00:09:42 +00:00
parent 81366f9328
commit d86d983567
7 changed files with 73 additions and 273 deletions

7
dist/index.js generated vendored
View File

@@ -33560,12 +33560,13 @@ async function run() {
throw new Error('prompt is not set');
}
const systemPrompt = coreExports.getInput('system_prompt');
const modelName = coreExports.getInput('model_name') || 'gpt-4o';
const modelName = coreExports.getInput('model');
const maxTokens = parseInt(coreExports.getInput('max_tokens'), 10);
const token = process.env['GITHUB_TOKEN'];
if (token === undefined) {
throw new Error('GITHUB_TOKEN is not set');
}
const endpoint = 'https://models.inference.ai.azure.com';
const endpoint = coreExports.getInput('endpoint');
const client = createClient(endpoint, new AzureKeyCredential(token));
const response = await client.path('/chat/completions').post({
body: {
@@ -33578,7 +33579,7 @@ async function run() {
],
temperature: 1.0,
top_p: 1.0,
max_tokens: 1000,
max_tokens: maxTokens,
model: modelName
}
});

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long