joshpxyne / gpt-migrate

Easily migrate your codebase from one framework or language to another.
https://gpt-migrate.com
MIT License
6.87k stars 485 forks source link

Invalid response object from API: 'Request Entity Too Large' (HTTP response code was 413) with openrouter gpt-4-32k #44

Closed nickvarterian closed 11 months ago

nickvarterian commented 1 year ago

I am encountering an error when using the openrouter gpt-4-32k API. The error message I'm receiving is as follows:

Invalid response object from API: 'Request Entity Too Large\n\nFUNCTION_PAYLOAD_TOO_LARGE\n' (HTTP response code was 413)

The HTTP response code associated with this error is 413. It appears that the issue is related to the size of the prompt being sent to the openrouter API, as it is too large.

The prompt that is created by gpt-migrate is too large for openrouters api. Has anyone ran into this issue and fixed it?

mjroeleveld commented 9 months ago

@nickvarterian did you manage to fix this?