Skip to content

[Feature/功能]: 自定义 API KEY 前缀 #1475

@Doraemonsan

Description

@Doraemonsan

Pre-submission Checklist / 提交前检查

  • I have searched the existing issues and this feature has not been requested / 我已搜索现有 issues,此功能尚未被提出
  • I have read the documentation / 我已阅读文档

Background and Problem Statement / 背景和问题描述

用户惯性在使用 AI API 时会习惯使用 sk-xxx 开头的密钥,部分 AI 应用在默认提示框中也提示密钥应为 sk-xxx,目前大多数 LLM API 供应商的密钥也都使用了 sk-xxx 格式,如 OpenRouter、SiliconFlow、XiaoMi、Moonshot、MiniMax、阿里云百炼等供应商都使用了 sk-xxx 格式;当前固定生成格式可能会在某些场景下对部分用户造成困惑。

Proposed Solution / 期望方案

增加自定义 API KEY 前缀设置,由用户自定义 API KEY 前缀的同时为了区分 AxonHub 的密钥可以保留硬编码 "ah" 前缀由多个 - 号连接,示例:假设用户自定义前缀为 sk 则生成密钥为 sk-ah-111111111111111111111111111111 或使用完整的项目名 sk-axonhub-111111111111111111111111111111

Feature Category / 功能分类

API Compatibility / API 兼容性

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions