Hi, I don’t know why I got this error. I had it since last night. I don’t remember this happening because this was not going on when talking to Cody for a long time. I don’t know if its a bug or what.
Request Failed: Anthropic (Sourcegraph Cody Gateway): unexpected status code 400: {“type”:“error”,“error”:{“type”:“invalid_request_error”,“message”:“prompt is too long: 200527 tokens > 200000 maximum”}}
Hey @XxDarkus101Xx
What model did you used?
Was this issue on a long conversation or during the start of a new one?
Did you include any files as context?
What version of Cody are you using in which IDE?
Are you able to provide more logs to narrow down the issue?
I know many questions, but this might be a serious issue.
Thank you very much
I use sonnet 3.7. I was having long conversations before. This is new to me. I am using it in VSCode. This wasn’t happening before in the past as far as I know. I have PRO
1 Like
This is great intel. And the error was shown in the IDE directly as an error message or in the logs?
Did that happen in the middle of a conversation or at a random point?
At what scale are you using Codys’ autocompletion 1-10. 1 = no usage and 10 heavy usage.
Thank you
um where are the actual logs located? Sorry I don’t know VSCode that well.
CTRL + SHIFT + U then you are in the Output pane. There you can select “Cody by Sourcegraph” in the dropdown. @XxDarkus101Xx
From the position of the scrollbar, this seems to be a very long chat session. Did you include a lot context files in it?
I just included that one file in the blue. I was working on something for a game so I was having it see my file so it can know what I’m working on.
I see this in the output pane.
See its doing the same thing again after I started a new chat. The conversation was not long this time
Thank you again for the feedback. In such a case, please reload the IDE.
The team is aware of the issue and we take it as urgency and I want to thank you a lot for your help here.