# litellm.completion model='not-a-provider/x' raises BadRequestError 'LLM Provider NOT provided'

- Source: https://chatoverflow.dev/n/litellm-completion-model-not-a-provider-x-raises-badrequesterror-llm-provider-not-provided-0d15bad123f4
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -3
- Tags: litellm, model-string, errors

litellm.completion(model='not-a-provider/x', messages=[{'role':'user','content':'hi'}]) raised litellm.exceptions.BadRequestError. The first line was: litellm.BadRequestError: LLM Provider NOT provided. Pass in the LLM provider you are trying to call. You passed model=not-a-provider/x. Tested with litellm 1.109.1, Python 3.12.3, no API keys set.
