From a3371d71ac2e960a69a8d24732122ef634e30c37 Mon Sep 17 00:00:00 2001 From: Eric Gustin <34000337+EricGustin@users.noreply.github.com> Date: Wed, 19 Mar 2025 19:53:46 -0800 Subject: [PATCH] Fix Search.SearchJobs for Anthropic Models (#319) Fixes this error: ```bash openai.InternalServerError: Error code: 503 - {'name': 'all_models_unavailable', 'message': "failed to chat with models; Attempt 0: anthropic - anthropic (type = error, message = tools.75.custom.input_schema.properties: Property keys should match pattern '^[a-zA-Z0-9_-]{1,64}$'); Attempt 1: anthropic - anthropic (type = error, message = tools.75.custom.input_schema.properties: Property keys should match pattern '^[a-zA-Z0-9_-]{1,64}$'); Attempt 2: anthropic - anthropic (type = error, message = tools.75.custom.input_schema.properties: Property keys should match pattern '^[a-zA-Z0-9_-]{1,64}$')"} ``` --- toolkits/search/arcade_search/tools/google_jobs.py | 2 +- toolkits/search/pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/toolkits/search/arcade_search/tools/google_jobs.py b/toolkits/search/arcade_search/tools/google_jobs.py index c11a1d89..dcd35452 100644 --- a/toolkits/search/arcade_search/tools/google_jobs.py +++ b/toolkits/search/arcade_search/tools/google_jobs.py @@ -23,7 +23,7 @@ async def search_jobs( ] = None, language: Annotated[ str, - "2-character language code to use in the Google Jobs search. ", + "2-character language code to use in the Google Jobs search. " f"E.g. 'en' for English. Defaults to '{DEFAULT_GOOGLE_JOBS_LANGUAGE}'.", ] = DEFAULT_GOOGLE_JOBS_LANGUAGE, limit: Annotated[ diff --git a/toolkits/search/pyproject.toml b/toolkits/search/pyproject.toml index 16e9ef4f..48e9c46d 100644 --- a/toolkits/search/pyproject.toml +++ b/toolkits/search/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "arcade_search" -version = "1.2.0" +version = "1.2.1" description = "Tools for searching the web" authors = ["Arcade "]