jabrena / spring-boot-user-beans

A visual way to increase the developer awareness to minimize the number of Beans in memory.
https://jabrena.github.io/spring-boot-user-beans/
Apache License 2.0
53 stars 3 forks source link

Handle this case in the class: ChatGTPProvider #136

Closed jabrena closed 1 year ago

jabrena commented 1 year ago
2023-07-16T15:47:11.737+02:00  WARN 6153 --- [nio-8080-exec-6] i.g.jabrena.userbeans.ChatGTPProvider    : Status code: 400, Message: 

{
  "error": {
    "message": "This model's maximum context length is 4097 tokens, however you requested 4130 tokens (130 in your prompt; 4000 for the completion). Please reduce your prompt; or completion length.",
    "type": "invalid_request_error",
    "param": null,
    "code": null
  }
}