feat: NVIDIA chat model API support custom endpoint

This commit is contained in:
Manx98
2026-03-11 10:48:26 +08:00
committed by lyingbug
parent 5afc81d00b
commit a355ac889e
5 changed files with 76 additions and 11 deletions
+3
View File
@@ -121,6 +121,9 @@ func NewRemoteChat(config *ChatConfig) (Chat, error) {
case provider.ProviderGeneric:
// Generic provider (如 vLLM) 使用 ChatTemplateKwargs
return NewGenericChat(config)
case provider.ProviderNvidia:
// NVIDIA provider 使用BaseURL为请求地址
return NewNvidiaChat(config)
default:
// 其他 provider 使用标准 OpenAI 兼容实现
return NewRemoteAPIChat(config)