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

Separating out setting model type into a separate method in the job service #385

Merged
merged 7 commits into from
Nov 20, 2024

Conversation

veekaybee
Copy link
Member

@veekaybee veekaybee commented Nov 18, 2024

What's changing

We currently have a lot going on in the create_job method which makes it hard to unit test granularly. We've previously done some work in pulling out separate methods (see #328), this PR does the same for _set_model_type and adds tests also clarifying the model URL (it wouldn't be S3 since we use either huggingface, openai or mistral at the moment) in the SDK.

How to test it

Run unit tests

Additional notes for reviewers

I already...

  • added some tests for any new functionality
  • updated the documentation
  • checked if a (backend) DB migration step was required and included it if required

cc @peteski22 @javiermtorres fyi for SDK changes

@veekaybee veekaybee requested a review from aittalam November 18, 2024 17:32
@veekaybee
Copy link
Member Author

Also adding ruff precommit hooks here because they're not getting caught before they reach the linter in CI

Copy link
Member

@aittalam aittalam left a comment

Choose a reason for hiding this comment

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

TY Vicki, I left a few comments but overall this LGTM.

@github-actions github-actions bot added sdk backend api Changes which impact API/presentation layer labels Nov 20, 2024
@veekaybee veekaybee merged commit e0dd518 into main Nov 20, 2024
7 checks passed
@veekaybee veekaybee deleted the fix_input_params branch November 20, 2024 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Changes which impact API/presentation layer backend sdk
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants