mirror of
https://github.com/farcasclaudiu/TradingAgents.git
synced 2026-06-22 07:01:21 +03:00
79051580b8
- Add tradingagents/llm_clients/ with unified factory pattern - Support OpenAI, Anthropic, Google, xAI, OpenRouter, Ollama, vLLM - Replace direct LLM imports in trading_graph.py with create_llm_client() - Handle provider-specific params (reasoning_effort, thinking_config)
19 lines
551 B
Python
19 lines
551 B
Python
from typing import Any, Optional
|
|
|
|
from .base_client import BaseLLMClient
|
|
|
|
|
|
class VLLMClient(BaseLLMClient):
|
|
"""Client for vLLM (placeholder for future implementation)."""
|
|
|
|
def __init__(self, model: str, base_url: Optional[str] = None, **kwargs):
|
|
super().__init__(model, base_url, **kwargs)
|
|
|
|
def get_llm(self) -> Any:
|
|
"""Return configured vLLM instance."""
|
|
raise NotImplementedError("vLLM client not yet implemented")
|
|
|
|
def validate_model(self) -> bool:
|
|
"""Validate model for vLLM."""
|
|
return True
|