feat(agent): Process feels decent now, however it can be very slow. This is a checkpoint to come back to. Going to start trying to make it faster.
This commit is contained in:
parent
72c2ddc3a0
commit
60d36ab8f4
27 changed files with 396 additions and 211 deletions
|
|
@ -50,3 +50,14 @@ export function getModelName(llm: BaseChatModel): string {
|
|||
return 'Unknown';
|
||||
}
|
||||
}
|
||||
|
||||
export function setTemperature(llm: BaseChatModel, temperature?: number) {
|
||||
try {
|
||||
// @ts-ignore - Different LLM implementations have different properties
|
||||
if ('temperature' in llm) {
|
||||
(llm as any).temperature = temperature;
|
||||
}
|
||||
} catch (e) {
|
||||
console.error('Failed to set temperature:', e);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue