emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/ellama 48f4e4beb3 5/7: Add info about translation into


From: ELPA Syncer
Subject: [elpa] externals/ellama 48f4e4beb3 5/7: Add info about translation into documentation.
Date: Sun, 25 Feb 2024 12:58:14 -0500 (EST)

branch: externals/ellama
commit 48f4e4beb35cc13183307002f602afc0261565c5
Author: Sergey Kostyaev <sskostyaev@gmail.com>
Commit: Sergey Kostyaev <sskostyaev@gmail.com>

    Add info about translation into documentation.
---
 README.org | 81 +++++++++++++++++++++++++++++++++++++-------------------------
 1 file changed, 49 insertions(+), 32 deletions(-)

diff --git a/README.org b/README.org
index 49017d0cb9..16b8904e18 100644
--- a/README.org
+++ b/README.org
@@ -66,7 +66,11 @@ In that case you should customize ellama configuration like 
this:
            (make-llm-ollama
             :chat-model "mistral:7b-instruct-v0.2-q6_K"
             :embedding-model "mistral:7b-instruct-v0.2-q6_K"))
-    (setopt ellama-naming-scheme 'ellama-generate-name-by-llm))
+    (setopt ellama-naming-scheme 'ellama-generate-name-by-llm)
+    ;; Translation llm provider
+    (setopt ellama-translation-provider (make-llm-ollama
+                                    :chat-model "sskostyaev/openchat:8k"
+                                    :embedding-model "nomic-embed-text")))
 #+END_SRC
 
 ** Commands
@@ -207,42 +211,52 @@ Add selected region to context.
 
 Add info node to context.
 
+*** ellama-chat-translation-enable
+
+Chat translation enable.
+
+*** ellama-chat-translation-disable
+
+Chat translation disable.
+
 ** Keymap
 
 Here is a table of keybindings and their associated functions in
 Ellama, using the ~ellama-keymap-prefix~ prefix (not set by default):
 
-| Keymap | Function                     | Description                  |
-|--------+------------------------------+------------------------------|
-| "c c"  | ellama-code-complete         | Code complete                |
-| "c a"  | ellama-code-add              | Code add                     |
-| "c e"  | ellama-code-edit             | Code edit                    |
-| "c i"  | ellama-code-improve          | Code improve                 |
-| "c r"  | ellama-code-review           | Code review                  |
-| "s s"  | ellama-summarize             | Summarize                    |
-| "s w"  | ellama-summarize-webpage     | Summarize webpage            |
-| "s l"  | ellama-load-session          | Session Load                 |
-| "s r"  | ellama-session-rename        | Session rename               |
-| "s d"  | ellama-session-remove        | Session delete               |
-| "s a"  | ellama-session-switch        | Session activate             |
-| "i w"  | ellama-improve-wording       | Improve wording              |
-| "i g"  | ellama-improve-grammar       | Improve grammar and spelling |
-| "i c"  | ellama-improve-conciseness   | Improve conciseness          |
-| "m l"  | ellama-make-list             | Make list                    |
-| "m t"  | ellama-make-table            | Make table                   |
-| "m f"  | ellama-make-format           | Make format                  |
-| "a a"  | ellama-ask-about             | Ask about                    |
-| "a i"  | ellama-chat                  | Chat (ask interactively)     |
-| "a l"  | ellama-ask-line              | Ask current line             |
-| "a s"  | ellama-ask-selection         | Ask selection                |
-| "t t"  | ellama-translate             | Text translate               |
-| "t c"  | ellama-complete              | Text complete                |
-| "d w"  | ellama-define-word           | Define word                  |
-| "x b"  | ellama-context-add-buffer    | Context add buffer           |
-| "x f"  | ellama-context-add-file      | Context add file             |
-| "x s"  | ellama-context-add-selection | Context add selection        |
-| "x i"  | ellama-context-add-info-node | Context add info node        |
-| "p s"  | ellama-provider-select       | Provider select              |
+| Keymap | Function                        | Description                  |
+|--------+---------------------------------+------------------------------|
+| "c c"  | ellama-code-complete            | Code complete                |
+| "c a"  | ellama-code-add                 | Code add                     |
+| "c e"  | ellama-code-edit                | Code edit                    |
+| "c i"  | ellama-code-improve             | Code improve                 |
+| "c r"  | ellama-code-review              | Code review                  |
+| "s s"  | ellama-summarize                | Summarize                    |
+| "s w"  | ellama-summarize-webpage        | Summarize webpage            |
+| "s l"  | ellama-load-session             | Session Load                 |
+| "s r"  | ellama-session-rename           | Session rename               |
+| "s d"  | ellama-session-remove           | Session delete               |
+| "s a"  | ellama-session-switch           | Session activate             |
+| "i w"  | ellama-improve-wording          | Improve wording              |
+| "i g"  | ellama-improve-grammar          | Improve grammar and spelling |
+| "i c"  | ellama-improve-conciseness      | Improve conciseness          |
+| "m l"  | ellama-make-list                | Make list                    |
+| "m t"  | ellama-make-table               | Make table                   |
+| "m f"  | ellama-make-format              | Make format                  |
+| "a a"  | ellama-ask-about                | Ask about                    |
+| "a i"  | ellama-chat                     | Chat (ask interactively)     |
+| "a l"  | ellama-ask-line                 | Ask current line             |
+| "a s"  | ellama-ask-selection            | Ask selection                |
+| "t t"  | ellama-translate                | Text translate               |
+| "t e"  | ellama-chat-translation-enable  | Translation enable           |
+| "t d"  | ellama-chat-translation-disable | Translation disable          |
+| "t c"  | ellama-complete                 | Text complete                |
+| "d w"  | ellama-define-word              | Define word                  |
+| "x b"  | ellama-context-add-buffer       | Context add buffer           |
+| "x f"  | ellama-context-add-file         | Context add file             |
+| "x s"  | ellama-context-add-selection    | Context add selection        |
+| "x i"  | ellama-context-add-info-node    | Context add info node        |
+| "p s"  | ellama-provider-select          | Provider select              |
 
 ** Configuration
 
@@ -287,6 +301,9 @@ argument generated text string.
 - ~ellama-naming-scheme~: How to name new sessions.
 - ~ellama-naming-provider~: LLM provider for generating session names
   by LLM. If not set ~ellama-provider~ will be used.
+- ~ellama-chat-translation-enabled~: Enable chat translations if set.
+- ~ellama-translation-provider~: LLM translation provider.
+  ~ellama-provider~ will be used if not set.
 
 ** Acknowledgments
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]