Update README.md

This commit is contained in:
Pawan Osman
2024-04-03 09:07:13 +03:00
committed by GitHub
parent da67af3f40
commit 5db7fc433f
+3 -3
View File
@@ -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 leave it empty
openai.base_url = "https://api.pawan.krd/v1" # For self-hosted version, use "http://localhost:3040/v1"
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/"
completion = openai.chat.completions.create(
model="gpt-3.5-turbo",
@@ -126,7 +126,7 @@ print(completion.choices[0].message.content)
import { Configuration, OpenAIApi } from "openai";
const configuration = new Configuration({
apiKey: "pk-**********************************************", // For self-hosted version you can leave it empty
apiKey: "pk-**********************************************", // For self-hosted version you can put anything
basePath: "https://api.pawan.krd/v1", // For self-hosted version, use "http://localhost:3040/v1"
});