Skip to content

Conversation

etherealmuse
Copy link

🔗 Linked issue


Description

There is no Authorization token due to which API calls to protected tracking server behind would fail. Therefore, adding MLFLOW_TRACKING_TOKEN that gets set from environment variable.

Added if statement for the variable so you can choose to use without Authorization token if any cases.

    // Add MLflow tracking token if it exists
    if (process.env.MLFLOW_TRACKING_TOKEN) {
        fetchOptions.headers['Authorization'] = `Bearer ${process.env.MLFLOW_TRACKING_TOKEN}`;
    }

Checklist

  • [x ] I've followed the Contributing guidelines

  • [ x] I've titled my PR according to the Conventional Commits spec

  • [x ] I've linked an open issue

  • I've added tests that fail without this PR but pass with it

  • I've linted and tested my code

  • [x ] I've updated documentation (if appropriate)

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