Changed image_recognition_test.py's example run to work with async function

This commit is contained in:
T-BENZIN 2025-06-28 14:21:12 +05:00
parent 8f4b2d6c11
commit 0d4a2af01f

View File

@ -1,3 +1,4 @@
import asyncio
from openai import OpenAI from openai import OpenAI
client = OpenAI() client = OpenAI()
@ -43,4 +44,5 @@ if __name__ == '__main__':
} }
], ],
} }
print(image_recognition(**data)) result = asyncio.run(image_recognition(**data))
print(result)