3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# File 'lib/kaba/boot.rb', line 3
def init
unless File.exist?(".env")
File.open(".env", "w") do |f|
f.write("LISA_ACCESS_TOKEN=<Lisa access token, visit: https://platform.listenai.com/>\n")
f.write("JUDGE_ACCCESS_TOKEN=<Judge access token, visit: https://platform.listenai.com/>\n")
f.write("; if you are using a different typechat endpoint, please fill in the following line\n")
f.write("; LISA_TYPECHAT_ENDPOINT=https://lisa-typechat.listenai.com\n")
f.write("; if you are using a different LLM endpoint, please fill in the following line\n")
f.write("; LISA_LLM_URI_BASE=https://api.listenai.com\n")
f.write("; if you are using a different JUDGE LLM endpoint, please fill in the following line\n")
f.write("; JUDGE_LLM_URI_BASE=https://api.listenai.com\n")
end
puts "Created .env file, please fill in the necessary information."
end
end
|