Closed TheLime1 closed 5 months ago
Hi @TheLime1
Something like this could work:
import asyncio
from sydney import SydneyClient
async def main() -> None:
async with SydneyClient() as sydney:
while True:
prompt = input("You: ")
if prompt == "!reset":
await sydney.reset_conversation()
continue
elif prompt == "!exit":
break
response = await sydney.ask(prompt)
print(f"Sydney: {response}")
if __name__ == "__main__":
asyncio.run(main())
You can also find more examples on the README
thanks very much
id appreciate and example without streaming!