Update message.php

解决跨域问题,可以把message.php放到国外服务器,防止OpenAI接口屏蔽国内IP。
pull/6/head
dirk1983 4 years ago committed by GitHub
parent de0c65c0b5
commit 2906cd89da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,4 +1,5 @@
<?php
header( "Access-Control-Allow-Origin: *" );
header( "Content-Type: application/json" );
$context = json_decode( $_POST['context'] ?: "[]" ) ?: [];
$prompt = "";

Loading…
Cancel
Save