Skip to content

Commit

Permalink
fix: preveting creation of new assistant on each review request (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeldelPilar authored Dec 13, 2024
1 parent 3d9eb5c commit b666bba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/service/models/openai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export enum ThreadType {
async function getOrCreateAssistant() {
const assistants = await openai.beta.assistants.list();
const existingAssistant = assistants.data.find(
(a) => a.name === myAssistantName
(a) => a.name === myAssistantName || a.name === 'Code Review Assistant'
);

if (existingAssistant) {
Expand Down

0 comments on commit b666bba

Please sign in to comment.