Skip to content

Commit

Permalink
fix: add func name to florencev2 fine tune
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanwen-tian committed Sep 24, 2024
1 parent 03d0e5d commit 0367dc2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vision_agent/tools/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -1181,7 +1181,8 @@ def florence2_phrase_grounding(
fine_tuning=FineTuning(job_id=UUID(fine_tune_id)),
)
data = data_obj.model_dump(by_alias=True)
detections = send_inference_request(data, "tools", v2=False)
metadata = {"function_name": "florence2_phrase_grounding"}
detections = send_inference_request(data, "tools", v2=False, metadata=metadata)
else:
data = {
"image": image_b64,
Expand Down

0 comments on commit 0367dc2

Please sign in to comment.