dev-env-debugger / inference.py

Commit History

clamp all grader scores to strictly (0,1) exclusive per OpenEnv spec
6c700b3

Ajjack4 commited on

rewrite inference.py to match sample exactly: IMAGE_NAME, HF_TOKEN first, correct log format
87aa853

Ajjack4 commited on

default ENV_BASE_URL to localhost:7860 — validator runs container there before inference.py
a07333b

Ajjack4 commited on

add LOCAL_IMAGE_NAME Docker support, use API_KEY var, debug logging for env/model URLs
5d4432b

Ajjack4 commited on

read API_KEY env var for validator LiteLLM proxy, keep HF_TOKEN/OPENAI_API_KEY as fallbacks
2f0f7b7

Ajjack4 commited on

guarantee [START]/[END] per task: wrap OpenAI() constructor, guard client=None
ed395b6

Ajjack4 commited on

fix log format to key=value, default ENV_BASE_URL to live HF Space
91a4057

Ajjack4 commited on

never exit non-zero: remove sys.exit(1), script always completes cleanly
22ebfb6

Ajjack4 commited on

harden inference.py: catch all HTTP errors, retry on reset, guard main()
3bd2b79

Ajjack4 commited on

accept both HF_TOKEN and OPENAI_API_KEY, default API_BASE_URL and MODEL_NAME
c1ff000

Ajjack4 commited on

handle missing env vars gracefully in inference.py
d6d0673

Ajjack4 commited on

add inference.py with structured logs, openai client, required env vars
eb9db3e

Ajjack4 commited on