Skip to content

Commit

Permalink
synergy task name fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jhweir committed Jan 23, 2025
1 parent 71d945b commit 0abddec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/utils/src/synergy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ async function linkTopic(perspective, itemId, topicId, relevance) {
export async function ensureLLMTask(): Promise<AITask> {
const client: Ad4mClient = await getAd4mClient();
const tasks = await client.ai.tasks();
let task = tasks.find((t) => t.name === "flux-synergy-task-2");
if (!task)
task = await client.ai.addTask("flux-synergy-task", "default", synergyGroupingPrompt, synergyGroupingExamples);
const taskName = "flux-synergy-task-2";
let task = tasks.find((t) => t.name === taskName);
if (!task) task = await client.ai.addTask(taskName, "default", synergyGroupingPrompt, synergyGroupingExamples);
return task;
}

Expand Down

0 comments on commit 0abddec

Please sign in to comment.