huggingface.js icon indicating copy to clipboard operation
huggingface.js copied to clipboard

[WIP] Add user agent with package version for hub calls

Open Copilot opened this issue 9 months ago • 2 comments

  • [ ] Create a utility function to wrap fetch and add user-agent header
  • [ ] Add package version constant in consts.ts
  • [ ] Implement the createFetch function in a new utils file
  • [ ] Add tests to verify the user agent is being set correctly
  • [ ] Update documentation if necessary
  • [ ] Final testing and verification

Fixes #899.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot avatar May 23 '25 17:05 Copilot