Deep Chat supports a variety of AI services, including OpenAI, HuggingFace, Cohere, Azure OpenAI, and more, as well as connections to custom services. Here's how to configure it:
- OpenAI: Add directly in HTML
<deep-chat directConnection='{"openAI": {"key": "你的API密钥"}}' />The - Azure OpenAI: Configured as
<deep-chat directConnection='{"azure": {"openAI": {"key": "你的密钥", "endpoint": "你的端点"}}}' />The - Customized Services: By
requestattribute to interface to its own API, such as<deep-chat request='{"url": "https://你的服务地址/chat"}' />It is recommended that the data be formatted using an interceptor.
The key can be configured directly during development, but after going live it is recommended to hide the key through a proxy service for security.
This answer comes from the articleDeep Chat: an AI chat component for quick website integrationThe




























