From e38c0bf605621164f8ef6a339917a280339b0300 Mon Sep 17 00:00:00 2001 From: Gary Tokman Date: Fri, 3 Nov 2023 09:47:48 -0400 Subject: [PATCH] chore: update readme --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 99827b3..4a6a55a 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ Requires `iOS 15+` and Android `minSdkVersion = 24`. yarn add react-native-openai ``` -## Basic Usage +### Basic Usage ```js import OpenAI from 'react-native-openai'; @@ -55,9 +55,7 @@ const openAI = new OpenAI({ organization: 'YOUR_ORGANIZATION', }); -// Alternatively (recommended), you can use your own backend and not hardcode an API key in your app -// pathPrefix is currently not supported on Android, so follow OpenAIs schema for your backend -// i.e. https://my-custom-domain.com/v1/chat/completions +// Alternatively (recommended), you can use your own backend and not hardcode an API key in your app i.e. https://my-custom-domain.com/v1/chat/completions (follow the same API as OpenAI until pathPrefix is fixed on Android) const openAI = new OpenAI({ host: 'my-custom-host.com', });