mirror of
https://github.com/NousResearch/atropos.git
synced 2026-04-19 12:57:58 +00:00
move server_type to serverbaseline instead so it can be used as well for server instantiation
This commit is contained in:
parent
6fc356e76e
commit
8b864e9786
2 changed files with 5 additions and 3 deletions
|
|
@ -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":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue