Smart Agent: input length and 'max_tokens' exceed context limit

Questions are answered without noticable issues but only when NOT specifically asking to look into a particular database for entities.

For example:

  • “Find info about xx”
    – Gives answers about xx and even referring to databases and relations.
  • “Find info about xx in entities of database Foo/Bar”
    – and it always errors out with:

Exception encountered while answering the last query on step 0: 400 {"type":"error","error":{"type":"invalid_request_error","message":"input length andmax_tokensexceed context limit: 175670 + 40000 > 200000, decrease input length ormax_tokensand try again"}}