"Illegal Model Request" after 2nd message with custom endpoint #7758
Unanswered
Indigo744
asked this question in
Troubleshooting
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a yaml configuration specifying a custom endpoint with a specific ModelSpecs:
Selecting this modelSpec and sending a first prompt always works.
However, subsequent prompt fails with a dry
Illegal Model Request
.The Debug or Error logs do not show any line regarding this.
The violation can be found in the
/data/violations.json
file (inside the container, if you use the default docker-compose file)In any case, it does not help to understand why and how to fix it.
I had to check the code to understand that an "illegal model request" means the model name is not part of the models listed by the endpoint.
In my case, I specify the list manually. Hence the fix is to add the name of the model in the list:
I think it could be good to:
Thank you and have a nice day.
Beta Was this translation helpful? Give feedback.
All reactions