[PATCH] gnu: Add emacs-chatgpt-shell.

  • Done
  • quality assurance status badge
Details
6 participants
  • Andrew Tropin
  • Cayetano Santos
  • Cayetano Santos
  • Wojtek Kosior
  • Liliana Marie Prikler
  • Nicolas Goaziou
Owner
unassigned
Submitted by
Cayetano Santos
Severity
normal
C
C
Cayetano Santos wrote on 30 Jul 2023 17:52
(address . guix-patches@gnu.org)(name . Cayetano Santos)(address . csantosb@inventati.org)
19985392d433fe1719f45532f38573a50544dce5.1690732378.git.csantosb@inventati.org
* gnu/packages/emacs-xyz.scm (emacs-chatgpt-shell): New variable.
---
gnu/packages/emacs-xyz.scm | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)

Toggle diff (34 lines)
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index d7e45fffc6..b26ebe64b1 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -490,6 +490,25 @@ (define-public emacs-gptel
API key.")
(license license:gpl3+)))
+(define-public emacs-chatgpt-shell
+ (package
+ (name "emacs-chatgpt-shell")
+ (version "0.74.1")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/xenodium/chatgpt-shell")
+ (commit "1de7bfa6a34f20cca813006282d9a8f2ef291f95")))
+ (sha256
+ (base32
+ "1rabpp70qlmc47lmp2v7ckvfjhy6wkk881fxpbv2dchzhn77qk5r"))))
+ (build-system emacs-build-system)
+ (home-page "https://github.com/xenodium/chatgpt-shell")
+ (synopsis "ChatGPT and DALL-E Emacs shells + Org Babel")
+ (description
+ "chatgpt-shell is a comint-based ChatGPT shell for Emacs.")
+ (license license:gpl3+)))
+
(define-public emacs-geiser-guile
(package
(name "emacs-geiser-guile")

base-commit: e43cbeafd1b632f39b08b3644af5230d5350a656
--
2.41.0
W
W
Wojtek Kosior wrote on 30 Jul 2023 22:51
(name . Cayetano Santos via Guix-patches via)(address . guix-patches@gnu.org)
20230730225155.3b2510c5.koszko@koszko.org
Hi!

Toggle quote (2 lines)
> * gnu/packages/emacs-xyz.scm (emacs-chatgpt-shell): New variable.

Doesn't this package effectively recommend a nonfree
service-as-a-software-substitute? It'd be better to keep users away
from such "services". Also, sorry to say, I'm pretty sure this is
against the Free Software Distribution Guidelines

Wojtek

-- (sig_start)
fingerprint: E972 7060 E3C5 637C 8A4F 4B42 4BC5 221C 5A79 FD1A

♥ R29kIGlzIHRoZXJlIGFuZCBsb3ZlcyBtZQ== | ÷ c2luIHNlcGFyYXRlZCBtZSBmcm9tIEhpbQ==
? YnV0IEplc3VzIGRpZWQgdG8gc2F2ZSBtZQ== | ? U2hhbGwgSSBiZWNvbWUgSGlzIGZyaWVuZD8=
-- (sig_end)


On Sun, 30 Jul 2023 17:52:58 +0200 Cayetano Santos via Guix-patches via <guix-patches@gnu.org> wrote:

Toggle quote (37 lines)
> * gnu/packages/emacs-xyz.scm (emacs-chatgpt-shell): New variable.
> ---
> gnu/packages/emacs-xyz.scm | 19 +++++++++++++++++++
> 1 file changed, 19 insertions(+)
>
> diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
> index d7e45fffc6..b26ebe64b1 100644
> --- a/gnu/packages/emacs-xyz.scm
> +++ b/gnu/packages/emacs-xyz.scm
> @@ -490,6 +490,25 @@ (define-public emacs-gptel
> API key.")
> (license license:gpl3+)))
>
> +(define-public emacs-chatgpt-shell
> + (package
> + (name "emacs-chatgpt-shell")
> + (version "0.74.1")
> + (source (origin
> + (method git-fetch)
> + (uri (git-reference
> + (url "https://github.com/xenodium/chatgpt-shell")
> + (commit "1de7bfa6a34f20cca813006282d9a8f2ef291f95")))
> + (sha256
> + (base32
> + "1rabpp70qlmc47lmp2v7ckvfjhy6wkk881fxpbv2dchzhn77qk5r"))))
> + (build-system emacs-build-system)
> + (home-page "https://github.com/xenodium/chatgpt-shell")
> + (synopsis "ChatGPT and DALL-E Emacs shells + Org Babel")
> + (description
> + "chatgpt-shell is a comint-based ChatGPT shell for Emacs.")
> + (license license:gpl3+)))
> +
> (define-public emacs-geiser-guile
> (package
> (name "emacs-geiser-guile")
>
> base-commit: e43cbeafd1b632f39b08b3644af5230d5350a656
-----BEGIN PGP SIGNATURE-----

iHUEARYIAB0WIQTpcnBg48VjfIpPS0JLxSIcWnn9GgUCZMbNawAKCRBLxSIcWnn9
GmvmAQDsN0wUMllFwdt9SpltKo/JDrxkgmHSu2b1LyeOC00DcwEAht0TlP07ZzGW
7wU53R5wyE1myoS4GQcJMJeZ7kWGPAI=
=Lqd9
-----END PGP SIGNATURE-----


C
C
Cayetano Santos wrote on 31 Jul 2023 09:13
(name . Wojtek Kosior)(address . koszko@koszko.org)(address . 64958@debbugs.gnu.org)
87fs548sbt.fsf@inventati.org
Toggle quote (12 lines)
>dim. 30 juil. 2023 at 22:51, Wojtek Kosior <koszko@koszko.org> wrote:

> [[PGP Signed Part:Undecided]]
> Hi!
>
>> * gnu/packages/emacs-xyz.scm (emacs-chatgpt-shell): New variable.
>
> Doesn't this package effectively recommend a nonfree
> service-as-a-software-substitute? It'd be better to keep users away
> from such "services". Also, sorry to say, I'm pretty sure this is
> against the Free Software Distribution Guidelines

You’re completely right, I completely forgot about this point.

I noticed that we already provide emacs-gptel, with similar concerns.

Cayetano
L
L
Liliana Marie Prikler wrote on 31 Jul 2023 22:03
(name . Wojtek Kosior)(address . koszko@koszko.org)
aebb8acd35e448b162b4a29198270cef8aba07ae.camel@gmail.com
Am Sonntag, dem 30.07.2023 um 22:51 +0200 schrieb Wojtek Kosior:
Toggle quote (8 lines)
> Hi!
>
> > * gnu/packages/emacs-xyz.scm (emacs-chatgpt-shell): New variable.
>
> Doesn't this package effectively recommend a nonfree
> service-as-a-software-substitute? It'd be better to keep users away
> from such "services". Also, sorry to say, I'm pretty sure this is
> against the Free Software Distribution Guidelines
IANAL, but as far as I understand, having clients for various
"services" out there, even if those services are not distributed as
free software, is permissible. See some social networking applications
or messengers. IMHO, we would need a clear guideline for all of them
rather than singling out ChatGPT even if using it is harmful for
everyone involved.

Nicolas, Andrew, WDYT?
N
N
Nicolas Goaziou wrote on 1 Aug 2023 12:02
(name . Liliana Marie Prikler)(address . liliana.prikler@gmail.com)
878ravyta5.fsf@nicolasgoaziou.fr
Hello,

Liliana Marie Prikler <liliana.prikler@gmail.com> writes:

Toggle quote (13 lines)
> Am Sonntag, dem 30.07.2023 um 22:51 +0200 schrieb Wojtek Kosior:
>> Hi!
>>
>> > * gnu/packages/emacs-xyz.scm (emacs-chatgpt-shell): New variable.
>>
>> Doesn't this package effectively recommend a nonfree
>> service-as-a-software-substitute? It'd be better to keep users away
>> from such "services". Also, sorry to say, I'm pretty sure this is
>> against the Free Software Distribution Guidelines
> IANAL, but as far as I understand, having clients for various
> "services" out there, even if those services are not distributed as
> free software, is permissible.

I also think so. In particular, this is not a SaaSS because there is no
software to substitute in the first place.

Toggle quote (6 lines)
> IMHO, we would need a clear guideline for all of them rather than
> singling out ChatGPT even if using it is harmful for everyone
> involved.
>
> Nicolas, Andrew, WDYT?

I think a clear rule is important, and my opinion is that it should be
permissive. These clients are useful pieces of software, if only because
they constitute an opportunity to learn code.

Regards,
--
Nicolas Goaziou
W
W
Wojtek Kosior wrote on 1 Aug 2023 12:35
(name . Nicolas Goaziou)(address . mail@nicolasgoaziou.fr)
20230801123522.7f70f5e4.koszko@koszko.org
Toggle quote (11 lines)
> >> Doesn't this package effectively recommend a nonfree
> >> service-as-a-software-substitute? It'd be better to keep users away
> >> from such "services". Also, sorry to say, I'm pretty sure this is
> >> against the Free Software Distribution Guidelines
> > IANAL, but as far as I understand, having clients for various
> > "services" out there, even if those services are not distributed as
> > free software, is permissible.
>
> I also think so. In particular, this is not a SaaSS because there is no
> software to substitute in the first place.

As to centralized services — I also believe it is acceptable to include
clients for them. I mean tools like YouTube video downloaders.

I like how F-Droid approaches this — programs written for the purpose
of connecting to centralized services are labeled as having a possible
anti-feature.

However, I argue that ChatGPT is SaaSS rather than a pure "service".
The software being substituted is a "large language model" (LLM). It
isn't a *conventional* piece of software, it's a trained neural
network. But this doesn't mean it isn't software at all. I performs
advanced computation — that's also what software does.

And since nonfree software shouldn't be recommended in distros, the same
goes with SaaSS.

Toggle quote (4 lines)
> I think a clear rule is important, and my opinion is that it should be
> permissive. These clients are useful pieces of software, if only because
> they constitute an opportunity to learn code.

Even if it is a good opportunity, it's a side aspect. Nonfree software
wouldn't get packaged merely because it provides some good opportunity.
So it shouldn't affect the decision here on SaaSS, either.

Also, when looking for some code to take inspiration from, I prefer to
look at public git repositories rather than on distro packages. And
even if I were to learn elisp from Guix packages, there are already
many that do not have freedom issues.

Lastly, I admit this is a harder problem than it seems — search engines
could also be presented as (at least partially) SaaSS and it would be
hard to leave without these

Wojtek

-- (sig_start)
fingerprint: E972 7060 E3C5 637C 8A4F 4B42 4BC5 221C 5A79 FD1A

♥ R29kIGlzIHRoZXJlIGFuZCBsb3ZlcyBtZQ== | ÷ c2luIHNlcGFyYXRlZCBtZSBmcm9tIEhpbQ==
? YnV0IEplc3VzIGRpZWQgdG8gc2F2ZSBtZQ== | ? U2hhbGwgSSBiZWNvbWUgSGlzIGZyaWVuZD8=
-- (sig_end)


On Tue, 01 Aug 2023 12:02:42 +0200 Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:

Toggle quote (31 lines)
> Hello,
>
> Liliana Marie Prikler <liliana.prikler@gmail.com> writes:
>
> > Am Sonntag, dem 30.07.2023 um 22:51 +0200 schrieb Wojtek Kosior:
> >> Hi!
> >>
> >> > * gnu/packages/emacs-xyz.scm (emacs-chatgpt-shell): New variable.
> >>
> >> Doesn't this package effectively recommend a nonfree
> >> service-as-a-software-substitute? It'd be better to keep users away
> >> from such "services". Also, sorry to say, I'm pretty sure this is
> >> against the Free Software Distribution Guidelines
> > IANAL, but as far as I understand, having clients for various
> > "services" out there, even if those services are not distributed as
> > free software, is permissible.
>
> I also think so. In particular, this is not a SaaSS because there is no
> software to substitute in the first place.
>
> > IMHO, we would need a clear guideline for all of them rather than
> > singling out ChatGPT even if using it is harmful for everyone
> > involved.
> >
> > Nicolas, Andrew, WDYT?
>
> I think a clear rule is important, and my opinion is that it should be
> permissive. These clients are useful pieces of software, if only because
> they constitute an opportunity to learn code.
>
> Regards,
-----BEGIN PGP SIGNATURE-----

iHUEARYIAB0WIQTpcnBg48VjfIpPS0JLxSIcWnn9GgUCZMjf6gAKCRBLxSIcWnn9
Gh/rAP4ouiKiJ1hKU8RufW5OvzzDTnbZRpa0zDUEVQ44K2q48wD+NT413sToNrE4
NyQih0lvMU9aLYGVTdhQNi73e2LcDwU=
=X27T
-----END PGP SIGNATURE-----


A
A
Andrew Tropin wrote on 9 Aug 2023 11:16
878raky3rr.fsf@trop.in
On 2023-07-31 22:03, Liliana Marie Prikler wrote:

Toggle quote (18 lines)
> Am Sonntag, dem 30.07.2023 um 22:51 +0200 schrieb Wojtek Kosior:
>> Hi!
>>
>> > * gnu/packages/emacs-xyz.scm (emacs-chatgpt-shell): New variable.
>>
>> Doesn't this package effectively recommend a nonfree
>> service-as-a-software-substitute? It'd be better to keep users away
>> from such "services". Also, sorry to say, I'm pretty sure this is
>> against the Free Software Distribution Guidelines
> IANAL, but as far as I understand, having clients for various
> "services" out there, even if those services are not distributed as
> free software, is permissible. See some social networking applications
> or messengers. IMHO, we would need a clear guideline for all of them
> rather than singling out ChatGPT even if using it is harmful for
> everyone involved.
>
> Nicolas, Andrew, WDYT?

While I'm not a big fun of popularization of proprietary/non-ethical
services, the clients for those services are often free software and I
don't see a good reason to include some of them and not to include
others. Also, such software often can be used with different more
ethical backends with compatible API or as an implementation example or
other source of inspiration and hackery.

--
Best regards,
Andrew Tropin
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEKEGaxlA4dEDH6S/6IgjSCVjB3rAFAmTTWWgACgkQIgjSCVjB
3rBL9A//ZnDj+9WCJQHzw2ud0+uMbrJSlf3Y24d2kSarKp2j/ynbVmkXc3tPDV3y
UwzFB+boggrMB+IRHJc7kstnVDrIoQkf+BL04VBWrFPLeF6D0r/O8OWSDDJzr8Zs
Suu215anyHP9x42dixDBktxCAsrRNSMsjJt2ZrU/qX0KXtApiM7mG/8Oe/6YNqTj
C5NtsQnd88Afp4gSExLmn9SbTycvisjWgsgwWkJE5CxnULONmoX3ZlaWl8I4hdRA
wVoY0PRC/A+Sczb9wlFA/jl7gaC9CpVQdqncKIKELc+DBuR/t6yr3e0tKBJtbvcb
r/0IrKWddBsDtaxDYlCfFelOYFfSM0hnSAXwABiqB7YuLcehHHrWmcRDpqoD/Lgk
na3t7l88KPeu9XVZzhxe+hWEemhvBGJmNVhwCmZAXjIXG6CY5GgJ6PY9LRbMmnp3
KCa5iCsTY/c5Pj5gEI2BXHUE2VyGwRz2QqFox9ve/nEkO6NLWwhtPIgEIt13D5Lp
HpL8I3usq9F1rQhr6ygyVOMfw8taq//L4BAmW6SgbudES9Vidxu14/RE8DsARzFF
TMiSVEaR4rjvdXSnovjBDLAUASbrXoZyc3S9IXy/1sXFR0keDmuJfVXQmJcqP949
289drjIh0NqouPreHNWh0sjdGH4cLZnsKgs6RvmDVUXNbN93JSs=
=am31
-----END PGP SIGNATURE-----

L
L
Liliana Marie Prikler wrote on 9 Sep 2023 12:31
(name . Wojtek Kosior)(address . koszko@koszko.org)
f65719315f9538ca30760b7213f31cad503cd146.camel@gmail.com
Am Montag, dem 31.07.2023 um 22:03 +0200 schrieb Liliana Marie Prikler:
Toggle quote (17 lines)
> Am Sonntag, dem 30.07.2023 um 22:51 +0200 schrieb Wojtek Kosior:
> > Hi!
> >
> > > * gnu/packages/emacs-xyz.scm (emacs-chatgpt-shell): New variable.
> >
> > Doesn't this package effectively recommend a nonfree
> > service-as-a-software-substitute? It'd be better to keep users away
> > from such "services". Also, sorry to say, I'm pretty sure this is
> > against the Free Software Distribution Guidelines
> IANAL, but as far as I understand, having clients for various
> "services" out there, even if those services are not distributed as
> free software, is permissible.  See some social networking
> applications or messengers.  IMHO, we would need a clear guideline
> for all of them rather than singling out ChatGPT even if using it is
> harmful for everyone involved.
>
> Nicolas, Andrew, WDYT?
Got two ayes, so pushed.

Cheers
Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 64958@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 64958
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch