From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bruno Barbier Newsgroups: gmane.emacs.help Subject: Re: Including AI into Emacs Date: Mon, 09 Dec 2024 23:56:41 +0100 Message-ID: <675775ac.050a0220.1b7ef7.6fe2@mx.google.com> References: <61ffb7417fcfe6fc0c1291aa53d1398b.support1@rcdrun.com> <67533f62.5d0a0220.74bfb.65e6@mx.google.com> <67541628.050a0220.1c50f6.91ff@mx.google.com> <6754318e.df0a0220.314e38.6466@mx.google.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21322"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Jean Louis Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 09 23:57:18 2024 Return-path: Envelope-to: geh-help-gnu-emacs@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 1tKmgn-0005Pn-Ld for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 09 Dec 2024 23:57:17 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tKmgQ-0007ge-MI; Mon, 09 Dec 2024 17:56:54 -0500 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 1tKmgK-0007gK-GW for help-gnu-emacs@gnu.org; Mon, 09 Dec 2024 17:56:48 -0500 Original-Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tKmgI-0003az-U9 for help-gnu-emacs@gnu.org; Mon, 09 Dec 2024 17:56:48 -0500 Original-Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-435004228c0so7608445e9.0 for ; Mon, 09 Dec 2024 14:56:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733785005; x=1734389805; darn=gnu.org; h=mime-version:date:references:in-reply-to:subject:cc:to:from :message-id:from:to:cc:subject:date:message-id:reply-to; bh=+e4mjM8FiXAM1QHtcK+p9eSfbGTBh4D8v5VL1sIlWLM=; b=dXX3FqgvWmBtunkE/TSSkEF9VHJWtkd8lUJlgRho8FcqUkIa+0w0nFl8m7tvR+Itn7 qx1VyF7anqp4oBY0qENHND9V1bkOMSszaklODfvUBHnfC/cBnw3JqpdrVUqZt9wW65wJ /WzOkJ2meWdFkACHgBBSwDu+8Bs1lNl2VfS0QHIw5hOd8pWkV2CK/hJkKvwPfnCGzz3/ Y42qo7bkLp9nQ2hMnWGh2OeUqwcHrFoTWRIv8kdEwYZGb/nowq58TCqhS8WflWbSPZlg Q1WwDQpkIwUXevfZCn7b+QWEfOHkVTSGCqpao7YE/l1OntunWS8KYMqHxl/TzGOolnpS 1hbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733785005; x=1734389805; h=mime-version:date:references:in-reply-to:subject:cc:to:from :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+e4mjM8FiXAM1QHtcK+p9eSfbGTBh4D8v5VL1sIlWLM=; b=RFtW1un6M7zOMJoqHYmeDz3L8GyLeMc0+G7A/PFa9UiNa/USIA7e1VsbJgVnBup3CA bAdk7Mva4bDDK3YmydOCcdMqk7dx2KI6Jbkvtr7IHrniqhC1yb5RVHYoF68VKzPuvo9R iaFrOHddlXzTQw93Oi+x3dNuUxbq3flhfyXdO+G12KHLZjSpPXIB2y6BfmPht9wRPG3A KX8E8kD0suADy0qcL+78+myixNNsbbLdlYUd+Ms/rfQABvhXEUDDVZweJTEPW8ymKjr5 Uw3ofUfqyN7d0nV+6SfBWpyGBuJMuGq7udjDr0Wmmkp4AmeX8Ps15V0GmrfjroE6Ayoe zAoA== X-Gm-Message-State: AOJu0Yw4bKLQi/rp6iXdzP0//+TDnz3cr3fs6MNRBkbBDBXEm9X16/VV edWY6y2INQ4TajhsMJ+/O3xbtC5a3Ng+zwppjyKp6jk2r4NibmIp X-Gm-Gg: ASbGnctNgOXZnoeOusfBxHfq+e/w6p40UACONZFveiw27nL0odUUcyS2YT7SpKiVeFp 00yNg8jClXUzCqJK7tk+pIUUMQ8Mxz17McJm6KhYVVuiuuPK8kjE8IHPvHSvLucPo4nj9vjj99Y tiyvPNSpj4lXY2tWPruR4TaShZQJvVxF2ZYhR9aYC+JkZnfjSHC4ey2pW5dt0zvE7HpUo2ypI8x 1RQ5cuDJK3lPApPy4zmRu3dOXqkNzhNdZlSOs4Mr25B1d9VrUF9 X-Google-Smtp-Source: AGHT+IG8w30qvhzJQ0s4lDnDvnofQbeIzT2DCQDLvFRKjzFp1O6qm7a+CUcwLL8M8h7igSpyk+I5mA== X-Received: by 2002:a05:600c:4e88:b0:434:fddf:5c0c with SMTP id 5b1f17b1804b1-434fff30e74mr24706245e9.4.1733785004614; Mon, 09 Dec 2024 14:56:44 -0800 (PST) Original-Received: from localhost ([2a01:e0a:505:3460:1c18:688d:ece4:372e]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-434ea285b57sm98005865e9.37.2024.12.09.14.56.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2024 14:56:44 -0800 (PST) Original-Received: by localhost (sSMTP sendmail emulation); Mon, 09 Dec 2024 23:56:41 +0100 In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=brubar.cs@gmail.com; helo=mail-wm1-x32f.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, MSGID_FROM_MTA_HEADER=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: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:148735 Archived-At: Jean Louis writes: > * Bruno Barbier [2024-12-07 14:29]: >> IIUC, all you would need is to use the documented API ('gptel-request') >> and use its callback. > > I am still using my own function, it works well for me. My workflow is > that I press C-F5 to invoke the prompt, and prompt takes whatever is > in the region and it is added to it. > > It is of course possible to interpolate the response in any text, like > in Org, I can of course enter it, just that I don't use Org too > often. From meta level I may generate Org or just use snippets, I am > using all kinds of markups which can be converted to each other. > > But I am curious how do you use AI with integration in Org? > > How do you use it in conversations? > > I can mark region of what customer said, I can say use 123 memory and > answer to customer, and I get pretty good answer based on my previous > AI memory. Is that what you mean? > > Or do you mean some kind of automatic conversation? The package repository has a nice video that shows this package in action. I think it will answer your questions better than I could (I discovered this package recently; I just tried it out of curiosity, no real needs). >> But, if you don't need integration with org, conversations, multiple >> backends, etc. , or just for fun, it makes sense to roll your own >> solution. > > Multiple backends I have and it works well. > > But which other uses do you have? I'm not sure I understand your question. I hope the video did answer it for me ;) Cheers, Bruno