Skip to content

Commit

Permalink
feat(weave): Add AzureOpenAI support for Scorers (#3171)
Browse files Browse the repository at this point in the history
* init

* init
  • Loading branch information
tssweeney authored Dec 9, 2024
1 parent 0cfe058 commit e9b73f7
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions weave/scorers/llm_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,26 @@
from google.generativeai import GenerativeModel
from instructor.patch import InstructorChatCompletionCreate
from mistralai import Mistral
from openai import AsyncOpenAI, OpenAI
from openai import AsyncAzureOpenAI, AsyncOpenAI, AzureOpenAI, OpenAI

_LLM_CLIENTS = Union[
OpenAI, AsyncOpenAI, Anthropic, AsyncAnthropic, Mistral, GenerativeModel
OpenAI,
AsyncOpenAI,
AzureOpenAI,
AsyncAzureOpenAI,
Anthropic,
AsyncAnthropic,
Mistral,
GenerativeModel,
]
else:
_LLM_CLIENTS = object

_LLM_CLIENTS_NAMES = (
"OpenAI",
"AsyncOpenAI",
"AzureOpenAI",
"AsyncAzureOpenAI",
"Anthropic",
"AsyncAnthropic",
"Mistral",
Expand Down

0 comments on commit e9b73f7

Please sign in to comment.