anything-llm
anything-llm copied to clipboard
Invalid OpenAI Token Limit
The Azure OpenAI has the GPT-4 turbo model, which has 128,000 tokens. I am able to select that from the dropdown list, but cannot save the settings.
Here is the option:
Here is the error message:
This is a screenshot from my Azure OpenAI Chat playground. As you can see, I do have the deployment with 128,000 tokens.
I believe this line is wrong. https://github.com/Mintplex-Labs/anything-llm/blob/6d5968bf7e694aae8e68bbb4cd2e0e6f491f47d1/server/utils/helpers/updateENV.js#L296 I'm not sure if this is the root cause.
Ah, the token count for this model is indeed missing. Good catch. Will mark as bug