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

feat: log the current commit hash #233

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

AlpinDale
Copy link
Member

As per #232, we need a way to figure out which tabby version we're using. Since tabby doesn't have versions, we can use commit hash instead.

This PR creates a commit hash whenever the server is started, and saves it to endpoints/OAI/_commit.py (gitignored).

@bdashore3
Copy link
Member

Rather than embedding this in start.py, I think it would make more sense to place this in a utils function somewhere that's triggered by main. Also, prefer YAML over storing python files.

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