Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

max_tokens_default TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType' #608

Open
delfer opened this issue Jul 3, 2024 · 0 comments

Comments

@delfer
Copy link

delfer commented Jul 3, 2024

When env var MAX_TOKENS not set

Traceback (most recent call last):
  File "/app/bot/main.py", line 117, in <module>
    main()
  File "/app/bot/main.py", line 41, in main
    'max_tokens': int(os.environ.get('MAX_TOKENS', max_tokens_default)),
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant