move server_type to serverbaseline instead so it can be used as well for server instantiation

This commit is contained in:
dmahan93 2025-05-13 10:21:58 -05:00
parent 6fc356e76e
commit 8b864e9786
2 changed files with 5 additions and 3 deletions

View file

@ -36,6 +36,8 @@ class ServerManager:
testing=False,
):
# First we check to see if it's the base server class, and if so, we need to select the appropriate server class
# You can't use type() to check if it's the base server class, because it's an abstract class, it'll appear as
# an ABCMeta, not what you're expecting.
if inspect.isabstract(server_class):
if not isinstance(configs, list):
if configs.server_type == "openai":