[GH-ISSUE #1689] [BUG]: Cannot chat with Gemini API key. #1103

Closed
opened 2026-02-22 18:23:08 -05:00 by yindo · 3 comments
Owner

Originally created by @harwinpopat on GitHub (Jun 15, 2024).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/1689

How are you running AnythingLLM?

AnythingLLM desktop app

What happened?

image

When using the API key from Gemini and adding that to the Workspace LLM Provider, I get this error - [GoogleGenerativeAI Error]: Error fetching from https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-pro-latest:streamGenerateContent?alt=sse: Cannot convert argument to a ByteString because the character at index 486 has a value of 8211 which is greater than 255.

Are there known steps to reproduce?

Add Gemini API key in Workspace LLM Provider and chat with it.

Originally created by @harwinpopat on GitHub (Jun 15, 2024). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/1689 ### How are you running AnythingLLM? AnythingLLM desktop app ### What happened? ![image](https://github.com/Mintplex-Labs/anything-llm/assets/84907767/9a7c6104-516d-4f72-8f51-e81b20bb87b6) When using the API key from Gemini and adding that to the Workspace LLM Provider, I get this error - [GoogleGenerativeAI Error]: Error fetching from https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-pro-latest:streamGenerateContent?alt=sse: Cannot convert argument to a ByteString because the character at index 486 has a value of 8211 which is greater than 255. ### Are there known steps to reproduce? Add Gemini API key in Workspace LLM Provider and chat with it.
yindo added the possible bugneeds info / can't replicateinvestigating labels 2026-02-22 18:23:08 -05:00
yindo closed this issue 2026-02-22 18:23:08 -05:00
Author
Owner

@timothycarambat commented on GitHub (Jun 17, 2024):

Does this occur on a workspace with no documents embedded in it?

@timothycarambat commented on GitHub (Jun 17, 2024): Does this occur on a workspace with no documents embedded in it?
Author
Owner

@harwinpopat commented on GitHub (Jun 17, 2024):

Happens either way.

On Tue, 18 Jun, 2024, 2:26 am Timothy Carambat, @.***>
wrote:

Does this occur on a workspace with no documents embedded in it?


Reply to this email directly, view it on GitHub
https://github.com/Mintplex-Labs/anything-llm/issues/1689#issuecomment-2174409176,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AUHZN55IGI6XFNNCNBAHSXTZH5EQVAVCNFSM6AAAAABJLLEGOWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZUGQYDSMJXGY
.
You are receiving this because you authored the thread.Message ID:
@.***>

@harwinpopat commented on GitHub (Jun 17, 2024): Happens either way. On Tue, 18 Jun, 2024, 2:26 am Timothy Carambat, ***@***.***> wrote: > Does this occur on a workspace with no documents embedded in it? > > — > Reply to this email directly, view it on GitHub > <https://github.com/Mintplex-Labs/anything-llm/issues/1689#issuecomment-2174409176>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AUHZN55IGI6XFNNCNBAHSXTZH5EQVAVCNFSM6AAAAABJLLEGOWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZUGQYDSMJXGY> > . > You are receiving this because you authored the thread.Message ID: > ***@***.***> >
Author
Owner

@timothycarambat commented on GitHub (Jun 18, 2024):

I am unable to reproduce this with our key(s). You do have access to 1.5 Pro, correct? We have some contacts who exclusively use Gemini so if this was a pervasive bug i'd be getting emails from all of them. 🤔

@timothycarambat commented on GitHub (Jun 18, 2024): I am unable to reproduce this with our key(s). You do have access to 1.5 Pro, correct? We have some contacts who exclusively use Gemini so if this was a pervasive bug i'd be getting emails from all of them. 🤔
yindo changed title from [BUG]: Cannot chat with Gemini API key. to [GH-ISSUE #1689] [BUG]: Cannot chat with Gemini API key. 2026-06-05 14:38:59 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#1103