Skip to content

fix(web-search): handle non-json content-type from ollama api - #55

Open
ak1ra-komj wants to merge 1 commit into
bubbuild:mainfrom
ak1ra-komj:bub_web_search/ollama
Open

fix(web-search): handle non-json content-type from ollama api#55
ak1ra-komj wants to merge 1 commit into
bubbuild:mainfrom
ak1ra-komj:bub_web_search/ollama

Conversation

@ak1ra-komj

Copy link
Copy Markdown

Ollama's /api/web_search returns Content-Type: text/html instead of application/json, causing aiohttp response.json() to reject parsing. Add content_type=None to allow JSON decoding regardless of content-type.

Ollama's /api/web_search returns Content-Type: text/html instead of
application/json, causing aiohttp response.json() to reject parsing.
Add content_type=None to allow JSON decoding regardless of content-type.
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.

1 participant