@@ -126,11 +126,11 @@ public void testRender() {
126126 Map <String , Object > model = createTestMap ();
127127 model .put ("key3" , 100 );
128128
129- // Create a simple template with placeholders for keys in the generative
129+ // Create a simple template with placeholders for keys in the variables
130130 String template = "This is a {key1}, it is {key2}, and it costs {key3}" ;
131131 PromptTemplate promptTemplate = PromptTemplate .builder ().template (template ).variables (model ).build ();
132132
133- // The expected result after rendering the template with the generative
133+ // The expected result after rendering the template with the variables
134134 String expected = "This is a value1, it is true, and it costs 100" ;
135135 String result = promptTemplate .render ();
136136
@@ -178,11 +178,11 @@ public void testRenderResourceAsValue() throws Exception {
178178
179179 model .put ("key3" , resource );
180180
181- // Create a simple template with placeholders for keys in the generative
181+ // Create a simple template with placeholders for keys in the variables
182182 String template = "{key1}, {key2}, {key3}" ;
183183 PromptTemplate promptTemplate = PromptTemplate .builder ().resource (resource ).variables (model ).build ();
184184
185- // The expected result after rendering the template with the generative
185+ // The expected result after rendering the template with the variables
186186 String expected = "value1, true, it costs 100" ;
187187 String result = promptTemplate .render ();
188188
@@ -192,12 +192,12 @@ public void testRenderResourceAsValue() throws Exception {
192192
193193 @ Test
194194 public void testRenderFailure () {
195- // Create a map with string keys and object values to serve as a generative for
195+ // Create a map with string keys and object values to serve as a variables for
196196 // testing
197197 Map <String , Object > model = new HashMap <>();
198198 model .put ("key1" , "value1" );
199199
200- // Create a simple template that includes a key not present in the generative
200+ // Create a simple template that includes a key not present in the variables
201201 String template = "This is a {key2}!" ;
202202 PromptTemplate promptTemplate = PromptTemplate .builder ().template (template ).variables (model ).build ();
203203
0 commit comments