Unverified Commit 8f5dc414 authored by Cyrus Leung's avatar Cyrus Leung Committed by GitHub
Browse files

[Bugfix] Fix entrypoints audio test failure (#18111)


Signed-off-by: default avatarDarkLight1337 <tlleungac@connect.ust.hk>
parent 63ad6222
...@@ -272,7 +272,7 @@ async def test_chat_streaming_audio(client: openai.AsyncOpenAI, ...@@ -272,7 +272,7 @@ async def test_chat_streaming_audio(client: openai.AsyncOpenAI,
chat_completion = await client.chat.completions.create( chat_completion = await client.chat.completions.create(
model=model_name, model=model_name,
messages=messages, messages=messages,
max_completion_tokens=10, max_completion_tokens=8,
temperature=0.0, temperature=0.0,
) )
output = chat_completion.choices[0].message.content output = chat_completion.choices[0].message.content
...@@ -282,7 +282,7 @@ async def test_chat_streaming_audio(client: openai.AsyncOpenAI, ...@@ -282,7 +282,7 @@ async def test_chat_streaming_audio(client: openai.AsyncOpenAI,
stream = await client.chat.completions.create( stream = await client.chat.completions.create(
model=model_name, model=model_name,
messages=messages, messages=messages,
max_completion_tokens=10, max_completion_tokens=8,
temperature=0.0, temperature=0.0,
stream=True, stream=True,
) )
...@@ -332,7 +332,7 @@ async def test_chat_streaming_input_audio(client: openai.AsyncOpenAI, ...@@ -332,7 +332,7 @@ async def test_chat_streaming_input_audio(client: openai.AsyncOpenAI,
chat_completion = await client.chat.completions.create( chat_completion = await client.chat.completions.create(
model=model_name, model=model_name,
messages=messages, messages=messages,
max_completion_tokens=10, max_completion_tokens=8,
temperature=0.0, temperature=0.0,
) )
output = chat_completion.choices[0].message.content output = chat_completion.choices[0].message.content
...@@ -342,7 +342,7 @@ async def test_chat_streaming_input_audio(client: openai.AsyncOpenAI, ...@@ -342,7 +342,7 @@ async def test_chat_streaming_input_audio(client: openai.AsyncOpenAI,
stream = await client.chat.completions.create( stream = await client.chat.completions.create(
model=model_name, model=model_name,
messages=messages, messages=messages,
max_completion_tokens=10, max_completion_tokens=8,
temperature=0.0, temperature=0.0,
stream=True, stream=True,
) )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment