You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# ChatGPT API Integration (in HTML/CSS with JS/PHP)
2
-
###### updated 25.04.2023 (works well)
2
+
###### Updated: 25.04.2023 (Working well)
3
3

4
4
5
-
Example for integration from GPT3, 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.
6
6
7
7
-[need free 'ChatGPT Comment reply' Plugin for WordPress?](https://github.com/VolkanSah/ChatGPT-Comments-Reply-WordPress-Plugin)
8
8
###### ChatGPT is interesting, let's use it to create a better world.
9
9
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.
11
11
12
12
## Prerequisites
13
13
- 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
21
21
- Store the API key safely, as you will need it in the next step.
22
22
23
23
## 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).
29
29
- Type a message in the chat input field and press Enter or click the Send button to send the message.
30
30
- 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.
33
32
## OpenAi-API Endpoints
34
33
**please change gptchat.php & config.php to your needs**
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.
51
47
## Screenshot
52
48
<imgsrc="screenshot.png">
53
49
54
50
## 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.
0 commit comments