mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-06 08:16:43 +00:00
(test) ollama_chat acompletion without stream
This commit is contained in:
parent
3839213d28
commit
0b8d9d177b
1 changed files with 16 additions and 2 deletions
|
|
@ -54,7 +54,7 @@
|
|||
# print(e)
|
||||
|
||||
|
||||
# test_ollama_streaming()
|
||||
# # test_ollama_streaming()
|
||||
|
||||
|
||||
# async def test_async_ollama_streaming():
|
||||
|
|
@ -71,7 +71,21 @@
|
|||
# print(e)
|
||||
|
||||
|
||||
# asyncio.run(test_async_ollama_streaming())
|
||||
# # asyncio.run(test_async_ollama_streaming())
|
||||
|
||||
# async def test_async_ollama():
|
||||
# try:
|
||||
# litellm.set_verbose = True
|
||||
# response = await litellm.acompletion(
|
||||
# model="ollama_chat/llama2",
|
||||
# messages=[{"role": "user", "content": "Hey, how's it going?"}],
|
||||
# )
|
||||
# print("\n response", response)
|
||||
# except Exception as e:
|
||||
# print(e)
|
||||
|
||||
|
||||
# asyncio.run(test_async_ollama())
|
||||
|
||||
|
||||
# def test_completion_ollama():
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue