- Serveur WebSocket direct avec websockets 16.0 - Interface HTML/CSS/JS dark theme avec chat - Relay vers API Hermes sur port 8642 - Historique de conversation (20 messages) - Clé API via Infisical - Testé et fonctionnel sur openclaw1.dev.home:7081
24 lines
950 B
Python
24 lines
950 B
Python
|
|
from pipecat.services.openai.llm import OpenAILLMService
|
|
import inspect
|
|
|
|
# Get the create_context_aggregator method
|
|
method = getattr(OpenAILLMService, 'create_context_aggregator', None)
|
|
if method:
|
|
print("Method found!")
|
|
print(f"Type: {type(method)}")
|
|
sig = inspect.signature(method)
|
|
print(f"Signature: {sig}")
|
|
# Try to see what params it takes
|
|
for name, param in sig.parameters.items():
|
|
print(f" {name}: {param.annotation if param.annotation is not inspect.Parameter.empty else 'Any'} = {param.default if param.default is not inspect.Parameter.empty else 'REQUIRED'}")
|
|
else:
|
|
print("Method NOT found!")
|
|
|
|
# Check if it's created by a metaclass or __init_subclass__
|
|
for cls in OpenAILLMService.__mro__:
|
|
if hasattr(cls, 'create_context_aggregator'):
|
|
print(f" Found in {cls.__name__}")
|
|
m = getattr(cls, 'create_context_aggregator')
|
|
print(f" Type: {type(m)}")
|