@danhachuel/thunderbolt 0.5.29 → 0.5.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -175,6 +175,8 @@ def test_media_provider_card(card: Mapping[str, Any]) -> dict[str, Any]:
|
|
|
175
175
|
return _missing("Introduza a API key/token antes de testar este provider.")
|
|
176
176
|
if provider == "heygen":
|
|
177
177
|
return _get(f"{base_url}/v3/users/me", headers={"X-Api-Key": api_key})
|
|
178
|
+
if provider == "kie_ai":
|
|
179
|
+
return _get(f"{base_url}/chat/credit", headers={"Authorization": f"Bearer {api_key}"})
|
|
178
180
|
if not model and provider not in {"inferenceport", "cloudflare_workers_ai", "heygen"}:
|
|
179
181
|
return _result("missing", "Complete o modelo antes de testar.")
|
|
180
182
|
if provider == "openrouter":
|
|
@@ -190,7 +192,7 @@ def test_media_provider_card(card: Mapping[str, Any]) -> dict[str, Any]:
|
|
|
190
192
|
return _result("missing", "Complete o Account ID do Cloudflare antes de testar.")
|
|
191
193
|
endpoint = f"{base_url}/accounts/{quote(account_id, safe='')}/ai/models/search"
|
|
192
194
|
return _get(endpoint, headers=headers, params={"search": model or "stable-diffusion"})
|
|
193
|
-
if api_style in {"openai_compatible", "huggingface", "agnes", "kie"} or provider in {"pollinations", "huggingface", "agnes", "
|
|
195
|
+
if api_style in {"openai_compatible", "huggingface", "agnes", "kie"} or provider in {"pollinations", "huggingface", "agnes", "inferenceport"}:
|
|
194
196
|
endpoint = _models_endpoint(base_url)
|
|
195
197
|
elif provider == "fal_ai":
|
|
196
198
|
endpoint = f"{base_url}/models" if base_url.endswith("/v1") else base_url
|
package/package.json
CHANGED