add flask api:新增Flask api接口以支持视觉语言聊天模型的交互 #168
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
描述:
本次pull request实现了一个基于Flask框架的简洁API服务器,它提供了两个端点(‘/chat’ 和 ‘/chat_bbox’),允许用户通过POST请求与基于视觉和语言信息的聊天模型进行交互。为了启用这一功能,我们确保了以下几点:
该功能将极大地方便开发者与聊天模型进行交云,并可直接集成到现有应用中以增强其交互能力。此外,通过提供明确的API请求示例,用户能够快速理解如何使用这两个接口与聊天模型交互。