diff --git a/static/app.js b/static/app.js index 75b9d73..6dfcc84 100644 --- a/static/app.js +++ b/static/app.js @@ -1317,6 +1317,13 @@ async function bootstrapApp() { }, // 重置Token统计 + + openRealtimeTerminal() { + const { protocol, hostname, port } = window.location; + const target = `${protocol}//${hostname}${port ? ':' + port : ''}/terminal`; + window.open(target, '_blank'); + }, + resetTokenStatistics() { this.currentContextTokens = 0; this.currentConversationTokens = { diff --git a/static/index.html b/static/index.html index 3a9add7..ade0bf9 100644 --- a/static/index.html +++ b/static/index.html @@ -531,6 +531,12 @@
+