MCPcopy Create free account
hub / github.com/TheSmallHanCat/flow2api / __init__

Method __init__

src/services/generation_handler.py:1073–1085  ·  view source on GitHub ↗
(self, flow_client, token_manager, load_balancer, db, concurrency_manager, proxy_manager)

Source from the content-addressed store, hash-verified

1071 """统一生成处理器"""
1072
1073 def __init__(self, flow_client, token_manager, load_balancer, db, concurrency_manager, proxy_manager):
1074 cache_dir = Path(__file__).resolve().parents[2] / "tmp"
1075 self.flow_client = flow_client
1076 self.token_manager = token_manager
1077 self.load_balancer = load_balancer
1078 self.db = db
1079 self.concurrency_manager = concurrency_manager
1080 self.file_cache = FileCache(
1081 cache_dir=str(cache_dir),
1082 default_timeout=config.cache_timeout,
1083 proxy_manager=proxy_manager,
1084 flow_client=flow_client,
1085 )
1086
1087 def _create_generation_result(self) -> Dict[str, Any]:
1088 """????????????????"""

Callers

nothing calls this directly

Calls 1

FileCacheClass · 0.85

Tested by

no test coverage detected