Skip to content

Commit

Permalink
fix: warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jxnl committed Apr 29, 2024
1 parent aa0f429 commit 712f3bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions instructor/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,8 @@ def from_openai(
import warnings

warnings.warn(
"Client should be an instance of openai.OpenAI or openai.AsyncOpenAI. "
"Unexpected behavior may occur with other client types."
"Client should be an instance of openai.OpenAI or openai.AsyncOpenAI. Unexpected behavior may occur with other client types.",
stacklevel=2,
)

if provider in {Provider.ANYSCALE, Provider.TOGETHER}:
Expand Down

0 comments on commit 712f3bb

Please sign in to comment.