Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

建议增加一个js代码嵌入功能哈 #1489

Closed
5 tasks done
sunk926 opened this issue May 15, 2024 · 2 comments
Closed
5 tasks done

建议增加一个js代码嵌入功能哈 #1489

sunk926 opened this issue May 15, 2024 · 2 comments
Assignees

Comments

@sunk926
Copy link

sunk926 commented May 15, 2024

例行检查

  • 我已确认目前没有类似 features
  • 我已确认我已升级到最新版本
  • 我已完整查看过项目 README,已确定现有版本无法满足需求
  • 我理解并愿意跟进此 features,协助测试和提供反馈
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 features 可能会被无视或直接关闭

功能描述
我只想实现一个很简单的功能,就是通过用户问题首字母判断调用那个分支.
由于用户问题 首字母又会干扰模型判断或知识库查询,所以需要使用http模块来去除首字母,才繁琐了.

其实只要用 内嵌一个简单的js执行环境就能解决很多这样类似的情况.而且很高效准确.

相关示例
可以参考 quicker 的 输入 变量 ,只要在前面加个 $= {{var}}[key] 就能执行 C#代码表达式. 加$$ holle {{var1}} 就能字符串变量拼接.

@newfish-cmyk newfish-cmyk self-assigned this May 16, 2024
@c121914yu
Copy link
Collaborator

@sunk926
Copy link
Author

sunk926 commented May 31, 2024

牛牛👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants