mirror of
https://github.com/Alishahryar1/free-claude-code.git
synced 2026-05-04 06:10:37 +00:00
refactor: remove OpenRouter rollback, shims, and redundant layers
- OpenRouter: native Anthropic only; remove chat_request and OPENROUTER_TRANSPORT - Drop OpenAICompatibleProvider alias, api.request_utils, voice_pipeline facade - Simplify OpenRouter SSE, generic reasoning in conversion, messaging dispatch - Shared markdown table helpers; API optimization response helper; contract guards - Restore PLAN.md; update docs and tests
This commit is contained in:
parent
22837720ca
commit
0e3b2c24b4
43 changed files with 356 additions and 615 deletions
|
|
@ -1,4 +1,4 @@
|
|||
"""Tests for api/request_utils.py module."""
|
||||
"""Tests for API request detection and token counting helpers."""
|
||||
|
||||
from unittest.mock import MagicMock
|
||||
|
||||
|
|
@ -11,7 +11,7 @@ from api.detection import (
|
|||
is_title_generation_request,
|
||||
)
|
||||
from api.models.anthropic import Message, MessagesRequest
|
||||
from api.request_utils import get_token_count
|
||||
from core.anthropic import get_token_count
|
||||
|
||||
|
||||
class TestQuotaCheckRequest:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue