Skip to content

Commit

Permalink
Merge pull request #690 from Ikaros-521/owner
Browse files Browse the repository at this point in the history
讯飞星火 支持v3.5
  • Loading branch information
Ikaros-521 committed Mar 8, 2024
2 parents 7e001c3 + b974e3f commit 3baeb64
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 26 deletions.
Binary file modified docs/AI Vtuber.xmind
Binary file not shown.
Binary file modified docs/xmind.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 16 additions & 1 deletion docs/投资人/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,11 @@
avatar: "https://images.cnblogs.com/cnblogs_com/ikaros-521/2328032/o_231108082640_QQ%E5%9B%BE%E7%89%8720231108162541.jpg",
amount: "¥66"
},
{
name: "霈sky",
avatar: "https://images.cnblogs.com/cnblogs_com/ikaros-521/2328032/o_240307032531_QQ%E5%9B%BE%E7%89%8720240307112434.jpg",
amount: "¥66"
},
{
name: "♾️",
avatar: "https://images.cnblogs.com/cnblogs_com/ikaros-521/2328032/o_231219144349_QQ%E5%9B%BE%E7%89%8720231219220916.jpg",
Expand Down Expand Up @@ -481,11 +486,21 @@
avatar: "https://images.cnblogs.com/cnblogs_com/ikaros-521/2328032/o_231231143423_image.jpeg",
amount: "¥6"
},
{
name: "萱逸飞",
avatar: "https://images.cnblogs.com/cnblogs_com/ikaros-521/2328032/o_240307032531_QQ%E5%9B%BE%E7%89%8720240307112305.jpg",
amount: "¥5"
},
{
name: "明月萧残",
avatar: "https://images.cnblogs.com/cnblogs_com/ikaros-521/2328032/o_231126161028_QQ%E5%9B%BE%E7%89%8720231127001005.jpg",
amount: "¥4"
}
},
{
name: "超级棒",
avatar: "https://images.cnblogs.com/cnblogs_com/ikaros-521/2328032/o_240307032710_QQ%E5%9B%BE%E7%89%8720240307112635.jpg",
amount: "¥0.01"
},
];

// 获取投资方信息容器
Expand Down
Binary file modified docs/投资人/invest.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
56 changes: 31 additions & 25 deletions webui.py
Original file line number Diff line number Diff line change
Expand Up @@ -2437,7 +2437,7 @@ def common_textarea_handle(content):
if config.get("webui", "show_card", "llm", "sparkdesk"):
with ui.card().style(card_css):
ui.label("讯飞星火")
with ui.grid(columns=2):
with ui.grid(columns=1):
lines = ["web", "api"]
data_json = {}
for line in lines:
Expand All @@ -2446,31 +2446,37 @@ def common_textarea_handle(content):
label='类型',
options=data_json,
value=config.get("sparkdesk", "type")
)
input_sparkdesk_cookie = ui.input(label='cookie', placeholder='web抓包请求头中的cookie,参考文档教程', value=config.get("sparkdesk", "cookie"))
input_sparkdesk_cookie.style("width:400px")
with ui.row():
input_sparkdesk_fd = ui.input(label='fd', placeholder='web抓包负载中的fd,参考文档教程', value=config.get("sparkdesk", "fd"))
input_sparkdesk_fd.style("width:300px")
input_sparkdesk_GtToken = ui.input(label='GtToken', placeholder='web抓包负载中的GtToken,参考文档教程', value=config.get("sparkdesk", "GtToken"))
input_sparkdesk_GtToken.style("width:300px")
with ui.row():
input_sparkdesk_app_id = ui.input(label='app_id', placeholder='申请官方API后,云平台中提供的APPID', value=config.get("sparkdesk", "app_id"))
input_sparkdesk_app_id.style("width:300px")
input_sparkdesk_api_secret = ui.input(label='api_secret', placeholder='申请官方API后,云平台中提供的APISecret', value=config.get("sparkdesk", "api_secret"))
input_sparkdesk_api_secret.style("width:300px")
input_sparkdesk_api_key = ui.input(label='api_key', placeholder='申请官方API后,云平台中提供的APIKey', value=config.get("sparkdesk", "api_key"))
input_sparkdesk_api_key.style("width:300px")
lines = ["3.1", "2.1", "1.1"]
data_json = {}
for line in lines:
data_json[line] = line
select_sparkdesk_version = ui.select(
label='版本',
options=data_json,
value=str(config.get("sparkdesk", "version"))
).style("width:100px")


with ui.card().style(card_css):
ui.label("WEB")
with ui.row():
input_sparkdesk_cookie = ui.input(label='cookie', placeholder='web抓包请求头中的cookie,参考文档教程', value=config.get("sparkdesk", "cookie"))
input_sparkdesk_cookie.style("width:300px")
input_sparkdesk_fd = ui.input(label='fd', placeholder='web抓包负载中的fd,参考文档教程', value=config.get("sparkdesk", "fd"))
input_sparkdesk_fd.style("width:200px")
input_sparkdesk_GtToken = ui.input(label='GtToken', placeholder='web抓包负载中的GtToken,参考文档教程', value=config.get("sparkdesk", "GtToken"))
input_sparkdesk_GtToken.style("width:200px")

with ui.card().style(card_css):
ui.label("API")
with ui.row():
input_sparkdesk_app_id = ui.input(label='app_id', placeholder='申请官方API后,云平台中提供的APPID', value=config.get("sparkdesk", "app_id"))
input_sparkdesk_app_id.style("width:200px")
input_sparkdesk_api_secret = ui.input(label='api_secret', placeholder='申请官方API后,云平台中提供的APISecret', value=config.get("sparkdesk", "api_secret"))
input_sparkdesk_api_secret.style("width:200px")
input_sparkdesk_api_key = ui.input(label='api_key', placeholder='申请官方API后,云平台中提供的APIKey', value=config.get("sparkdesk", "api_key"))
input_sparkdesk_api_key.style("width:200px")
lines = ["3.5","3.1", "2.1", "1.1"]
data_json = {}
for line in lines:
data_json[line] = line
select_sparkdesk_version = ui.select(
label='版本',
options=data_json,
value=str(config.get("sparkdesk", "version"))
).style("width:100px")

if config.get("webui", "show_card", "llm", "langchain_chatglm"):
with ui.card().style(card_css):
ui.label("Langchain_ChatGLM")
Expand Down

0 comments on commit 3baeb64

Please sign in to comment.