提交 e3cebe57 编写于 作者: 知源笔记's avatar 知源笔记

fix

上级 7221a7e4
.idea
*.iml
target
logs
......@@ -133,6 +133,7 @@ public class BiVenusController {
GptRequest completion = GptRequest.newRequest("Translate natural language to SQL queries.");
completion.addUserMsg(userMsg);
completion.setApiKey(System.getenv("INSCODE_API_KEY"));
String reply = gptClient.chatCompletion(completion);
String sql = String.format("SELECT %s", reply);
String res = sqlFormatFromDsAndSql(dsId, sql);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册