File tree 2 files changed +5
-15
lines changed
2 files changed +5
-15
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @browserbasehq/stagehand " : patch
3
+ ---
4
+
5
+ remove unused fillInVariables fn
Original file line number Diff line number Diff line change @@ -16,21 +16,6 @@ import {
16
16
writeTimestampedTxtFile ,
17
17
} from "@/lib/inferenceLogUtils" ;
18
18
19
- /**
20
- * Replaces <|VARIABLE|> placeholders in a text with user-provided values.
21
- */
22
- export function fillInVariables (
23
- text : string ,
24
- variables : Record < string , string > ,
25
- ) {
26
- let processedText = text ;
27
- Object . entries ( variables ) . forEach ( ( [ key , value ] ) => {
28
- const placeholder = `<|${ key . toUpperCase ( ) } |>` ;
29
- processedText = processedText . replace ( placeholder , value ) ;
30
- } ) ;
31
- return processedText ;
32
- }
33
-
34
19
/** Simple usage shape if your LLM returns usage tokens. */
35
20
interface LLMUsage {
36
21
prompt_tokens : number ;
You can’t perform that action at this time.
0 commit comments