Merge pull request #395 from devchat-ai/add_register_button

Update GUI and historyMessagesBase.ts
This commit is contained in:
Rankin Zheng 2024-01-05 10:00:14 +08:00 committed by GitHub
commit 3ae5d5cda5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

2
gui

@ -1 +1 @@
Subproject commit a4bdd617f5be430b7d13cf5c1211a0fe9336e0e1
Subproject commit 3c989014bac8a9ab74b5497109d79a1c22d9d9d6

View File

@ -41,8 +41,9 @@ function apiKeyMissedMessage(): LogEntry {
response: `
OPENAI_API_KEY is missing from your environment or settings. Kindly input your OpenAI or DevChat key, and I'll ensure DevChat is all set for you.
<button value="setting_openai_key">Set OpenAI key</button>
<button value="get_devchat_key" href="https://web.devchat.ai" component="a">Register DevChat key</button>
<button value="setting_devchat_key">Set DevChat key</button>
<button value="setting_openai_key">Set OpenAI key</button>
`,
context: []
} as LogEntry;