lorniu / go-translate

Translator on Emacs. Supports multiple engines such as Google, Bing, deepL, ChatGPT, StarDict, Youdao and so on.
GNU General Public License v3.0
274 stars 37 forks source link

[Feature] Translation using (Local) LLM #74

Closed hwiorn closed 3 months ago

hwiorn commented 3 months ago

go-translate already has ChatGPT implementation.

So, I think go-translate interface can be extended by implementing LLM feature such as ellama-translate(using https://github.com/ahyatt/llm) or gptel packages.

How do you think?

lorniu commented 3 months ago

That's what's going on in the chat branch. The branch is not complete yet.

Currently, it only supports ChatGPT, and the functionality is not complete enough, and the interaction logic isn't very satisfying yet. I need to spend time improving and optimizing it.

If you just chat based on ChatGPT, it already works very well. I use it every day now.

The next step is:

This may take some time.

I don't want to extend based on LLM or gptel, yes they are excellent, but their implementations are a bit too coupled for me.

Welcome to try out the chat branch, and hope to get more suggestions, especially on interaction logic design. Thanks.

hwiorn commented 3 months ago

I thought just adding new LLM(e.g: ellama) backend into it is enough.

I don't want to extend based on LLM or gptel, yes they are excellent, but their implementations are a bit too coupled for me.

I agree. But it seems like it would take a lot of work and time.

Welcome to try out the chat branch, and hope to get more suggestions, especially on interaction logic design. Thanks.

Okay, I'll check it out.