[AI]豆包大模型 

插件类型
接口插件 » 数据处理
插件标识
DoubaoSkycaiji
下载次数
11次
上线时间
2025-11-19
更新时间
2025-11-20

可调用豆包大模型:

Doubao-Seed-1.6
Doubao-Seed-1.6-vision
Doubao-Seed-1.6-thinking
Doubao-Seed-1.6-flash
Doubao-Seed-1.6-lite
Doubao-Seed-Code
Doubao-1.5-thinking-pro
DeepSeek-V3.1
Doubao-1.5-vision-pro
Doubao-1.5-UI-TARS
DeepSeek-R1
DeepSeek-V3
Doubao-1.5-pro-32k
Doubao-1.5-pro-256k
Doubao-1.5-lite-32k
Kimi-K2

<?php
namespace plugin\api\process;

/**
 * 豆包
 */
class DoubaoSkycaiji{
	/*最终数据配置*/
	public $_content = <<<EOF
[变量:返回数据]
EOF;
	/*操作流程配置*/
	public $_ops = array (
		array (
			'module' => 'variable',
			'config' =>array (
				'name' => '模型',
				'desc' => '',
				'module' => 'user',
				'user' =>array (
					'required' => '1',
					'global' => '1',
					'tag' => 'select',
					'tag_select' => 'doubao-seed-1-6-251015=Doubao-Seed-1.6
doubao-seed-1-6-vision-250815=Doubao-Seed-1.6-vision
doubao-seed-1-6-thinking-250715=Doubao-Seed-1.6-thinking
doubao-seed-1-6-flash-250828=Doubao-Seed-1.6-flash
doubao-seed-1-6-lite-251015=Doubao-Seed-1.6-lite
doubao-seed-code-preview-251028=Doubao-Seed-Code
doubao-1-5-thinking-pro-250415=Doubao-1.5-thinking-pro
deepseek-v3-1-terminus=DeepSeek-V3.1
doubao-1.5-vision-pro-250328=Doubao-1.5-vision-pro
doubao-1-5-ui-tars-250428=Doubao-1.5-UI-TARS
deepseek-r1-250528=DeepSeek-R1
deepseek-v3-250324=DeepSeek-V3
doubao-1-5-pro-32k-250115=Doubao-1.5-pro-32k
doubao-1-5-pro-256k-250115=Doubao-1.5-pro-256k
doubao-1-5-lite-32k-250115=Doubao-1.5-lite-32k
kimi-k2-250905=Kimi-K2',
					'default' => '',
				),
				'func' =>array (
					'open' => '0',
					'names' =>array (
					),
					'params' =>array (
					),
				),
			),
		), 
		array (
			'module' => 'variable',
			'config' =>array (
				'name' => 'API_KEY',
				'desc' => '火山引擎>火山方舟>API Key管理',
				'module' => 'user',
				'user' =>array (
					'required' => '1',
					'global' => '1',
					'tag' => 'text',
					'tag_select' => '',
					'default' => '',
				),
				'func' =>array (
					'open' => '0',
					'names' =>array (
					),
					'params' =>array (
					),
				),
			),
		), 
		array (
			'module' => 'variable',
			'config' =>array (
				'name' => '输入内容',
				'desc' => '',
				'module' => 'user',
				'user' =>array (
					'required' => '1',
					'global' => '0',
					'tag' => 'text',
					'tag_select' => '',
					'default' => '',
				),
				'func' =>array (
					'open' => '0',
					'names' =>array (
					),
					'params' =>array (
					),
				),
			),
		), 
		array (
			'module' => 'request',
			'config' =>array (
				'name' => 'api',
				'url' => 'https://ark.cn-beijing.volces.com/api/v3/chat/completions',
				'charset' => '',
				'charset_custom' => '',
				'encode' => '',
				'encode_custom' => '',
				'type' => 'post',
				'content_type' => 'application/json',
				'param_names' =>array (
					0 => 'messages.0.role',
					1 => 'messages.0.content',
					2 => 'model',
				),
				'param_vals' =>array (
					0 => 'user',
					1 => '[变量:输入内容]',
					2 => '[变量:模型]',
				),
				'header_names' =>array (
					0 => 'Authorization',
				),
				'header_vals' =>array (
					0 => 'Bearer [变量:API_KEY]',
				),
				'timeout' => '',
				'interval' => '',
				'wait' => '',
				'retry' => '',
				'cache' => '',
			),
		), 
		array (
			'module' => 'variable',
			'config' =>array (
				'name' => '返回数据',
				'desc' => '',
				'module' => 'extract',
				'extract' =>array (
					'source' => 'request:api',
					'type' => 'json',
					'json' => 'choices.0.message.content',
					'json_arr' => 'implode',
					'json_arr_implode' => '',
					'rule' => '',
					'rule_merge' => '',
					'rule_multi_str' => '',
					'xpath' => '',
					'xpath_attr' => '',
					'xpath_attr_custom' => '',
					'xpath_multi_str' => '',
				),
				'func' =>array (
					'open' => '0',
					'names' =>array (
					),
					'params' =>array (
					),
				),
			),
		),
	);
}