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

test: adapt Mistral to OpenAI refactoring #1271

Merged
merged 1 commit into from
Jan 2, 2025

Conversation

anakin87
Copy link
Member

@anakin87 anakin87 commented Jan 2, 2025

Related Issues

Proposed Changes:

Fix tests

How did you test it?

CI; local tests with Haystack main.

Checklist

Comment on lines +98 to +99
for key, value in expected_params.items():
assert data["init_parameters"][key] == value
Copy link
Member Author

Choose a reason for hiding this comment

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

This avoids the test failure if there are other params in addition to those expected

Comment on lines +201 to +206
try:
# Haystack >= 2.9.0
component._check_finish_reason(m.meta)
except AttributeError:
# Haystack < 2.9.0
component._check_finish_reason(m)
Copy link
Member Author

Choose a reason for hiding this comment

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

this is ugly, but we can get rid of it after releasing Haystack 2.9.0
(I'll create an issue to track that)

@anakin87 anakin87 changed the title test: Adapt Mistral to OpenAI refactoring test: adapt Mistral to OpenAI refactoring Jan 2, 2025
@anakin87 anakin87 marked this pull request as ready for review January 2, 2025 11:39
@anakin87 anakin87 requested a review from a team as a code owner January 2, 2025 11:39
@anakin87 anakin87 requested review from mpangrazzi and removed request for a team January 2, 2025 11:39
@anakin87 anakin87 merged commit 01bbadd into main Jan 2, 2025
10 checks passed
@anakin87 anakin87 deleted the adapt-mistral-to-openai-refactoring branch January 2, 2025 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants