feat: 独立算力服务初始提交
账户/凭证/赠送/模型调用(OpenAI 协议非流式+SSE)/精确日志结算与补偿的独立 Python 服务(FastAPI + SQLAlchemy 2),含 DDL 与对账 SQL、审计缺陷修复与全量测试(SQLite + MySQL 8.0.43)。
parents
Showing
.gitignore
0 → 100644
Dockerfile
0 → 100644
README.md
0 → 100644
This diff is collapsed.
Click to expand it.
app/__init__.py
0 → 100644
app/account_bootstrap.py
0 → 100644
app/account_call_reconciliation.py
0 → 100644
This diff is collapsed.
Click to expand it.
app/account_calls.py
0 → 100644
This diff is collapsed.
Click to expand it.
app/account_config.py
0 → 100644
app/account_execution.py
0 → 100644
app/account_gateway.py
0 → 100644
This diff is collapsed.
Click to expand it.
app/account_gifts.py
0 → 100644
This diff is collapsed.
Click to expand it.
app/account_ledger.py
0 → 100644
This diff is collapsed.
Click to expand it.
app/account_main.py
0 → 100644
This diff is collapsed.
Click to expand it.
app/account_model_gateway.py
0 → 100644
This diff is collapsed.
Click to expand it.
app/account_models.py
0 → 100644
This diff is collapsed.
Click to expand it.
app/account_openai.py
0 → 100644
This diff is collapsed.
Click to expand it.
app/account_repository.py
0 → 100644
app/account_schemas.py
0 → 100644
app/account_security.py
0 → 100644
app/account_service.py
0 → 100644
This diff is collapsed.
Click to expand it.
app/account_settlement.py
0 → 100644
This diff is collapsed.
Click to expand it.
app/account_worker.py
0 → 100644
app/api.py
0 → 100644
app/auth.py
0 → 100644
app/billing.py
0 → 100644
app/config.py
0 → 100644
app/db.py
0 → 100644
app/errors.py
0 → 100644
app/id_generator.py
0 → 100644
app/jobs/__init__.py
0 → 100644
app/jobs/settle_pending.py
0 → 100644
app/main.py
0 → 100644
app/models.py
0 → 100644
This diff is collapsed.
Click to expand it.
app/newapi.py
0 → 100644
This diff is collapsed.
Click to expand it.
app/repository.py
0 → 100644
This diff is collapsed.
Click to expand it.
app/resolution.py
0 → 100644
app/schemas.py
0 → 100644
app/service.py
0 → 100644
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
docs/authentication.md
0 → 100644
This diff is collapsed.
Click to expand it.
docs/design.md
0 → 100644
This diff is collapsed.
Click to expand it.
docs/independent-account-development-plan.md
0 → 100644
This diff is collapsed.
Click to expand it.
docs/multi-upstream-and-pricing-design.md
0 → 100644
This diff is collapsed.
Click to expand it.
docs/p0-contract-freeze.md
0 → 100644
This diff is collapsed.
Click to expand it.
pyproject.toml
0 → 100644
scripts/20260922_computing_stage0_ddl.sql
0 → 100644
This diff is collapsed.
Click to expand it.
scripts/20260923_account_source_precheck.sql
0 → 100644
scripts/20260923_account_target_check.sql
0 → 100644
scripts/20260923_independent_account_ddl.sql
0 → 100644
This diff is collapsed.
Click to expand it.
scripts/bootstrap_account_client.py
0 → 100644
scripts/reconciliation_check.sql
0 → 100644
scripts/render_account_ddl.py
0 → 100644
tests/__init__.py
0 → 100644
tests/conftest.py
0 → 100644
tests/test_account_call_reconciliation.py
0 → 100644
This diff is collapsed.
Click to expand it.
tests/test_account_calls.py
0 → 100644
This diff is collapsed.
Click to expand it.
tests/test_account_config.py
0 → 100644
tests/test_account_foundation.py
0 → 100644
This diff is collapsed.
Click to expand it.
tests/test_account_gateway.py
0 → 100644
This diff is collapsed.
Click to expand it.
tests/test_account_gifts.py
0 → 100644
This diff is collapsed.
Click to expand it.
tests/test_account_ledger.py
0 → 100644
This diff is collapsed.
Click to expand it.
tests/test_account_management.py
0 → 100644
This diff is collapsed.
Click to expand it.
tests/test_account_model_gateway.py
0 → 100644
This diff is collapsed.
Click to expand it.
tests/test_account_openai.py
0 → 100644
tests/test_account_settlement.py
0 → 100644
This diff is collapsed.
Click to expand it.
tests/test_account_sse.py
0 → 100644
This diff is collapsed.
Click to expand it.
tests/test_account_stream_gateway.py
0 → 100644
This diff is collapsed.
Click to expand it.
tests/test_account_worker.py
0 → 100644
tests/test_api_readonly.py
0 → 100644
This diff is collapsed.
Click to expand it.
tests/test_auth.py
0 → 100644
tests/test_billing.py
0 → 100644
tests/test_calls.py
0 → 100644
This diff is collapsed.
Click to expand it.
tests/test_gift.py
0 → 100644
This diff is collapsed.
Click to expand it.
tests/test_id_generator.py
0 → 100644
tests/test_resolution.py
0 → 100644
Please
register
or
sign in
to comment