forked from Jason-Vaughan/TangleBrain
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
22 lines (19 loc) · 738 Bytes
/
Copy path__init__.py
File metadata and controls
22 lines (19 loc) · 738 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
"""Tier adapters.
Each tier is a node/adapter behind one uniform interface — ``run(prompt, opts) -> text`` — so
adding or removing a backend is local and contained. The ``openai-compat`` adapter serves the free
local tier; the ``cli`` adapter drives an authenticated CLI; the ``api`` adapter serves a paid
backend.
"""
from __future__ import annotations
from tanglebrain.adapters.api import ApiAdapter
from tanglebrain.adapters.base import Adapter, AdapterError, StreamingAdapter
from tanglebrain.adapters.cli import CliAdapter
from tanglebrain.adapters.openai_compat import OpenAICompatAdapter
__all__ = [
"Adapter",
"AdapterError",
"ApiAdapter",
"CliAdapter",
"OpenAICompatAdapter",
"StreamingAdapter",
]