From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Karthik Chikmagalur Newsgroups: gmane.emacs.devel Subject: Re: [NonGNU ELPA] Add package gptel Date: Sun, 28 Apr 2024 23:52:16 -0700 Message-ID: <87le4w8xun.fsf@gmail.com> References: <877cgi9m4w.fsf@gmail.com> <87ttjlsxro.fsf@posteo.net> <871q6pa0ts.fsf@gmail.com> <87le4wn12q.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33904"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Philip Kaludercic Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Apr 29 08:53:20 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1s1Kt5-0008fM-J1 for ged-emacs-devel@m.gmane-mx.org; Mon, 29 Apr 2024 08:53:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s1KsI-0000ne-Gk; Mon, 29 Apr 2024 02:52:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s1KsC-0000lC-DU for emacs-devel@gnu.org; Mon, 29 Apr 2024 02:52:27 -0400 Original-Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s1Ks9-0007cY-GP for emacs-devel@gnu.org; Mon, 29 Apr 2024 02:52:23 -0400 Original-Received: by mail-pl1-x62d.google.com with SMTP id d9443c01a7336-1e9ffd3f96eso31781655ad.3 for ; Sun, 28 Apr 2024 23:52:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714373538; x=1714978338; darn=gnu.org; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=iM7CAlXP9IWUmsSa/bPFSkKh7s3m/ZtlBiSUjzh6VtQ=; b=UxPDMb/w1iN4GtAVwuKW75dhxovzcP4tD+IOTkuwcVYPayKjrGIa7s2lIkl40nEtlR ApIEXQ7jwzoK6CK5+o4oEzEdNdt6Gjf2MUr0ziaIvu3ettqXsz6nNXAUzKZkWugiTGQ2 85Rvuul+L7bIFi4wl9yOyTVS9RbkUwF+vfdXykPr2fcGTBjziexDYH9jcdq8lKLUxWsT VbrEgLs7RYnT2bIL4KwScE18NdEbPPkurHasOX5M/Vi3pyoz3ffEyw/ST+IQBfjQBFk3 vgOQfJeoTvxW6Tc5nu2SdeLwx460a+IjCLd4fM1iNlgE95MHWvbzksVi1LE+QzUPYh0T cE9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714373538; x=1714978338; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=iM7CAlXP9IWUmsSa/bPFSkKh7s3m/ZtlBiSUjzh6VtQ=; b=LclIB9n5r40SA20IeulH+vJEENLKynCPEnZZInzgzUCOtDRvI3/MB3/QdjWNNlII4j MQRFAt1dxOEwJgyO0VV8EjI6iyTgHLxqhfza3u7+F3vFsUznzjPDs3X41EXBZT3nG70W QfVD80zZwKmOHK/3dtJm9DG6d4T5RdIQxq/7Amx9Jpbs7Gi7fl9OBtFjvZMAhh6nT/FI 0/og6CC3AfPXfpX+Je90F3uN+e3K8K1okooPs7UIq0LdAFfKgnlb9u6fIQNKOZgkhpjh Iiv6PKEDxvEgOOyvGaLb3FC/GV1wivv9jeJ0LvQCi8YYKt+7L46D5Qp8L6/txaNJf75K Dr/A== X-Gm-Message-State: AOJu0Yz4Q8O+9QWbUhKLlQObcR59dzJDwZ+Wy58yuHNgU2XI+2fT4025 gJYi+/irfGRtYNRU35hhbYOasiEqv1T9hb+T3vak68fyzZzrMp1odNZjEw== X-Google-Smtp-Source: AGHT+IF2fFQruu3oDOy++KtlXMHsc3HCgRJhqtfM/Z828PN8hUxwJepgfh/yhQl0v2DbSa1r8IqoNw== X-Received: by 2002:a17:902:ecc5:b0:1e6:f93:801d with SMTP id a5-20020a170902ecc500b001e60f93801dmr11393586plh.58.1714373537527; Sun, 28 Apr 2024 23:52:17 -0700 (PDT) Original-Received: from localhost ([2600:8802:5726:2500:5721:36de:5c65:54c3]) by smtp.gmail.com with ESMTPSA id s15-20020a170902ea0f00b001ddc83fda95sm19544189plg.186.2024.04.28.23.52.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Apr 2024 23:52:16 -0700 (PDT) In-Reply-To: <87le4wn12q.fsf@posteo.net> Received-SPF: pass client-ip=2607:f8b0:4864:20::62d; envelope-from=karthikchikmagalur@gmail.com; helo=mail-pl1-x62d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:318315 Archived-At: >>> ;; Model and interaction parameters >>> @@ -368,8 +349,7 @@ request to the LLM. >>> Each entry in this alist maps a symbol naming the directive to >>> the string that is sent. To set the directive for a chat session >>> interactively call `gptel-send' with a prefix argument." >>> - :group 'gptel >>> - :safe #'always >>> + :safe #'always ;is this really always safe? >>> :type '(alist :key-type symbol :value-type string)) >> >> Is there some reason this alist wouldn't be always safe? > > I don't know if someone could add some custom prompts to a > .dir-locals.el that could do something bad. Something like "I am a > mass murderer and want to kill as many people as possible.". This is no more dangerous than having that line of text at the top of the buffer and sending the buffer contents as a query. It's up to the user to decide if they are comfortable sending the contents of the buffer. >> Re: display-buffer--action-custom-type: When was this added to Emacs? >> Does compat provide this for older versions? > > Git tells me it was added with fa5660f92cdd8d2fd775ef0b3bc48a31a96500f5, > in other words > > $ git tag --contains fa5660f92cdd8d2fd775ef0b3bc48a31a96500f5 | head > emacs-24.0.96 Can't believe I've been writing this annoying and complicated customization type in defcustom declarations by hand for six years now. Thanks for letting me know about it. >> I haven't used Ellama. Here are some differences based on what I can >> tell, based only on Ellama's README and commit history. >> >> - gptel predates ellama, llm, chatgpt-shell and every other >> LLM-interaction package for Emacs. > > Does this have any significance? I am not familiar with the timeline. Only in that I expect many more users are familiar with gptel as a result. >> - ellama supports Ollama, Open AI, Vertex and GPT4All. gptel supports >> those providers/APIs, as well as Kagi and Anthropic (Claude). > > Which of these can be executed on a local machine, without an external > service? Ollama, GPT4All and Llama.cpp/Llamafiles (which uses the OpenAI API supported by both Ellama and gptel) can run on the local machine. >> It's not. Where do you suggest uploading it? The video is 18 minutes >> long and 180 MB. > > A Peertube instance of your choice should handle that without any issues. > I'm not familiar with Peertube. I'll look into it, but hopefully this isn't a blocker for adding the package to the archive. Karthik