arcee-ai / arcee-python

The Arcee client for executing domain-adpated language model routines https://pypi.org/project/arcee-py/
https://www.arcee.ai
25 stars 5 forks source link

set a user-agent header like arcee-py/{version} on all api requests #11

Closed Ben-Epstein closed 4 months ago

EricLiclair commented 1 year ago

Is this change as simple as adding a User-Agent field to the headers??

    # api.py
    from arcee import __version__ as ARCEE_PY_VERSION
    ...

    headers = {
        "X-Token": f"{ARCEE_API_KEY}",
        "Content-Type": "application/json",
        "User-Agent": f"arcee-py/{ARCEE_PY_VERSION}"
    }
Ben-Epstein commented 1 year ago

@EricLiclair exactly, we're just using github issues to take notes during meetings

nason commented 4 months ago

Added in #45