Skip to content

feat: add response size limit with MAX_RESPONSE_CHARS env var (#125)#230

Open
JaydenB112 wants to merge 1 commit into
firecrawl:mainfrom
JaydenB112:fix/response-token-overflow
Open

feat: add response size limit with MAX_RESPONSE_CHARS env var (#125)#230
JaydenB112 wants to merge 1 commit into
firecrawl:mainfrom
JaydenB112:fix/response-token-overflow

Conversation

@JaydenB112
Copy link
Copy Markdown

Addresses #125 - Addressed the response size detection with a MAX_RESPONSE_CHARS env variable that defaults to 50,000 to detect and truncate large responses before they exceed the LLM's context window. When truncated it provides users with a clear message to either adjust the limit or tighten the scope of their scrape. Still working on part two of this issue with an actual global setting to toggle between JSON and MD fetch though.

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