Skip to content

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

Merged
frostming merged 1 commit into
bubbuild:mainfrom
ak1ra-komj:bub_web_search/ollama
Aug 14, 2026
Merged

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

Conversation

@ak1ra-komj

Copy link
Copy Markdown
Contributor

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.
@frostming
frostming merged commit b894dbe into bubbuild:main Aug 14, 2026
1 check passed
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