mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-19 12:24:46 +08:00
feat: add Novita AI as optional LLM provider (#910)
* feat: add Novita AI as optional LLM provider Adds Novita AI (https://novita.ai) as an optional, OpenAI-compatible LLM provider. Changes: - Added Novita model configuration example in config.example.yaml - Added NOVITA_API_KEY to .env.example Usage: Set NOVITA_API_KEY in your environment and use novita-gpt-4 as the model name. * update correct model info * Update README.md --------- Co-authored-by: Willem Jiang <willem.jiang@gmail.com>
This commit is contained in:
@@ -10,3 +10,4 @@ JINA_API_KEY=your-jina-api-key
|
|||||||
# OPENAI_API_KEY=your-openai-api-key
|
# OPENAI_API_KEY=your-openai-api-key
|
||||||
# GEMINI_API_KEY=your-gemini-api-key
|
# GEMINI_API_KEY=your-gemini-api-key
|
||||||
# DEEPSEEK_API_KEY=your-deepseek-api-key
|
# DEEPSEEK_API_KEY=your-deepseek-api-key
|
||||||
|
# NOVITA_API_KEY=your-novita-api-key # OpenAI-compatible, see https://novita.ai
|
||||||
@@ -69,6 +69,7 @@ Learn more and see **real demos** on our official website.
|
|||||||
temperature: 0.7 # Sampling temperature
|
temperature: 0.7 # Sampling temperature
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
4. **Set API keys for your configured model(s)**
|
4. **Set API keys for your configured model(s)**
|
||||||
|
|
||||||
Choose one of the following methods:
|
Choose one of the following methods:
|
||||||
|
|||||||
@@ -25,6 +25,23 @@ models:
|
|||||||
- DeepSeek (`langchain_deepseek:ChatDeepSeek`)
|
- DeepSeek (`langchain_deepseek:ChatDeepSeek`)
|
||||||
- Any LangChain-compatible provider
|
- Any LangChain-compatible provider
|
||||||
|
|
||||||
|
For OpenAI-compatible gateways (for example Novita), keep using `langchain_openai:ChatOpenAI` and set `base_url`:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
models:
|
||||||
|
- name: novita-deepseek-v3.2
|
||||||
|
display_name: Novita DeepSeek V3.2
|
||||||
|
use: langchain_openai:ChatOpenAI
|
||||||
|
model: deepseek/deepseek-v3.2
|
||||||
|
api_key: $NOVITA_API_KEY
|
||||||
|
base_url: https://api.novita.ai/openai
|
||||||
|
supports_thinking: true
|
||||||
|
when_thinking_enabled:
|
||||||
|
extra_body:
|
||||||
|
thinking:
|
||||||
|
type: enabled
|
||||||
|
```
|
||||||
|
|
||||||
**Thinking Models**:
|
**Thinking Models**:
|
||||||
Some models support "thinking" mode for complex reasoning:
|
Some models support "thinking" mode for complex reasoning:
|
||||||
|
|
||||||
@@ -169,6 +186,7 @@ models:
|
|||||||
- `OPENAI_API_KEY` - OpenAI API key
|
- `OPENAI_API_KEY` - OpenAI API key
|
||||||
- `ANTHROPIC_API_KEY` - Anthropic API key
|
- `ANTHROPIC_API_KEY` - Anthropic API key
|
||||||
- `DEEPSEEK_API_KEY` - DeepSeek API key
|
- `DEEPSEEK_API_KEY` - DeepSeek API key
|
||||||
|
- `NOVITA_API_KEY` - Novita API key (OpenAI-compatible endpoint)
|
||||||
- `TAVILY_API_KEY` - Tavily search API key
|
- `TAVILY_API_KEY` - Tavily search API key
|
||||||
- `DEER_FLOW_CONFIG_PATH` - Custom config file path
|
- `DEER_FLOW_CONFIG_PATH` - Custom config file path
|
||||||
|
|
||||||
|
|||||||
@@ -23,6 +23,24 @@ models:
|
|||||||
temperature: 0.7
|
temperature: 0.7
|
||||||
supports_vision: true # Enable vision support for view_image tool
|
supports_vision: true # Enable vision support for view_image tool
|
||||||
|
|
||||||
|
# Example: Novita AI (OpenAI-compatible)
|
||||||
|
# Novita provides an OpenAI-compatible API with competitive pricing
|
||||||
|
# See: https://novita.ai
|
||||||
|
- name: novita-deepseek-v3.2
|
||||||
|
display_name: Novita DeepSeek V3.2
|
||||||
|
use: langchain_openai:ChatOpenAI
|
||||||
|
model: deepseek/deepseek-v3.2
|
||||||
|
api_key: $NOVITA_API_KEY
|
||||||
|
base_url: https://api.novita.ai/openai
|
||||||
|
max_tokens: 4096
|
||||||
|
temperature: 0.7
|
||||||
|
supports_thinking: true
|
||||||
|
supports_vision: true
|
||||||
|
when_thinking_enabled:
|
||||||
|
extra_body:
|
||||||
|
thinking:
|
||||||
|
type: enabled
|
||||||
|
|
||||||
# Example: Anthropic Claude model
|
# Example: Anthropic Claude model
|
||||||
# - name: claude-3-5-sonnet
|
# - name: claude-3-5-sonnet
|
||||||
# display_name: Claude 3.5 Sonnet
|
# display_name: Claude 3.5 Sonnet
|
||||||
|
|||||||
Reference in New Issue
Block a user