crytic / crytic/slither

[Bug-Candidate]: Codex detector: This model's maximum context length is 4097 tokens, however you requested 4945 tokens

Open
#1,833 0 comments 0 reactions 0 assignees View on GitHub
bug-candidate
Dominant language
Python
Stars
6.4k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

### Describe the issue:

OpenAI request failed: This model's maximum context length is 4097 tokens, however you requested 4945 tokens (4645 in your prompt; 300 for the completion). Please reduce your prompt; or completion length.
OpenAI models have their max token limit. Is there any method to handle the token length? If not, many solidity files may exceed the limit, which cause this error.

### Code example to reproduce the issue:

slither 0xD0E852dA28536D4A5bBe7088fA8252C76E31a083 --codex

### Version:

0.9.3

### Relevant log output:

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.