From patchwork Fri Apr 26 07:04:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roman Scherer X-Patchwork-Id: 63383 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id C99CF27BBE9; Fri, 26 Apr 2024 08:06:44 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id A967627BBE2 for ; Fri, 26 Apr 2024 08:06:40 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s0Fey-0002B3-VX; Fri, 26 Apr 2024 03:06:17 -0400 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 1s0Few-0002AH-4w for guix-patches@gnu.org; Fri, 26 Apr 2024 03:06:14 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s0Fev-00025F-Rg for guix-patches@gnu.org; Fri, 26 Apr 2024 03:06:13 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s0FfB-0002uQ-Nj; Fri, 26 Apr 2024 03:06:29 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70584] [PATCH] gnu: Add emacs-llm. Resent-From: Roman Scherer Original-Sender: "Debbugs-submit" Resent-CC: andrew@trop.in, cox.katherine.e+guix@gmail.com, liliana.prikler@gmail.com, guix-patches@gnu.org Resent-Date: Fri, 26 Apr 2024 07:06:25 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 70584 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 70584@debbugs.gnu.org Cc: Roman Scherer , Andrew Tropin , Katherine Cox-Buday , Liliana Marie Prikler X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Andrew Tropin , Katherine Cox-Buday , Liliana Marie Prikler Received: via spool by submit@debbugs.gnu.org id=B.171411516510881 (code B ref -1); Fri, 26 Apr 2024 07:06:25 +0000 Received: (at submit) by debbugs.gnu.org; 26 Apr 2024 07:06:05 +0000 Received: from localhost ([127.0.0.1]:33677 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s0Feg-0002oP-LQ for submit@debbugs.gnu.org; Fri, 26 Apr 2024 03:06:03 -0400 Received: from lists.gnu.org ([2001:470:142::17]:40460) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s0FeP-0002ka-3l for submit@debbugs.gnu.org; Fri, 26 Apr 2024 03:05:47 -0400 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 1s0Fds-00024r-4G for guix-patches@gnu.org; Fri, 26 Apr 2024 03:05:13 -0400 Received: from mail-ed1-x535.google.com ([2a00:1450:4864:20::535]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s0Fdp-0001te-VI for guix-patches@gnu.org; Fri, 26 Apr 2024 03:05:07 -0400 Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-56e6acb39d4so2206616a12.1 for ; Fri, 26 Apr 2024 00:05:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=burningswell-com.20230601.gappssmtp.com; s=20230601; t=1714115102; x=1714719902; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=FF6ddorw6Cm5Hcztk3lI+UoGBXs3Mo4s5dZ4+eEWki8=; b=rGWis1gxtBQ6Am8lQq+6KO91uU4U3AO0qdKo/tPEr0HHQgym/1t1LShVYQrpgavXtn dXAugRUfbusQLBReyC5XreLz5ryp4Cqd4UDHqdpROh08pBN7C5IrOO3j0Gy5b4PCCkoE c5HPM8dYMz5I9Feav9+8Q3Pffoe8pwsjoDopjfHl2356jUA1hF3vFbhpNx66L2YVtVd2 jbWqUvXoKHnF1cZpK7YIIXAs5i1R3pv8s0PJdiyC+ki1FocKPpU6GiWsHtpS0dpx46QG KLHvR/NSV1HisZbiv3Bo2pWckGS9wklDXVs+lSC1oFZu6VzCCCDPYm+r5qL1tfaXaOdS 982A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714115102; x=1714719902; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=FF6ddorw6Cm5Hcztk3lI+UoGBXs3Mo4s5dZ4+eEWki8=; b=KCdhQxeNyihnKF0GDC6O6pgVH+zndUdnsZ7xQ9k/dl00l6TB1aQS58fkpAyeVtsMNR GKuTdeWteQB1S/uSr6lQq+mZ4eVrEmU9hOQMadGHpMoGPcYzSgN8u0B/izwIGMNzvjkl ujNvjBC8GzZ1GRvmAjgCjIo34ZQQ9yB8DbevQR3xAm6K6TjM8eIfmlcp8aTL5gYWNEuE aS3TIW4//b/JZW2m35ShzctT4EKFoDcGe/X7queo/Ge1/NL9WRybVZlDB0gJiPGPiBej UUuxkmdDyWKwQWJNnIBxwwzGqvYqkHm5CRmyTIPsx01S2Ri/6J2qtAf+1/C5byxIuH5k PhEQ== X-Gm-Message-State: AOJu0Yybvql1TSypnUdteOz66mss8cIdqPtGCQGAEYJJ7OQhspMG8qb5 XlGlqtJy26ToHhNA7tuMQbn3Hkw0X5KcuwsJ/8RhuQjOPPxCqR0RDBUptva5H0sa8UvOd/7AOKR 4 X-Google-Smtp-Source: AGHT+IH5yEJBIPtSvNyuHEqB6BKlrmrSXTfne5QAqPJ8cTRwKB9UK6ws7XW7CC86m4hfElRVU2OyVw== X-Received: by 2002:a50:d4ca:0:b0:56e:5735:db2b with SMTP id e10-20020a50d4ca000000b0056e5735db2bmr1146752edj.29.1714115102147; Fri, 26 Apr 2024 00:05:02 -0700 (PDT) Received: from precision.. (tmo-086-157.customers.d1-online.com. [80.187.86.157]) by smtp.gmail.com with ESMTPSA id d19-20020a50fe93000000b00571c2402e6dsm9050556edt.0.2024.04.26.00.05.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 00:05:01 -0700 (PDT) From: Roman Scherer Date: Fri, 26 Apr 2024 09:04:50 +0200 Message-ID: X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Received-SPF: none client-ip=2a00:1450:4864:20::535; envelope-from=roman@burningswell.com; helo=mail-ed1-x535.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/emacs-xyz.scm (emacs-llm): New variable. Change-Id: Ie89eac7a4f0a31245b6d826ae9885a7092528ced --- gnu/packages/emacs-xyz.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) base-commit: 259372b7a95e3fea75a9ce1127a904e3f1ea3591 diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 8a2ffc621d..8c712612b6 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -1606,6 +1606,31 @@ (define-public emacs-libgit libgit2 bindings for Emacs, intended to boost the performance of Magit.") (license license:gpl2+)))) +(define-public emacs-llm + (package + (name "emacs-llm") + (version "0.13.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ahyatt/llm") + (commit version))) + (file-name (git-file-name name version)) + (sha256 (base32 + "1q7djz4zx1br4d3g46f1m5cbxwl050qjmsm2cy7zcww64rrkcj0l")))) + (build-system emacs-build-system) + (home-page "https://github.com/ahyatt/llm") + (synopsis " Emacs library abstracting Large Language Model capabilities.") + (description + "This is a library for interfacing with Large Language Models. It allows +elisp code to use LLMs, but allows gives the end-user an option to choose +which LLM they would prefer. This is especially useful for LLMs, since there +are various high-quality ones that in which API access costs money, as well as +locally installed ones that are free, but of medium quality. Applications +using LLMs can use this library to make sure their application works +regardless of whether the user has a local LLM or is paying for API access.") + (license license:gpl3+))) + (define-public emacs-magit ;; Use this unreleased commit to benefit from a recent improvements with ;; regard to adding git trailers such as "Reviewed-by".