Skip to content

Commit 1ea27f2

Browse files
authored
Update README.md
1 parent 6f7c1df commit 1ea27f2

File tree

1 file changed

+12
-16
lines changed

1 file changed

+12
-16
lines changed

README.md

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# ChatGPT API Integration (in HTML/CSS with JS/PHP)
2-
###### updated 25.04.2023 (works well)
2+
###### Updated: 25.04.2023 (Working well)
33
![Screenshot](chatgpt.png)
44

5-
Example for integration from GPT 3, 3.5 & 4 for your websites in HTML, CSS, JS & PHP
5+
#### Example of GPT-3, 3.5, and 4 integration for your websites using HTML, CSS, JS, and PHP.
66

77
- [need free 'ChatGPT Comment reply' Plugin for WordPress?](https://github.com/VolkanSah/ChatGPT-Comments-Reply-WordPress-Plugin)
88
###### ChatGPT is interesting, let's use it to create a better world.
99

10-
This README.md file guides you through the process of integrating the ChatGPT API into your PHP website, allowing you to set up chat functionality using OpenAI's API.
10+
This README.md file will guide you through the process of integrating the ChatGPT API into your PHP-based website, enabling chat functionality using OpenAI's API.
1111

1212
## Prerequisites
1313
- PHP 7.4 or higher installed on your web server
@@ -21,15 +21,14 @@ This README.md file guides you through the process of integrating the ChatGPT AP
2121
- Store the API key safely, as you will need it in the next step.
2222

2323
## Setting Up
24-
- clone or download this git
25-
- Replace YOUR_API_KEY and MODEL in 'config.php
26-
- Replace API_ENDPOINT URL in gptchat.php to your needs (see list below)
27-
- Upload the index.html, style.css, script.js, and gptchat.php files to your web server.
28-
- Access the index.html file in your browser (e.g., https://yourdomain.com/index.html).
24+
- Clone or download this repository.
25+
- Replace YOUR_API_KEY and MODEL in config.php.
26+
- Replace the API_ENDPOINT URL in gptchat.php according to your needs (see list below).
27+
- Upload index.html, style.css, script.js, and gptchat.php files to your web server.
28+
- Access index.html in your browser (e.g., https://yourdomain.com/index.html).
2929
- Type a message in the chat input field and press Enter or click the Send button to send the message.
3030
- The OpenAI API should respond with a message from the language model.
31-
- Be careful and set limits on your OpenAI Dashboard
32-
31+
- Be cautious and set limits on your OpenAI Dashboard.
3332
## OpenAi-API Endpoints
3433
**please change gptchat.php & config.php to your needs**
3534

@@ -44,16 +43,13 @@ ENDPOINT | MODEL NAME
4443
/v1/embeddings | text-embedding-ada-002, text-search-ada-doc-001
4544
/v1/moderations | text-moderation-stable, text-moderation-latest
4645

47-
48-
49-
That's it! You have successfully integrated the ChatGPT API into your PHP website. You can now customize the chat interface and improve the user experience as needed.
50-
46+
You've successfully integrated the ChatGPT API into your PHP website! Now, you can customize the chat interface and enhance the user experience as needed.
5147
## Screenshot
5248
<img src="screenshot.png">
5349

5450
## Thanks
55-
**Your support is appreciated, and I would be grateful if you could share this project with others, give it a "star" on GitHub, or become a sponsor.**
56-
51+
Thanks
52+
Your support is appreciated, and I would be grateful if you could share this project with others, give it a "star" on GitHub, or become a sponsor.
5753
## Copyright
5854
[S. Volkan Sah Kücükbudak](https://github.com/volkansah)
5955

0 commit comments

Comments
 (0)