返回提交历史
Modified
g4f/Provider/PollinationsAI.py
+2
-2
Modified
g4f/providers/base_provider.py
+6
-9
XFEstudio/gpt4free
Update model list in PollinationsAI Update config parameters
a021dcdf
代码差异
2 个文件
+8
-11
@@ -53,7 +53,7 @@ class PollinationsAI(AsyncGeneratorProvider, ProviderModelMixin):
53
53
text_models = [default_model]
54
54
image_models = [default_image_model]
55
55
extra_image_models = ["flux-pro", "flux-dev", "flux-schnell", "midjourney", "dall-e-3"]
56
vision_models = [default_vision_model, "gpt-4o-mini", "o1-mini", "openai", "openai-large"]
56
vision_models = [default_vision_model, "gpt-4o-mini", "o3-mini", "openai", "openai-large"]
57
57
extra_text_models = vision_models
58
58
_models_loaded = False
59
59
model_aliases = {
@@ -61,7 +61,7 @@ class PollinationsAI(AsyncGeneratorProvider, ProviderModelMixin):
61
61
"gpt-4o-mini": "openai",
62
62
"gpt-4": "openai-large",
63
63
"gpt-4o": "openai-large",
64
"o1-mini": "openai-reasoning",
64
"o3-mini": "openai-reasoning",
65
65
"qwen-2.5-coder-32b": "qwen-coder",
66
66
"llama-3.3-70b": "llama",
67
67
"mistral-nemo": "mistral",
@@ -27,13 +27,13 @@ SAFE_PARAMETERS = [
27
27
"model", "messages", "stream", "timeout",
28
28
"proxy", "images", "response_format",
29
29
"prompt", "negative_prompt", "tools", "conversation",
30
"history_disabled", "auto_continue",
30
"history_disabled",
31
31
"temperature", "top_k", "top_p",
32
32
"frequency_penalty", "presence_penalty",
33
"max_tokens", "max_new_tokens", "stop",
33
"max_tokens", "stop",
34
34
"api_key", "api_base", "seed", "width", "height",
35
"proof_token", "max_retries", "web_search",
36
"guidance_scale", "num_inference_steps", "randomize_seed",
35
"max_retries", "web_search",
36
"guidance_scale", "n", "randomize_seed",
37
37
"safe", "enhance", "private", "aspect_ratio", "images_num",
38
38
]
39
39
@@ -44,8 +44,8 @@ BASIC_PARAMETERS = {
44
44
"stream": False,
45
45
"timeout": 0,
46
46
"response_format": None,
47
"max_tokens": None,
48
"stop": None,
47
"max_tokens": 4096,
48
"stop": ["stop1", "stop2"],
49
49
}
50
50
51
51
PARAMETER_EXAMPLES = {
@@ -59,10 +59,7 @@ PARAMETER_EXAMPLES = {
59
59
"images": [["data:image/jpeg;base64,...", "filename.jpg"]],
60
60
"response_format": {"type": "json_object"},
61
61
"conversation": {"conversation_id": "550e8400-e29b-11d4-a716-...", "message_id": "550e8400-e29b-11d4-a716-..."},
62
"max_new_tokens": 1024,
63
"max_tokens": 4096,
64
62
"seed": 42,
65
"stop": ["stop1", "stop2"],
66
63
"tools": [],
67
64
}
68
65