Autocompletion (edge or API)

I’m surprised nobody did it yet, but it could be cool to have autocompletion in Obsidian.

As a programmer, GitHub Copilot increase a lot my productivity and it would be the same for writing stuff.

A plugin could do either edge autocompletion using a small model, Android have such simple models on TensorflowLite. On desktop could have something more powerful maybe.

But very simple thing could be to use GPT3, but I know not everybody has access to it.
The Codex models are free to use and works well even for normal language even though it’s supposed to be used for code.

There is also HuggingFace API which offer free characters per month.
API usage could enable to use large language models.