Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed wrong task_name in send_task_inference_request inside _agentic_object_detection #383

Closed
wants to merge 1 commit into from

Conversation

vishalk1995
Copy link

I was working with Vision Agent and encountered that even when the agentic_object_detection is called the results were produced by the text-to-object detection API.
For _agentic_object_detection the final URL call should be to "https://api.landing.ai/v1/tools/agentic-object-detection"

As per the this page:
https://va.landing.ai/demo/agentic-od

import requests url = "https://api.landing.ai/v1/tools/agentic-object-detection" files = { "image": open("{{path_to_image}}", "rb") } data = { "prompts": "{{prompt}}", "model": "agentic" } headers = { "Authorization": "Basic {{your_api_key}}" } response = requests.post(url, files=files, data=data, headers=headers) print(response.json())

@dillonalaird
Copy link
Member

@vishalk1995 , thanks for showing interest in vision-agent! I have given an explanation for the reason we use a different endpoint in the issue here #382

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants