Open TeoZosa opened 2 days ago
Excited for the addition of new scoring functions, thanks for the hard work. With it being hot off the presses, I did run into this issue.
AsyncOpenAI clients seem to be supported: https://github.com/wandb/weave/blob/585752e31856f2a67064fe35d91de639f04382b8/weave/scorers/llm_utils.py#L28-L30
AsyncOpenAI
But the underlying calls for Weave scorers assume non-async clients: https://github.com/wandb/weave/blob/585752e31856f2a67064fe35d91de639f04382b8/weave/scorers/llm_utils.py#L85-L96
Thanks @tcapelle for jumping on this so fast! 🙏
Excited for the addition of new scoring functions, thanks for the hard work. With it being hot off the presses, I did run into this issue.
AsyncOpenAI
clients seem to be supported: https://github.com/wandb/weave/blob/585752e31856f2a67064fe35d91de639f04382b8/weave/scorers/llm_utils.py#L28-L30But the underlying calls for Weave scorers assume non-async clients: https://github.com/wandb/weave/blob/585752e31856f2a67064fe35d91de639f04382b8/weave/scorers/llm_utils.py#L85-L96