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

refactor: add experimental-http feature #750

Merged
merged 2 commits into from
Nov 11, 2023

Conversation

darknight
Copy link
Contributor

@darknight darknight commented Nov 10, 2023

This PR is for closing #735

Changes include:

  • Add experimental-http feature in Cargo.toml
  • Make dependency http-api-bindings as optional
  • Update create_engine method, only when experimental-http is enabled AND tabby serve --device experimental-http, call http_api_bindings::create, other cases go to normal flow
  • Update main method, only when experimental-http is enabled AND tabby serve --device experimental-http, just log message without loading model, other cases load model normally.

@darknight darknight marked this pull request as draft November 10, 2023 15:07
@wsxiaoys wsxiaoys self-requested a review November 10, 2023 19:53
@wsxiaoys wsxiaoys changed the title Add experimental-http feature refactor: add experimental-http feature Nov 10, 2023
@wsxiaoys wsxiaoys marked this pull request as ready for review November 10, 2023 20:00
Copy link
Member

@wsxiaoys wsxiaoys left a comment

Choose a reason for hiding this comment

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

LGTM

Please fix the semantic commit lint

crates/tabby/Cargo.toml Outdated Show resolved Hide resolved
Copy link
Member

@wsxiaoys wsxiaoys left a comment

Choose a reason for hiding this comment

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

adding a comments on dependency of http-api-bindings

@wsxiaoys wsxiaoys enabled auto-merge (squash) November 11, 2023 17:46
@wsxiaoys wsxiaoys merged commit 2259237 into TabbyML:main Nov 11, 2023
4 checks passed
@darknight darknight deleted the i735-cfg-feature branch November 12, 2023 00:45
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