Skip to content

Commit

Permalink
Fixing some unintended removals
Browse files Browse the repository at this point in the history
  • Loading branch information
rajeshdavidbabu committed Jul 9, 2024
1 parent e24de3a commit d253bfa
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/completeTask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ export const completeTask = async (
page: Page,
task: TaskMessage
): Promise<TaskResult> => {
const openai = new OpenAI({ apiKey: task.options?.openaiApiKey });
const openai = new OpenAI({
apiKey: task.options?.openaiApiKey,
baseURL: task.options?.openaiBaseUrl,
defaultQuery: task.options?.openaiDefaultQuery,
defaultHeaders: task.options?.openaiDefaultHeaders,
});

let lastFunctionResult: null | { errorMessage: string } | { query: string } =
null;
Expand Down

0 comments on commit d253bfa

Please sign in to comment.