@danhachuel/thunderbolt 0.5.50 → 0.5.51

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.
@@ -276,8 +276,14 @@ def validate_paligemma_api_key(
276
276
  if "integrate.api.nvidia.com" in configured:
277
277
  configured = configured.replace("integrate.api.nvidia.com", "ai.api.nvidia.com")
278
278
  endpoint = configured if "/vlm/google/paligemma" in configured else f"{configured}/vlm/google/paligemma"
279
+ # O endpoint VLM devolve 422 quando recebe apenas texto; uma imagem mínima
280
+ # permite testar autenticação e validação do contrato sem usar ficheiros do utilizador.
281
+ one_pixel_png = "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk+A8AAQUBAScY42YAAAAASUVORK5CYII="
279
282
  payload = {
280
- "messages": [{"role": "user", "content": "Describe this image in one word."}],
283
+ "messages": [{"role": "user", "content": [
284
+ {"type": "text", "text": "Describe this image in one word."},
285
+ {"type": "image_url", "image_url": {"url": f"data:image/png;base64,{one_pixel_png}"}},
286
+ ]}],
281
287
  "max_tokens": 8,
282
288
  "temperature": 0,
283
289
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danhachuel/thunderbolt",
3
- "version": "0.5.50",
3
+ "version": "0.5.51",
4
4
  "description": "Thunderbolt — interface local para operação de canais faceless e motor MoneyPrinterTurbo",
5
5
  "license": "MIT",
6
6
  "main": "scripts/cli.mjs",