File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/main/java/schemacrawler/tools/command/utility/lanchain4j Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 2929package schemacrawler .tools .command .utility .lanchain4j ;
3030
3131import java .sql .Connection ;
32+ import java .time .Duration ;
3233import java .util .Collection ;
3334import java .util .Map ;
3435import java .util .logging .Level ;
@@ -89,8 +90,10 @@ public Langchain4JChatAssistant(
8990 OpenAiChatModel .builder ()
9091 .apiKey (commandOptions .getApiKey ())
9192 .modelName (commandOptions .getModel ())
92- .strictTools (
93- true ) // https://docs.langchain4j.dev/integrations/language-models/open-ai#structured-outputs-for-tools
93+ .temperature (0.2 )
94+ .timeout (Duration .ofSeconds (commandOptions .getTimeout ()))
95+ // https://docs.langchain4j.dev/integrations/language-models/open-ai#structured-outputs-for-tools
96+ .strictTools (true )
9497 .build ();
9598
9699 assistant =
You can’t perform that action at this time.
0 commit comments