Fabric icon indicating copy to clipboard operation
Fabric copied to clipboard

[Feature request]: Select output language

Open oldlastman opened this issue 1 year ago • 12 comments

What do you need?

May be it could posible to select the output language thought a environment variable or the initial setup then in all patterns must use that language to build the AI output at least openai/gpt works pretty well on a large amount of languages thanks for your work

oldlastman avatar Jun 03 '24 19:06 oldlastman

+1 how can i change the language for me to use with my llm witch already support more language than english

Toasterme avatar Jun 06 '24 01:06 Toasterme

+1

devalnor avatar Jun 12 '24 20:06 devalnor

+1

KTMarc avatar Jun 16 '24 06:06 KTMarc

+1

iurisouz4 avatar Jun 24 '24 16:06 iurisouz4

+1

chinkan avatar Jun 26 '24 06:06 chinkan

+1

dennis605 avatar Jul 01 '24 14:07 dennis605

I believe the implementation would not be that hard, you could just append:

Output your response in XYZ language.

at the end of a pattern prompt.

ULTUX avatar Jul 07 '24 21:07 ULTUX

workaround: yt ... | fabric -p summarize | fabric -s -p german just add a simple pattern: cat "translate to german" > ~/.config/pattern/german/system.md

ghdoergeloh avatar Aug 19 '24 13:08 ghdoergeloh

a bettter way to do this is to use contexts. create a context called german in the ~/.config/fabric/contexts folder and put in there "please translate everything to german" then you can do yt .. | fabric -p summarize --context german

xssdoctor avatar Aug 19 '24 14:08 xssdoctor

-g, --language=            Specify the Language Code for the chat, e.g. -g=en -g=zh

These features are already mentioned in the docs. You can set the output language with -g

hhankj2u avatar Nov 01 '24 03:11 hhankj2u

-g, --language=            Specify the Language Code for the chat, e.g. -g=en -g=zh

These features are already mentioned in the docs. You can set the output language with -g

It doesn't seem to be working. The same happens with the pattern "translate". It doesn't work.

sdnnvs avatar Dec 28 '24 23:12 sdnnvs

I finally migrated from the python version to the go version and just doublechecked: the "-g=de" does generate German output. it definitively work right now with the latest OSX binaries of fabric.

I remember that -c in the past lead to reading "context.md" and I have my "reply in German" there, but that somewhen has changed (unfortunately I missed the announcement of that change).

RoeslerM avatar Jan 22 '25 17:01 RoeslerM