Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix LLMAsJudge validation with OpenAIInferenceEngine #1293

Open
lilacheden opened this issue Oct 16, 2024 · 0 comments
Open

Fix LLMAsJudge validation with OpenAIInferenceEngine #1293

lilacheden opened this issue Oct 16, 2024 · 0 comments

Comments

@lilacheden
Copy link
Member

The current validation code states:

        if isinstance(self.inference_model, OpenAiInferenceEngine):
            if self.format and type(self.format) is not SystemFormat:
                raise ValueError(
                    "Error in 'LLMAsJudge' metric. Inference model 'OpenAiInferenceEngine' does "
                    "not support formatting. Please remove the format definition from the recipe"
                    " (OpenAi Chat API take care of the formatting automatically)."
                )

If OpenAiInferenceEngine does not support formatting, need to assure that self.format is an empty format, not any SystemFormat.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant