Feature: deepseek provider & support for text-only model #41
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.
这个 PR 主要添加了 DeepSeek 的 LLMProvider 以及对纯文本大模型的支持。这个 PR 做了以下修改:
DeepseekProvider
以及对应的集成测试;Tool
新增了need_vision
字段,当这个Tool
可能会需要大模型的视觉能力时该字段为true
,否则为false
;LLMProvider
新增了hasVisionCapacity()
方法,当这个LLMProvider
有视觉能力时该方法返回true
,否则为false
;Eko
类的构造函数中,根据llmProvider.hasVisionCapacity()
过滤可能使用的 tools。对于第 1 条修改,你可以通过运行对应的集成测试来验证,具体命令如下:
对于其他修改,我目前暂时无法验证,一种可能的解决方法是在 https://github.com/FellouAI/eko-browser-extension-template 中添加对
DeepseekProvider
的支持后再来验证。This PR mainly adds the LLMProvider for DeepSeek and support for plain text large models. The following modifications have been made in this PR:
DeepseekProvider
and the corresponding integration tests;need_vision
field to allTool
subclasses. This field is set totrue
if theTool
may require the vision capabilities of a large model, andfalse
otherwise;hasVisionCapacity()
method to allLLMProvider
subclasses. This method returnstrue
if theLLMProvider
has vision capabilities, andfalse
otherwise;Eko
class, filtered the potential tools to use based onllmProvider.hasVisionCapacity()
.For the first modification, you can verify it by running the corresponding integration tests. The specific commands are as follows:
For the other modifications, I am currently unable to verify them. One possible solution is to add support for
DeepseekProvider
in the https://github.com/FellouAI/eko-browser-extension-template repository before verification.