Skip to content

Conversation

@manuelporrasojeda
Copy link
Contributor

No description provided.


def get_text_criteria_analysis(text_input, text_criteria, model_name=None, azure=False, **kwargs):
"""
Get text criteria analysis using Azure OpenAI. To analyze how well a given text
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

puede ser de Azure o no

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sigue sobrando este Azure

if overall_match < threshold:
logger.error(f"Text criteria analysis failed: overall match {overall_match} "
f"is below threshold {threshold}\n"
f"Failed features: {analysis.get('features', [])}")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

guarda el mensaje en una variable para no duplicarlo en el log y en la excepción

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

Successfully merging this pull request may close these issues.

3 participants