mirror of
https://github.com/Hopiu/llm.git
synced 2026-04-07 15:00:58 +00:00
Move default plugins into llm/default_plugins
This commit is contained in:
parent
c4513068fb
commit
1b3f14fe89
4 changed files with 9 additions and 6 deletions
0
llm/default_plugins/__init__.py
Normal file
0
llm/default_plugins/__init__.py
Normal file
|
|
@ -1,6 +1,6 @@
|
|||
from . import Model, Prompt, OptionsError, Response, hookimpl
|
||||
from .errors import NeedsKeyException
|
||||
from .utils import dicts_to_table_string
|
||||
from llm import Model, Prompt, OptionsError, Response, hookimpl
|
||||
from llm.errors import NeedsKeyException
|
||||
from llm.utils import dicts_to_table_string
|
||||
import click
|
||||
import datetime
|
||||
from typing import Optional
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
from . import Model, Prompt, Response, hookimpl
|
||||
from .errors import NeedsKeyException
|
||||
from llm import Model, Prompt, Response, hookimpl
|
||||
from llm.errors import NeedsKeyException
|
||||
import requests
|
||||
|
||||
|
||||
|
|
@ -5,7 +5,10 @@ from typing import Dict, List
|
|||
from . import hookspecs
|
||||
from .models import ModelWithAliases, Model
|
||||
|
||||
DEFAULT_PLUGINS = ("llm.openai_models", "llm.vertex_models")
|
||||
DEFAULT_PLUGINS = (
|
||||
"llm.default_plugins.openai_models",
|
||||
"llm.default_plugins.vertex_models",
|
||||
)
|
||||
|
||||
pm = pluggy.PluginManager("llm")
|
||||
pm.add_hookspecs(hookspecs)
|
||||
|
|
|
|||
Loading…
Reference in a new issue