Pranjal Parashar commited on
Commit
db2dcfd
·
unverified ·
1 Parent(s): 559fdd1

first val fail fix

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. inference.py +2 -2
README.md CHANGED
@@ -238,7 +238,7 @@ The root [inference.py](/Users/pranjalparashar/Desktop/hackz/cw-apr1/control-roo
238
 
239
  - `API_BASE_URL`
240
  - `MODEL_NAME`
241
- - `HF_TOKEN`
242
 
243
  The benchmark-specific helper logic lives in [baseline.py](/Users/pranjalparashar/Desktop/hackz/cw-apr1/control-room/developer_control_room/baseline.py):
244
 
 
238
 
239
  - `API_BASE_URL`
240
  - `MODEL_NAME`
241
+ - `API_KEY`
242
 
243
  The benchmark-specific helper logic lives in [baseline.py](/Users/pranjalparashar/Desktop/hackz/cw-apr1/control-room/developer_control_room/baseline.py):
244
 
inference.py CHANGED
@@ -5,7 +5,7 @@ MANDATORY
5
  - Before submitting, ensure the following variables are defined in your environment configuration:
6
  API_BASE_URL The API endpoint for the LLM.
7
  MODEL_NAME The model identifier to use for inference.
8
- HF_TOKEN Your Hugging Face / API key.
9
  LOCAL_IMAGE_NAME The name of the local image to use for the environment if you are using from_docker_image()
10
  method
11
 
@@ -70,7 +70,7 @@ load_env_file()
70
  LOCAL_IMAGE_NAME = os.getenv("LOCAL_IMAGE_NAME") or os.getenv("IMAGE_NAME")
71
  DEFAULT_ENV_URL = "https://praanjal-control-room.hf.space"
72
  ENV_URL = os.getenv("ENV_URL") or DEFAULT_ENV_URL
73
- API_KEY = os.getenv("HF_TOKEN") or os.getenv("OPENAI_API_KEY") or os.getenv("API_KEY")
74
 
75
  API_BASE_URL = os.getenv("API_BASE_URL") or "https://router.huggingface.co/v1"
76
  MODEL_NAME = os.getenv("MODEL_NAME") or "Qwen/Qwen2.5-72B-Instruct"
 
5
  - Before submitting, ensure the following variables are defined in your environment configuration:
6
  API_BASE_URL The API endpoint for the LLM.
7
  MODEL_NAME The model identifier to use for inference.
8
+ API_KEY The injected API key for the provided LLM proxy.
9
  LOCAL_IMAGE_NAME The name of the local image to use for the environment if you are using from_docker_image()
10
  method
11
 
 
70
  LOCAL_IMAGE_NAME = os.getenv("LOCAL_IMAGE_NAME") or os.getenv("IMAGE_NAME")
71
  DEFAULT_ENV_URL = "https://praanjal-control-room.hf.space"
72
  ENV_URL = os.getenv("ENV_URL") or DEFAULT_ENV_URL
73
+ API_KEY = os.getenv("API_KEY") or os.getenv("HF_TOKEN")
74
 
75
  API_BASE_URL = os.getenv("API_BASE_URL") or "https://router.huggingface.co/v1"
76
  MODEL_NAME = os.getenv("MODEL_NAME") or "Qwen/Qwen2.5-72B-Instruct"