Skip to content

fix(cli): support OpenAIServerModel in load_model - #2731

Closed
teddiesloco wants to merge 1 commit into
huggingface:mainfrom
teddiesloco:fix/cli-load-model-openai-server-model
Closed

teddiesloco wants to merge 1 commit into
huggingface:mainfrom
teddiesloco:fix/cli-load-model-openai-server-model

Conversation

@teddiesloco

Copy link
Copy Markdown

What does this PR do?

Resolves #2726.

The CLI interactive mode (interactive_mode) offers OpenAIServerModel as one of the 4 model choices. However, load_model() previously only checked for "OpenAIModel", raising an unsupported model type error when OpenAIServerModel was selected.

This PR:

  • Adds OpenAIServerModel to load_model() check alongside OpenAIModel.
  • Adds a unit test in tests/test_cli.py asserting that load_model("OpenAIServerModel", ...) instantiates properly.

Testing

  • Ran pytest tests/test_cli.py -k test_load_model_openai_model - PASSED.

Closes huggingface#2726 by handling OpenAIServerModel in load_model alongside OpenAIModel.
@albertvillanova

Copy link
Copy Markdown
Member

Thank you for this pull request.

Under our contribution guidelines, a pull request needs to link an issue that a maintainer has assigned to its author before we review it. Assignment is how we decide what gets worked on and by whom, and it keeps the review queue at a size we can actually handle.

This PR links #2726, which is not assigned to you, so I am closing the PR for now. If we decide we want this change and assign it to you, comment here and we will reopen this PR as it is: please do not open a new one. Closing it is not a judgement on the code.

@albertvillanova albertvillanova added the needs-assigned-issue Closed: the PR does not link an issue assigned to its author (see CONTRIBUTING.md) label Nov 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-assigned-issue Closed: the PR does not link an issue assigned to its author (see CONTRIBUTING.md)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cli.py interactive_mode() offers 'OpenAIServerModel' but load_model() only recognizes 'OpenAIModel', guaranteed crash

2 participants