From 148aff09ef8fc1bfb6e8984079c3120b9083196d Mon Sep 17 00:00:00 2001 From: Pawan Osman Date: Thu, 4 Apr 2024 14:16:01 +0300 Subject: [PATCH] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ab962c6..b36e039 100644 --- a/README.md +++ b/README.md @@ -107,8 +107,8 @@ Leverage the same integration code as OpenAI's official libraries by simply adju ```python import openai -openai.api_key = 'pk-**********************************************' # For self-hosted version you can put anything -openai.base_url = "https://api.pawan.krd/v1/" # For self-hosted version, use "http://localhost:3040/v1/" +openai.api_key = 'anything' +openai.base_url = "http://localhost:3040/v1/" completion = openai.chat.completions.create( model="gpt-3.5-turbo", @@ -126,8 +126,8 @@ print(completion.choices[0].message.content) import OpenAI from 'openai'; const openai = new OpenAI({ - apiKey: "pk-**********************************************", // For self-hosted version you can put anything - baseURL: "https://api.pawan.krd/v1", // For self-hosted version, use "http://localhost:3040/v1" + apiKey: "anything", + baseURL: "http://localhost:3040/v1", }); const chatCompletion = await openai.chat.completions.create({