-
Notifications
You must be signed in to change notification settings - Fork 13
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
TypeError: 'dict' object is not callable when trying to test Open API tool #97
Comments
@Chance-Obondo this works for me on the main branch but it could indeed not be working on old release of haystack-experimental (v0.1.1). We are about to release a new version of experimental but until then please try with
I just tried it and I get:
Let us know 🙏 |
Thank you! It has worked on my end, is there a way maybe the documentation on colab can be updated and also on github so that anyone else trying to experiment can know there's some updates? |
It would be a moot update as the new release is imminent - should be literally today. Please keep trying OpenAPITool @Chance-Obondo - your feedback is going to be immensely valuable. |
Recommend closing @julian-risch |
Also, even though sometimes an OpenAPI spec for a certain REST endpoint is not available - you can usually generate it using its documentation and AI generation tools, making it easier to integrate REST endpoints with your Haystack-based LLM app. |
A new release of haystack-experimental is out. This issue is now officially fixed, closing as "Fixed"! |
I am getting the mentioned error when trying to test the OpenAPI tool, not sure how to go about it.
My code:
`
import os
from haystack.dataclasses import ChatMessage
from haystack_experimental.components.tools.openapi import OpenAPITool, LLMProvider
from haystack.utils import Secret
os.environ["OPENAI_API_KEY"]=""
os.environ["SERPERDEV_API_KEY"]=""
tool = OpenAPITool(generator_api=LLMProvider.OPENAI,
spec="https://raw.githubusercontent.com/open-meteo/open-meteo/main/openapi.yml")
tool.run(messages=[ChatMessage.from_user("Weather in San Francisco, US")])`
The error:
TypeError: 'dict' object is not callable
The text was updated successfully, but these errors were encountered: