-
Notifications
You must be signed in to change notification settings - Fork 0
/
secret-example.lua
40 lines (34 loc) · 943 Bytes
/
secret-example.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
-- secret config for away
-- rename this example to secret.lua
--
-- Copyright (c) 2024 shmilee
--
local S = {}
-- OPANAI ChatGPT
S.OPANAI_API_KEY = {
--'sk-key1',
--'sk-key2',
}
S.OPENAI_BASE_URL = 'https://api.openai.com'
-- ChatAnywhere CA. key, arg setting
S.CA_API_USAGE = {
--{
-- key='sk-key1', -- required
-- -- icon for wibox and notification, need theme['gpt_icon4'], etc.
-- icon1='gpt_icon4', icon2='ca_icon1', -- optional
-- model='gpt-%', -- default, '%'
-- txt='count', -- count: today.count
-- -- perc: balance.perc
-- -- default, used: balance.used
--},
--{
-- key='sk-key2',
-- icon1='gpt_icon2', icon2='gpt_icon1',
-- model='%', txt='perc',
--},
}
-- Weather yiketianqi
S.yiketianqi_query = nil --{unescape=1, version='v9', appid=?, appsecret='?'}
-- article api
S.mryw_api = nil
return S