mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
aiohttp_openai/
fixes - allow using aiohttp_openai/gpt-4o
(#7598)
* fixes for get_complete_url * update aiohttp tests * fix event loop for aiohtto * ci/cd run again * test_aiohttp_openai
This commit is contained in:
parent
744beac754
commit
2ca0977921
5 changed files with 106 additions and 61 deletions
|
@ -11,7 +11,7 @@ sys.path.insert(
|
|||
import litellm
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
@pytest.mark.asyncio()
|
||||
async def test_aiohttp_openai():
|
||||
litellm.set_verbose = True
|
||||
response = await litellm.acompletion(
|
||||
|
@ -21,3 +21,13 @@ async def test_aiohttp_openai():
|
|||
api_key="fake-key",
|
||||
)
|
||||
print(response)
|
||||
|
||||
|
||||
@pytest.mark.asyncio()
|
||||
async def test_aiohttp_openai_gpt_4o():
|
||||
litellm.set_verbose = True
|
||||
response = await litellm.acompletion(
|
||||
model="aiohttp_openai/gpt-4o",
|
||||
messages=[{"role": "user", "content": "Hello, world!"}],
|
||||
)
|
||||
print(response)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue