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:
Ishaan Jaff 2025-01-06 21:39:11 -08:00 committed by GitHub
parent 744beac754
commit 2ca0977921
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 106 additions and 61 deletions

View file

@ -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)