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

Update test to avoid Azure content filter #121

Merged
merged 3 commits into from
Dec 2, 2024
Merged

Update test to avoid Azure content filter #121

merged 3 commits into from
Dec 2, 2024

Conversation

marklysze
Copy link
Collaborator

@marklysze marklysze commented Dec 1, 2024

Why are these changes needed?

The text in the sample data feed in test_async.py is triggering the Azure OpenAI content filter. This updates the text to avoid that as it's not the purpose of this test.

{ "title": "Palantir CEO Says Our Generation's Atomic Bomb Could Be AI Weapon - And Arrive Sooner Than You Think - Palantir Technologies ( NYSE:PLTR ) ", "summary": "Christopher Nolan's blockbuster movie \"Oppenheimer\" has reignited the public discourse surrounding the United States' use of an atomic bomb on Japan at the end of World War II.", "overall_sentiment_score": 0.009687, },
to
{ "title": "Palantir CEO Says Our Generation's Main Challenge Could Be AI Against Humanity - And Arrive Sooner Than You Think - Palantir Technologies ( NYSE:PLTR ) ", "summary": "Christopher Nolan's blockbuster movie \"Oppenheimer\" has reignited the public discourse surrounding the United States' use of a weapon on Japan at the end of World War II.", "overall_sentiment_score": 0.009687, },

Also updated the model used from gpt-3.5-turbo to gpt-4o-mini.

Related issue number

N/A

Checks

Signed-off-by: Mark Sze <mark@sze.family>
Signed-off-by: Mark Sze <mark@sze.family>
Signed-off-by: Mark Sze <mark@sze.family>
Copy link
Collaborator

@qingyun-wu qingyun-wu left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks!

@qingyun-wu qingyun-wu added this pull request to the merge queue Dec 2, 2024
Merged via the queue into main with commit 7de2f21 Dec 2, 2024
33 of 38 checks passed
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.

2 participants