Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: VolkanSah/GPT-API-Integration-in-HTML-CSS-with-JS-PHP
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: Shairam/ChatGPT-API-Integration-in-HTML-CSS-with-JS-PHP
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on May 2, 2023

  1. Trial run on local machine

    Ramachandran Sritharan authored and Ramachandran Sritharan committed May 2, 2023
    Copy the full SHA
    67df09b View commit details
Showing with 4 additions and 1 deletion.
  1. +1 −1 config.php
  2. +3 −0 gptchat.php
2 changes: 1 addition & 1 deletion config.php
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
// Configuration file

// Define the OpenAI API key
define('OPENAI_API_KEY', 'sk-.................................');
define('OPENAI_API_KEY', 'sk-');
// Define the model to be used, for example: text-davinci-003
define('MODEL', 'text-davinci-003');
// Define the temperature setting for the model, a value between 0 and 1 (e.g., 0.9)
3 changes: 3 additions & 0 deletions gptchat.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<?php
header('Access-Control-Allow-Origin: *');
?>
<?php
// Set the content type of the response to JSON
header('Content-Type: application/json');