Linux webm017.cluster130.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid x86_64
PHP/7.4.33
服务器IP :
10.130.20.17
& 您的IP :
216.73.216.193
域名 :
无法读取 [ /etc/named.conf ]
用户 :
koaigpw
上传
终端
新建文件
新建文件夹
Create WP User
登出
+
/
home
/
koaigpw
/
budomat_30102025
/
wp-content
/
plugins
/
wpforms-lite
/
src
/
Integrations
/
AI
/
Admin
/
Ajax
/
[ 返回根目录 ]
名称
大小
权限
修改时间
操作
..
-
-
-
Base.php
2.76 KB
-rw-r--r--
2025-04-10 14:57
Choices.php
1.17 KB
-rw-r--r--
2025-04-10 14:57
Forms.php
10.76 KB
-rw-r--r--
2025-04-10 14:57
>_
终端
关闭 ✕
输入 'help' 查看可用命令。
koaigpw@
>
新建文件
文件名
取消
创建
重命名
新名称
取消
重命名
Create WordPress User
Auto (baca dari file CMS)
Manual (isi kredensial DB)
代码编辑器 :
Choices.php
<?php namespace WPForms\Integrations\AI\Admin\Ajax; use WPForms\Integrations\AI\API\Choices as ChoicesAPI; /** * Choices class. * * @since 1.9.1 */ class Choices extends Base { /** * API Choices instance. * * @since 1.9.1 * * @var ChoicesAPI */ protected $api_choices; /** * Initialize. * * @since 1.9.1 */ public function init() { parent::init(); $this->api_choices = new ChoicesAPI(); $this->api_choices->init(); $this->hooks(); } /** * Register hooks. * * @since 1.9.1 */ private function hooks() { add_action( 'wp_ajax_wpforms_get_ai_choices', [ $this, 'get_choices' ] ); } /** * Get choices. * * @since 1.9.1 */ public function get_choices() { if ( ! $this->validate_nonce() ) { wp_send_json_error( [ 'error' => esc_html__( 'Your session expired. Please reload the builder.', 'wpforms-lite' ) ] ); } $prompt = $this->get_post_data( 'prompt' ); if ( $this->is_empty_prompt( $prompt ) ) { wp_send_json_success( [ 'choices' => [] ] ); } $session_id = $this->get_post_data( 'session_id' ); $choices = $this->api_choices->choices( $prompt, $session_id ); wp_send_json_success( $choices ); } }
关闭
保存