matrix-ai / scripts /test_chain.py
ruslanmv's picture
Multi providers
a91be8c
raw
history blame
356 Bytes
"""
Quick end-to-end smoke test for the provider cascade.
Run after setting configs/.env with your keys.
"""
from app.core.inference import chat
msgs = [
{"role": "system", "content": "You are concise."},
{"role": "user", "content": "Say hello in one sentence and mention which provider you are (if you can)."},
]
print(chat(msgs, stream=False))