()
| 793 | * 获取 API Key 信息(兼容旧代码) |
| 794 | */ |
| 795 | export async function getAPIKeyInfo(): Promise<PluginAPIKey | null> { |
| 796 | const keys = await getAPIKeys(); |
| 797 | // 返回第一个激活的 API Key,如果没有则返�� null |
| 798 | return keys.find(key => key.is_active) || keys[0] || null; |
| 799 | } |
| 800 | |
| 801 | /** |
| 802 | * 生成新的 API Key |
nothing calls this directly
no test coverage detected