File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ async function exampleUsage() {
77
77
console . timeEnd ( 'Timer' ) ;
78
78
console . log ( ) ;
79
79
} catch ( error ) {
80
- console . error ( 'Error processing openaiCompatibleStructure:' , error ) ;
80
+ console . error ( 'Error processing openaiCompatibleStructure sendMessage :' , error ) ;
81
81
}
82
82
}
83
83
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ async function exampleUsage() {
45
45
console . timeEnd ( 'Timer' ) ;
46
46
console . log ( ) ;
47
47
} catch ( error ) {
48
- console . error ( 'Error processing stream :' , error ) ;
48
+ console . error ( 'Error processing prompt sendMessage :' , error ) ;
49
49
}
50
50
}
51
51
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ const apiKeys = Object.fromEntries(
63
63
async function exampleUsage ( ) {
64
64
const { PromptTemplate } = await import ( '@langchain/core/prompts' ) ;
65
65
66
- prettyHeader ( 'Auto Retry Failed Requests ' , description ) ;
66
+ prettyHeader ( 'LangChain.js PromptTemplate ' , description ) ;
67
67
const template = 'What is the capital of {country}?' ;
68
68
const promptTemplate = new PromptTemplate ( {
69
69
template,
@@ -72,7 +72,7 @@ async function exampleUsage() {
72
72
73
73
const question = await promptTemplate . format ( { country : 'France' } ) ;
74
74
75
- console . log ( 'LangChain.js (Requires "npm install langchain dotenv") :' ) ;
75
+ console . log ( 'LangChain.js PromptTemplate :' ) ;
76
76
console . log ( ) ;
77
77
console . log ( 'prompt:' ) ;
78
78
console . log ( `> ${ question . replaceAll ( '\n' , '\n> ' ) } ` ) ;
You can’t perform that action at this time.
0 commit comments