WeKnora/internal/models/chat
JAESOL SHIN ddf5ae4e65 fix(chat): exclude ChatTemplateKwargs for OpenAI API
ChatTemplateKwargs parameter is only supported by custom backends
like vLLM. OpenAI API does not support this parameter and returns
400 Bad Request error.

This change conditionally includes ChatTemplateKwargs only when
the provider is ProviderGeneric (custom deployment).

Fixes connection test failure for OpenAI models with error:
"Unrecognized request argument supplied: chat_template_kwargs"
2025-12-29 19:08:15 +08:00
..
chat.go feat: 新增对多家平台的模型适配 2025-12-29 12:18:42 +08:00
ollama.go feat: Added web page for configuring model information 2025-08-10 17:11:07 +08:00
remote_api.go fix(chat): exclude ChatTemplateKwargs for OpenAI API 2025-12-29 19:08:15 +08:00
remote_api_test.go refactor: Clean up code by removing unnecessary blank lines and improving comments for better readability and maintainability 2025-11-28 16:10:37 +08:00