Fabric
Fabric copied to clipboard
[Feature request]: Select output language
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
+1 how can i change the language for me to use with my llm witch already support more language than english
+1
+1
+1
+1
+1
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.
workaround:
yt ... | fabric -p summarize | fabric -s -p german
just add a simple pattern: cat "translate to german" > ~/.config/pattern/german/system.md
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
-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
-g, --language= Specify the Language Code for the chat, e.g. -g=en -g=zhThese 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.
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).