Nutlope / aicommits

A CLI that writes your git commit messages for you with AI

Home Page:https://www.npmjs.com/package/aicommits

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

❔ Support for huggingface api 😊

adriens opened this issue Β· comments

commented

Feature request

Is it possible to use the huggingface API instead of openai (to overcome token expirations)

Why?

Openai free plan is over 😒

Alternatives

No response

Additional context

No response

https://huggingface.co/docs/huggingface.js/index

const { generated_text } = await gpt2.textGeneration({inputs: 'The answer to the universe is'});

seems easy enough, i could implement it.