Skip to content

Commit

Permalink
fix: simplify model creation
Browse files Browse the repository at this point in the history
  • Loading branch information
CahidArda committed Jan 14, 2025
1 parent 0e1fc16 commit d933232
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/agents/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ export class WorkflowAgents {
return new Task({ context: this.context, taskParameters });
}

public getOpenai() {
return createWorkflowOpenAI(this.context);
public openai(...params: Parameters<ReturnType<typeof createWorkflowOpenAI>>) {
const openai = createWorkflowOpenAI(this.context);
return openai(...params);
}
}

0 comments on commit d933232

Please sign in to comment.