Address review feedback: use effort params, fix model names, add safety checks
This commit is contained in:
committed by
Colin McDonnell
parent
89e93d3398
commit
c6572f0987
@@ -401,10 +401,10 @@ function parsePayload(inputs: Inputs): Payload {
|
||||
if (!("~pullfrog" in parsedPrompt)) {
|
||||
throw new Error();
|
||||
}
|
||||
// internal invocation: use effort from payload, fallback to input
|
||||
// internal invocation: use effort from payload, fallback to input, default to "think"
|
||||
return {
|
||||
...parsedPrompt,
|
||||
effort: parsedPrompt.effort ?? inputs.effort,
|
||||
effort: parsedPrompt.effort ?? inputs.effort ?? "think",
|
||||
} as Payload;
|
||||
} catch {
|
||||
// external invocation: use effort from input
|
||||
|
||||
Reference in New Issue
Block a user