Skip to content

Commit fd3c308

Browse files
fix ignored API_URL in mathvista (#705)
1 parent e1a8ad4 commit fd3c308

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lmms_eval/tasks/mathvista/mathvista_evals.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ class MathVistaEvaluator:
167167
"Authorization": f"Bearer {API_KEY}",
168168
"Content-Type": "application/json",
169169
}
170-
client = OpenAI(api_key=API_KEY)
170+
client = OpenAI(api_key=API_KEY, base_url=API_URL.rstrip("chat/completions"))
171171
gpt_model = config["metadata"]["gpt_eval_model_name"]
172172

173173
elif API_TYPE == "azure":

0 commit comments

Comments
 (0)