File size: 501 Bytes
08523c1 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | import asyncio
import sys
sys.path.insert(0, '/workspace/teememo-synth')
from client import VLLMClient
async def test():
async with VLLMClient() as client:
result = await client.chat_single(
messages=[{'role': 'user', 'content': '日本の中高生の悩みを3件、JSON配列のみで出力してください。'}],
max_tokens=1024,
enable_thinking=False,
)
print('RAW OUTPUT:')
print(repr(result[:500]))
asyncio.run(test())
|