mirror of
https://github.com/Alishahryar1/free-claude-code.git
synced 2026-04-28 03:20:01 +00:00
Some checks are pending
CI / checks (push) Waiting to run
Consolidates the incremental refactor work into a single change set: modular web tools (api/web_tools), native Anthropic request building and SSE block policy, OpenAI conversion and error handling, provider transports and rate limiting, messaging handler and tree queue, safe logging, smoke tests, and broad test coverage.
16 lines
525 B
Python
16 lines
525 B
Python
"""LM Studio provider implementation."""
|
|
|
|
from providers.anthropic_messages import AnthropicMessagesTransport
|
|
from providers.base import ProviderConfig
|
|
from providers.defaults import LMSTUDIO_DEFAULT_BASE
|
|
|
|
|
|
class LMStudioProvider(AnthropicMessagesTransport):
|
|
"""LM Studio provider using native Anthropic Messages endpoint."""
|
|
|
|
def __init__(self, config: ProviderConfig):
|
|
super().__init__(
|
|
config,
|
|
provider_name="LMSTUDIO",
|
|
default_base_url=LMSTUDIO_DEFAULT_BASE,
|
|
)
|