diff options
author | Heiner Lohaus <hlohaus@users.noreply.github.com> | 2024-04-22 18:08:04 +0200 |
---|---|---|
committer | Heiner Lohaus <hlohaus@users.noreply.github.com> | 2024-04-22 18:08:04 +0200 |
commit | 6e064adb094bacd10bd8bbc8c18a405e1cf651cd (patch) | |
tree | 19b3a3e9bdd7ce2afed8070dac7b5f0f2a7f7308 /etc | |
parent | Fix "domain" KeyError with Firefox .har (diff) | |
download | gpt4free-6e064adb094bacd10bd8bbc8c18a405e1cf651cd.tar gpt4free-6e064adb094bacd10bd8bbc8c18a405e1cf651cd.tar.gz gpt4free-6e064adb094bacd10bd8bbc8c18a405e1cf651cd.tar.bz2 gpt4free-6e064adb094bacd10bd8bbc8c18a405e1cf651cd.tar.lz gpt4free-6e064adb094bacd10bd8bbc8c18a405e1cf651cd.tar.xz gpt4free-6e064adb094bacd10bd8bbc8c18a405e1cf651cd.tar.zst gpt4free-6e064adb094bacd10bd8bbc8c18a405e1cf651cd.zip |
Diffstat (limited to 'etc')
-rw-r--r-- | etc/tool/readme_table.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/tool/readme_table.py b/etc/tool/readme_table.py index 439b17fa..e89f861b 100644 --- a/etc/tool/readme_table.py +++ b/etc/tool/readme_table.py @@ -136,6 +136,8 @@ def print_image_models(): netloc = urlparse(provider_url).netloc.replace("www.", "") website = f"[{netloc}]({provider_url})" label = image_model["provider"] if image_model["label"] is None else image_model["label"] + if image_model["image_model"] is None: + image_model["image_model"] = "❌" if image_model["vision_model"] is None: image_model["vision_model"] = "❌" lines.append(f'| {label} | `g4f.Provider.{image_model["provider"]}` | {image_model["image_model"]}| {image_model["vision_model"]} | {website} |') |