Atualizar src-py/renatoxsr/scripts/avaliar_dataset.py
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
import requests
|
import requests
|
||||||
import json
|
import json
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
from pprint import pprint
|
||||||
|
|
||||||
# --- CONFIGURAÇÕES ---
|
# --- CONFIGURAÇÕES ---
|
||||||
OLLAMA_URL = "http://192.168.14.20:11434/api/generate"
|
OLLAMA_URL = "http://192.168.14.20:11434/api/generate"
|
||||||
@@ -63,7 +64,7 @@ def get_llm_response(prompt_full: str) -> str:
|
|||||||
return None
|
return None
|
||||||
except requests.exceptions.RequestException as e:
|
except requests.exceptions.RequestException as e:
|
||||||
print(f"\n❌ ERRO GERAL ao comunicar com a API: {e}")
|
print(f"\n❌ ERRO GERAL ao comunicar com a API: {e}")
|
||||||
print(response.request)
|
pprint(response.request)
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user