[GH-ISSUE #1211] [BUG]: When pasting in Python code, thinks Agent Session is needed. Fails asking for OpenAI key. #753

Closed
opened 2026-02-22 18:21:11 -05:00 by yindo · 1 comment
Owner

Originally created by @atljoseph on GitHub (Apr 27, 2024).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/1211

How are you running AnythingLLM?

AnythingLLM desktop app

What happened?

Error when sending message containing copy/pasted code that was generated in same chat session.

IMG_1734

Are there known steps to reproduce?

Reliably, every time a paste in this python code, there is an error about an OpenAI API key. I’m connected locally to Ollama. I’m not trying to connect to OpenAI. I’m not sure where that’s coming from in your app. Got to this situation by simply copying output, the LLM generated and asking it a question. Without fail it always has this error. Folks should be able to take code generated and paste it back in and ask questions about it without running into random errors.

Originally created by @atljoseph on GitHub (Apr 27, 2024). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/1211 ### How are you running AnythingLLM? AnythingLLM desktop app ### What happened? Error when sending message containing copy/pasted code that was generated in same chat session. ![IMG_1734](https://github.com/Mintplex-Labs/anything-llm/assets/25017621/e3cb4182-e739-454a-abbf-a294abccef57) ### Are there known steps to reproduce? Reliably, every time a paste in this python code, there is an error about an OpenAI API key. I’m connected locally to Ollama. I’m not trying to connect to OpenAI. I’m not sure where that’s coming from in your app. Got to this situation by simply copying output, the LLM generated and asking it a question. Without fail it always has this error. Folks should be able to take code generated and paste it back in and ask questions about it without running into random errors.
yindo added the possible bug label 2026-02-22 18:21:11 -05:00
yindo closed this issue 2026-02-22 18:21:11 -05:00
Author
Owner

@timothycarambat commented on GitHub (Apr 27, 2024):

regression of https://github.com/Mintplex-Labs/anything-llm/issues/1151

@timothycarambat commented on GitHub (Apr 27, 2024): regression of https://github.com/Mintplex-Labs/anything-llm/issues/1151
yindo changed title from [BUG]: When pasting in Python code, thinks Agent Session is needed. Fails asking for OpenAI key. to [GH-ISSUE #1211] [BUG]: When pasting in Python code, thinks Agent Session is needed. Fails asking for OpenAI key. 2026-06-05 14:37:00 -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#753