From 43ae88eceef4aec349d401487654e8ee3610cf0f Mon Sep 17 00:00:00 2001 From: Petrus Janse van Rensburg Date: Thu, 30 May 2024 09:12:43 +0200 Subject: [PATCH 1/2] fix minor typos in README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9016544..b8b3d0d 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ This library is aimed at assisting in the development of those types of applicat ## Documentation -The online documentation can [found here](https://hexdocs.pm/langchain). +The online documentation can be [found here](https://hexdocs.pm/langchain). ## Demo @@ -150,7 +150,7 @@ IO.puts(message.content) ### Alternative OpenAI compatible APIs -There are several of services or self-hosted applications that provide an OpenAI compatible API for ChatGPT-like behavior. To use a service like that, the `endpoint` of the `ChatOpenAI` struct can be pointed to an API compatible `endpoint` for chats. +There are several services or self-hosted applications that provide an OpenAI compatible API for ChatGPT-like behavior. To use a service like that, the `endpoint` of the `ChatOpenAI` struct can be pointed to an API compatible `endpoint` for chats. For example, if a locally running service provided that feature, the following code could connect to the service: From eaa50be4d38d8cf13c1c2d49b7b3af42453986f5 Mon Sep 17 00:00:00 2001 From: "P.J. Janse van Rensburg" Date: Thu, 30 May 2024 09:24:57 +0200 Subject: [PATCH 2/2] be more explicit about API & Bumblebee support --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b8b3d0d..496cc29 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,7 @@ end Currently, the library is written to use the `Req` library for making API calls. -To make API calls, it is necessary to configure the API keys for the services you connect with. At this time, the library only supports ChatGPT and the OpenAI API key. +You can configure an _organization ID_, and _API key_ for OpenAI's API, but this library also works with [other compatible APIs](#alternative-openai-compatible-apis) as well as [local models running on Bumblebee](#bumblebee-chat-support). `config/config.exs`: