mirror of
https://github.com/hwchase17/langchain
synced 2024-11-08 07:10:35 +00:00
634ccb8ccd
## Description | Tool | Original Tool Name | |-----------------------------|---------------------------| | open-meteo-api | Open Meteo API | | news-api | News API | | tmdb-api | TMDB API | | podcast-api | Podcast API | | golden_query | Golden Query | | dall-e-image-generator | Dall-E Image Generator | | twilio | Text Message | | searx_search_results | Searx Search Results | | dataforseo | DataForSeo Results JSON | When using these tools through `load_tools`, I encountered the following validation error: ```console openai.error.InvalidRequestError: 'TMDB API' does not match '^[a-zA-Z0-9_-]{1,64}$' - 'functions.0.name' ``` In order to avoid this error, I replaced spaces with hyphens in the tool names: | Tool | Corrected Tool Name | |-----------------------------|---------------------------| | open-meteo-api | Open-Meteo-API | | news-api | News-API | | tmdb-api | TMDB-API | | podcast-api | Podcast-API | | golden_query | Golden-Query | | dall-e-image-generator | Dall-E-Image-Generator | | twilio | Text-Message | | searx_search_results | Searx-Search-Results | | dataforseo | DataForSeo-Results-JSON | This correction resolved the validation error. Additionally, a unit test, `tests/unit_tests/schema/runnable/test_runnable.py::test_stream_log_retriever`, was failing at random. Upon further investigation, I confirmed that the failure was not related to the above-mentioned changes. The `stream_log` variable was generating the order of logs in two ways at random The reason for this behavior is unclear, but in the assertion, I included both possible orders to account for this variability. |
||
---|---|---|
.. | ||
experimental | ||
langchain |