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) {
23
23
return new ChatResponse (
24
24
chatClient .prompt ().user (request .input ())
25
25
.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" )
29
29
.build ())
30
30
.call ().content ());
31
31
}
Original file line number Diff line number Diff line change 6
6
enabled : true
7
7
ai :
8
8
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}
14
10
datasource :
15
11
url : jdbc:postgresql://localhost:5432/postgres
16
12
username : postgres
You can’t perform that action at this time.
0 commit comments