Closed lloydzhou closed 2 months ago
@lloydzhou is attempting to deploy a commit to the NextChat Team on Vercel.
A member of the Team first needs to authorize it.
The recent updates involve modifying the customProvider
function and the collectModelTable
function in app/utils/model.ts
. These changes ensure that customProvider
now uses providerName
instead of modelName
, and the structure of objects returned by these functions has been adjusted accordingly. This includes setting the id
as the lowercase version of providerName
and correctly handling customModelName
and customProviderName
within the collectModelTable
function.
Files | Change Summary |
---|---|
app/utils/model.ts |
Modified customProvider to accept providerName and updated object structure in both functions. |
In the code where models dwell,
Changes cast a magic spell,
Providers named with care and grace,
Unique IDs now take their place.
Models and providers, hand in hand,
Code refined, a better land.
Cheers to progress, swift and bright,
A rabbit's joy in code's delight! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
如果使用官方提供的openai兼容api接口。
CUSTOM_MODELS
自定义模型,这个操作类似给OpenAI
配置了一个新的模型
CUSTOM_MODELS=-all,+qwen-turbo@OpenAI
BASE_URL=https://dashscope.aliyuncs.com/compatible-mode
,以及OPENAI_API_KEY
使用通义千问的key。
Summary by CodeRabbit