aconchillo / guile-openai

OpenAI module for Guile

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

guile-openai

guile-openai is an OpenAI module for Guile.

Installation

If you are cloning the repository make sure you run this first:

$ autoreconf -vif

Then, run the typical sequence:

$ ./configure --prefix=<guile-prefix>
$ make
$ sudo make install

Where <guile-prefix> should preferably be the same as your system Guile installation directory (e.g. /usr).

If everything installed successfully you should be up and running:

$ guile
scheme@(guile-user)> (use-modules (openai client))
scheme@(guile-user)> (define client (make-client "YOUR_API_KEY")

It might be that you installed guile-openai somewhere differently than your system's Guile. If so, you need to indicate Guile where to find guile-openai, for example:

$ GUILE_LOAD_PATH=/usr/local/share/guile/site guile

License

Copyright (C) 2022 Aleix Conchillo Flaque aconchillo@gmail.com

guile-openai is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

guile-openai is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with guile-openai. If not, see https://www.gnu.org/licenses/.

About

OpenAI module for Guile

License:GNU General Public License v3.0


Languages

Language:M4 61.6%Language:Scheme 27.1%Language:Makefile 7.4%Language:Shell 3.9%