fix otel logging

This commit is contained in:
Ishaan Jaff
2024-07-27 12:05:24 -07:00
parent 7c0ea16e3d
commit 7dac0e0001
+2 -1
View File
@@ -5,6 +5,7 @@ import asyncio
import aiohttp, openai
from openai import OpenAI, AsyncOpenAI
from typing import Optional, List, Union
import uuid
async def generate_key(
@@ -46,7 +47,7 @@ async def chat_completion(session, key, model: Union[str, List] = "gpt-4"):
data = {
"model": model,
"messages": [
{"role": "user", "content": "Hello!"},
{"role": "user", "content": f"Hello! {str(uuid.uuid4())}"},
],
}