Remove fallback print statement in openai_client.py
Removed print statement for fallback to chat completions.
This commit is contained in:
parent
998e60baf8
commit
bdf5600471
1 changed files with 1 additions and 1 deletions
|
|
@ -116,7 +116,7 @@ class OpenAIClient(BaseOpenAIClient):
|
||||||
# Some providers require a schema name; use model class name by default
|
# Some providers require a schema name; use model class name by default
|
||||||
schema_name = getattr(response_model, '__name__', 'structured_response')
|
schema_name = getattr(response_model, '__name__', 'structured_response')
|
||||||
|
|
||||||
print(f'Falling back to chat.completions with JSON schema for model {model}...')
|
# Falling back to chat.completions with JSON schema for model
|
||||||
completion = await self.client.chat.completions.create(
|
completion = await self.client.chat.completions.create(
|
||||||
model=model,
|
model=model,
|
||||||
messages=messages,
|
messages=messages,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue