Skip to content

Commit

Permalink
add orchestrator node type to LLM options
Browse files Browse the repository at this point in the history
  • Loading branch information
jfrank-summit committed Jan 20, 2025
1 parent 8d8dd70 commit ba4e232
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/config/llm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,9 @@ export const llmDefaultConfig = {
size: LLMSize.SMALL,
temperature: 0.8,
} as LLMNodeConfiguration,
orchestrator: {
size: LLMSize.LARGE,
temperature: 0.2,
} as LLMNodeConfiguration,
},
};
7 changes: 7 additions & 0 deletions src/config/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ const llmConfigSchema = z
size: z.nativeEnum(LLMSize),
temperature: z.number(),
}),
orchestrator: z.object({
size: z.nativeEnum(LLMSize),
temperature: z.number(),
}),
}),
OPENAI_API_KEY: z.string(),
ANTHROPIC_API_KEY: z.string(),
Expand All @@ -65,6 +69,9 @@ const llmConfigSchema = z
data.nodes.response.size === LLMSize.LARGE
? data.configuration.large.provider
: data.configuration.small.provider,
data.nodes.orchestrator.size === LLMSize.LARGE
? data.configuration.large.provider
: data.configuration.small.provider,
]);

const missingConfigs = [];
Expand Down

0 comments on commit ba4e232

Please sign in to comment.