File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed
java/com/javaaidev/text2sql/controller Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -23,9 +23,9 @@ public ChatResponse chat(@RequestBody ChatRequest request) {
2323 return new ChatResponse (
2424 chatClient .prompt ().user (request .input ())
2525 .options (OpenAiChatOptions .builder ()
26- .withModel (ChatModel .GPT_3_5_TURBO )
27- .withTemperature (0.0 )
28- .withFunction ("runSqlQuery" )
26+ .model (ChatModel .GPT_4_O_MINI )
27+ .temperature (0.0 )
28+ .function ("runSqlQuery" )
2929 .build ())
3030 .call ().content ());
3131 }
Original file line number Diff line number Diff line change 66 enabled : true
77 ai :
88 openai :
9- api-key : ${OPENAI_API_KEY:}
10- chat :
11- options :
12- model : gpt-4o-mini
13- temperature : 0.0
9+ api-key : ${OPENAI_API_KEY:demo}
1410 datasource :
1511 url : jdbc:postgresql://localhost:5432/postgres
1612 username : postgres
You can’t perform that action at this time.
0 commit comments