Skip to content

Commit ea23659

Browse files
committed
refactor: reuse shared OpenAI client
1 parent 807c41b commit ea23659

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/core/llm/generateIssueContent.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
// src/core/llm/generateIssueContent.ts
22
import { TodoItem } from '../../parser/types';
3-
import OpenAI from 'openai';
43
import * as core from '@actions/core';
5-
6-
const openai = new OpenAI({
7-
apiKey: core.getInput('openai-api-key'), // correto agora
8-
});
4+
import { openai } from './openaiClient';
95

106
const model = core.getInput('openai-model') || 'gpt-3.5-turbo';
117

0 commit comments

Comments
 (0)