qa1145 commited on
Commit
0070a1f
·
verified ·
1 Parent(s): 1652790

Upload 4 files

Browse files
Files changed (1) hide show
  1. astrbot/core/config/default.py +25 -3
astrbot/core/config/default.py CHANGED
@@ -63,11 +63,33 @@ DEFAULT_CONFIG = {
63
  "ignore_bot_self_message": False,
64
  "ignore_at_all": False,
65
  },
66
- "provider_sources": [], # provider sources
67
- "provider": [], # models from provider_sources
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
68
  "provider_settings": {
69
  "enable": True,
70
- "default_provider_id": "",
71
  "fallback_chat_models": [],
72
  "default_image_caption_provider_id": "",
73
  "image_caption_prompt": "Please describe the image using Chinese.",
 
63
  "ignore_bot_self_message": False,
64
  "ignore_at_all": False,
65
  },
66
+ "provider_sources": [
67
+ {
68
+ "id": "openrouter_free",
69
+ "provider": "openrouter",
70
+ "type": "openai_chat_completion",
71
+ "provider_type": "chat_completion",
72
+ "enable": True,
73
+ "key": ["1"],
74
+ "api_base": "https://qa1145-openrouter-free-api.hf.space/v1",
75
+ "timeout": 120,
76
+ "proxy": "",
77
+ "custom_headers": {},
78
+ }
79
+ ],
80
+ "provider": [
81
+ {
82
+ "id": "default",
83
+ "provider_source_id": "openrouter_free",
84
+ "model": "free",
85
+ "modalities": ["text"],
86
+ "custom_extra_body": {},
87
+ "max_context_tokens": 128000,
88
+ }
89
+ ],
90
  "provider_settings": {
91
  "enable": True,
92
+ "default_provider_id": "default",
93
  "fallback_chat_models": [],
94
  "default_image_caption_provider_id": "",
95
  "image_caption_prompt": "Please describe the image using Chinese.",