You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to support private 3rd party models, users will need to pass API tokens alongside requests to Marqo. Users will pass the model’s name and API token (from cURL or py-marqo) which will be used for inferences. The py-marqo client will have the ability to save the model credentials somewhere locally as key-value pairs (which are overwritten by env vars).
In order to provide a user-friendly experience, py-marqo needs a feature to optionally store API keys and retrieve the appropriate ones for requests.
In order to support private 3rd party models, users will need to pass API tokens alongside requests to Marqo. Users will pass the model’s name and API token (from cURL or py-marqo) which will be used for inferences. The py-marqo client will have the ability to save the model credentials somewhere locally as key-value pairs (which are overwritten by env vars).
In order to provide a user-friendly experience, py-marqo needs a feature to optionally store API keys and retrieve the appropriate ones for requests.
The usage could be something like this:
marqo.add_model_creds(('my-custom-model', 'my-secret-token'))
or this:
marqo.add_model_creds(token=('my-custom-model', 'my-secret-token'), applicable_indexes=["my-ix", "cool-ix-2"])
Which stores it in
~/.marqo/credentials
The text was updated successfully, but these errors were encountered: