Skip to content

Commit

Permalink
fix wrong merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris committed Feb 27, 2024
1 parent 231e3e8 commit bf836f3
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions source/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,4 @@ async def restart_task():
time_until_shutdown = (shutdown_time - datetime.datetime.now()).total_seconds()
await asyncio.sleep(time_until_shutdown)
os._exit(1)
asyncio.run(main())
=======
import ollama
ollama.pull('llama2')
ollama.list()
response = ollama.chat(model='llama2', messages=[
{
'role': 'user',
'content': 'Why is the sky blue?',
},
])
print(response['message']['content'])
asyncio.run(main())

0 comments on commit bf836f3

Please sign in to comment.