-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.example.toml
More file actions
46 lines (40 loc) · 1.29 KB
/
Copy pathconfig.example.toml
File metadata and controls
46 lines (40 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Minimal, self-contained ModGate configuration.
#
# Copy this file to `config.toml`, set the referenced secrets in the process
# environment, then run `model-port config validate`. Optional providers are
# enabled through their environment variables; see docs/CONFIGURATION.md.
default_provider = "deepseek"
provider_order = ["deepseek"]
[server]
bind = "127.0.0.1:38082"
max_request_body_bytes = 33554432
max_concurrent_requests = 64
[auth]
token_env = "MODGATE_AUTH_TOKEN"
# DeepSeek's Anthropic-compatible endpoint keeps the client contract intact.
[providers.deepseek]
display_name = "DeepSeek Official Anthropic"
protocol = "anthropic"
base_url_env = "DEEPSEEK_ANTHROPIC_BASE_URL"
base_url = "https://api.deepseek.com/anthropic"
api_key_env = "DEEPSEEK_ANTHROPIC_AUTH_TOKEN"
default_model = "deepseek-v4-flash"
models = [
"deepseek-v4-pro",
"deepseek-v4-flash",
"deepseek-chat",
"deepseek-reasoner",
]
model_prefixes = ["deepseek-"]
passthrough_unknown_models = false
deduplicate_stream_text = true
[providers.deepseek.tool_use]
supported = true
tool_choice = true
parallel_tool_calls = true
streaming_arguments = "native"
response_validation = "best_effort"
repair_invalid_arguments = false
[aliases]
deepseek-v4-pro = "deepseek:deepseek-v4-pro"
deepseek-v4-flash = "deepseek:deepseek-v4-flash"