Skip to content

Commit ba8a0de

Browse files
authored
refactor: restructure OpenAPI bot (#103)
1 parent d7e29ce commit ba8a0de

File tree

8 files changed

+473
-432
lines changed

8 files changed

+473
-432
lines changed

src/git_draft/bots/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def load_bot(config: BotConfig | None) -> Bot:
3535
if not factory:
3636
raise NotImplementedError(f"Unknown bot factory: {config.factory}")
3737

38-
kwargs = config.config or {}
38+
kwargs = config.kwargs or {}
3939
return factory(**kwargs)
4040

4141

@@ -52,7 +52,7 @@ def _default_bot() -> Bot:
5252
)
5353

5454
try:
55-
from .openai import threads_bot
55+
from .openai_api import threads_bot
5656

5757
except ImportError:
5858
raise RuntimeError(

0 commit comments

Comments
 (0)