Swap arguments, source and target language were flipped
This commit is contained in:
parent
a6cf81c652
commit
f62a79d842
1 changed files with 1 additions and 1 deletions
2
kagi.el
2
kagi.el
|
@ -443,10 +443,10 @@ result is short, otherwise it is displayed in a new buffer."
|
|||
(let* ((prompt (format "Translate the following text %sto %s:
|
||||
|
||||
%s"
|
||||
target-language
|
||||
(if source-language
|
||||
(format "from %s " source-language)
|
||||
"")
|
||||
target-language
|
||||
text))
|
||||
(result (kagi-fastgpt prompt))
|
||||
(result-lines (length (string-lines result))))
|
||||
|
|
Loading…
Reference in a new issue