AI代码生成工具
This commit is contained in:
20
config/ai.php
Normal file
20
config/ai.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* AI 供应商环境回落配置(库内未配置密钥/地址时使用)
|
||||
*/
|
||||
return [
|
||||
'default_provider' => env('AI_DEFAULT_PROVIDER', 'deepseek'),
|
||||
'spark' => [
|
||||
'api_url' => env('SPARK_API_URL', 'https://spark-api-open.xf-yun.com/v1/chat/completions'),
|
||||
'password' => env('SPARK_API_PASSWORD', ''),
|
||||
'model' => env('SPARK_API_MODEL', 'lite'),
|
||||
'timeout' => (float) env('SPARK_API_TIMEOUT', 60),
|
||||
],
|
||||
'deepseek' => [
|
||||
'api_url' => env('DEEPSEEK_API_URL', 'https://api.deepseek.com/v1/chat/completions'),
|
||||
'api_key' => env('DEEPSEEK_API_KEY', ''),
|
||||
'model' => env('DEEPSEEK_API_MODEL', 'deepseek-chat'),
|
||||
'timeout' => (float) env('DEEPSEEK_API_TIMEOUT', 60),
|
||||
],
|
||||
];
|
||||
Reference in New Issue
Block a user