huggingface.js
huggingface.js copied to clipboard
[WIP] Add user agent with package version for hub calls
- [ ] 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.