labring / FastGPT

FastGPT is a knowledge-based platform built on the LLMs, offers a comprehensive suite of out-of-the-box capabilities such as data processing, RAG retrieval, and visual AI workflow orchestration, letting you easily develop and deploy complex question-answering systems without the need for extensive setup or configuration.
https://tryfastgpt.ai
Other
17.46k stars 4.69k forks source link

http插件可否不限制json requestBody #1084

Closed bincooo closed 2 months ago

bincooo commented 6 months ago

例行检查

你的版本

问题描述 有许多公开的api不是通过application/json传输的 https://github.com/labring/FastGPT/blob/00ace0b69cf63aa6407778dcd0d1622cc67a7e61/packages/service/core/workflow/dispatch/tools/http468.ts#L91

还有一个是问题分类中的聊天记录,我填了1但是貌似无法控制上下文

复现步骤

预期结果

相关截图

Screenshot 2024-03-28 at 03 47 49 Screenshot 2024-03-28 at 03 48 22
bincooo commented 6 months ago

@c121914yu https://github.com/labring/FastGPT/blob/00ace0b69cf63aa6407778dcd0d1622cc67a7e61/packages/service/core/workflow/dispatch/tools/http468.ts#L64

请教一下这个位置,最新记录是在左边吗?感觉新对话在右边插入的? 这样是不是会没满30条时,左边10条固定了。。。

c121914yu commented 6 months ago

@c121914yu https://github.com/labring/FastGPT/blob/00ace0b69cf63aa6407778dcd0d1622cc67a7e61/packages/service/core/workflow/dispatch/tools/http468.ts#L64

请教一下这个位置,最新记录是在左边吗?感觉新对话在右边插入的? 这样是不是会没满30条时,左边10条固定了。。。

确实应该是取后,可以提个pr修复下。

bincooo commented 6 months ago

好的谢谢 @c121914yu

c121914yu commented 6 months ago

不限制 body 这个,目前可以通过外挂代码实现。后面有时间再看看要不要做进去。

bincooo commented 6 months ago

已经通过补丁改了

Screenshot 2024-04-01 at 23 55 47

后面还是幸苦一下大佬