JoySafeter icon indicating copy to clipboard operation
JoySafeter copied to clipboard

[FEATURE] 自定义的Model名称 Customized Model API

Open EmmetWilliam opened this issue 9 months ago • 3 comments

需求场景

当前前端OpenAI's API Compatible提供了base_url和api_key的自定义选项,但model name只能沿用PREDEFINED_CHAT_MODELS

尝试调整

  1. 在OpenAIAPICompatibleProvider中增加自定义的模型
  2. sh quick_start.sh (还未确定是否是源码安装,调整后重新启动docker没看到效果)

Feature Request

Currently, the frontend for OpenAI's API Compatible allows customization of base_url and api_key, but the model name can only use PREDEFINED_CHAT_MODELS.

Attempted Adjustments

  1. Tried adding a custom model in OpenAIAPICompatibleProvider

  2. Ran sh quick_start.sh (not sure if this is a source installation; after adjusting and restarting Docker, no effect was observed)

EmmetWilliam avatar Mar 05 '26 11:03 EmmetWilliam

quick_start.sh 是拉取的官方几周前的镜像,用源码构建得cd ./deploy;docker compose up -d --build backend

Yuuk111 avatar Mar 06 '26 05:03 Yuuk111

quick_start.sh 是拉取的官方几周前的镜像,用源码构建得cd ./deploy;docker compose up -d --build backend

大大考虑添加在前端的config吗,本地build了下感觉问题有点多😢

EmmetWilliam avatar Mar 06 '26 07:03 EmmetWilliam

added by #70

yuzzjj avatar Mar 09 '26 09:03 yuzzjj