lobe-chat icon indicating copy to clipboard operation
lobe-chat copied to clipboard

:sparkles: feat: add openrouter custom models env

Open danielglh opened this issue 11 months ago • 6 comments

💻 变更类型 | Change Type

  • [x] ✨ feat
  • [ ] 🐛 fix
  • [ ] ♻️ refactor
  • [ ] 💄 style
  • [ ] 🔨 chore
  • [ ] ⚡️ perf
  • [ ] 📝 docs

🔀 变更说明 | Description of Change

Allow OPENROUTER_CUSTOM_MODELS env var to define custom models for OpenRouter provider, together with its provider setting. It works similarly to the CUSTOM_MODELS env var for OpenAI:

image

Fixed issue https://github.com/lobehub/lobe-chat/issues/1624.

📝 补充信息 | Additional Information

N/A

danielglh avatar Mar 19 '24 14:03 danielglh