XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 0
返回提交历史

XFEstudio/gpt4free

Fix sending images, fix unittests

c9755196
hlohaus <983577+hlohaus@users.noreply.github.com>
提交于

代码差异

2 个文件 +2 -3
Modified g4f/Provider/LambdaChat.py +1 -3
@@ -34,7 +34,6 @@ class LambdaChat(AsyncGeneratorProvider, ProviderModelMixin):
34 34 "lfm-40b",
35 35 "llama3.3-70b-instruct-fp8",
36 36 "qwen25-coder-32b-instruct",
37 "deepseek-v3",
38 37 default_model,
39 38 "llama-4-maverick-17b-128e-instruct-fp8",
40 39 "llama-4-scout-17b-16e-instruct",
@@ -42,8 +41,7 @@ class LambdaChat(AsyncGeneratorProvider, ProviderModelMixin):
42 41 "qwen3-32b-fp8",
43 42 ]
44 43 model_aliases = {
45 "deepseek-r1": ["deepseek-r1", "deepseek-r1-0528"],
46 "deepseek-v3": ["deepseek-v3", "deepseek-v3-0324"],
44 "deepseek-v3-0324": "deepseek-v3",
47 45 "hermes-3": "hermes3-405b-fp8-128k",
48 46 "hermes-3-405b": ["hermes3-405b-fp8-128k", "hermes-3-llama-3.1-405b-fp8"],
49 47 "nemotron-70b": "llama3.1-nemotron-70b-instruct",
Modified g4f/image/__init__.py +1 -0
@@ -164,6 +164,7 @@ def is_data_uri_an_image(data_uri: str) -> bool:
164 164 # Check if the image format is one of the allowed formats (jpg, jpeg, png, gif)
165 165 if image_format not in EXTENSIONS_MAP and image_format != "svg+xml":
166 166 raise ValueError("Invalid image format (from mime file type).")
167 return True
167 168
168 169 def is_accepted_format(binary_data: bytes) -> str:
169 170 """