Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/git_draft/bots/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def _default_bot() -> Bot:
)

try:
from .openai_api import threads_bot
from .openai_api import new_threads_bot

except ImportError:
raise RuntimeError(
Expand All @@ -65,4 +65,4 @@ def _default_bot() -> Bot:
)
)
else:
return threads_bot()
return new_threads_bot()
8 changes: 4 additions & 4 deletions src/git_draft/bots/openai_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
* https://github.com/openai/openai-python/blob/main/src/openai/resources/beta/threads/runs/runs.py
"""

from .assistants import threads_bot
from .completions import completions_bot
from .assistants import new_threads_bot
from .completions import new_completions_bot


__all__ = [
"completions_bot",
"threads_bot",
"new_completions_bot",
"new_threads_bot",
]
2 changes: 1 addition & 1 deletion src/git_draft/bots/openai_api/assistants.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
_logger = logging.getLogger(__name__)


def threads_bot(
def new_threads_bot(
api_key: str | None = None,
base_url: str | None = None,
model: str = "gpt-4o",
Expand Down
2 changes: 1 addition & 1 deletion src/git_draft/bots/openai_api/completions.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from .common import ToolHandler, ToolsFactory, new_client


def completions_bot(
def new_completions_bot(
api_key: str | None = None,
base_url: str | None = None,
model: str = "gpt-4o",
Expand Down