first commit
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* 处方库与诊单 AI 报告(Dify / OpenAI-compatible)
|
||||
*
|
||||
* qwen/openai 分别使用各自的服务端凭据。凭据禁止下发到客户端或写入日志。
|
||||
*/
|
||||
return [
|
||||
'enable' => filter_var(
|
||||
env('prescription_ai.ENABLE', env('prescription_ai.enable', false)),
|
||||
FILTER_VALIDATE_BOOLEAN
|
||||
),
|
||||
'base_url' => rtrim((string) env(
|
||||
'prescription_ai.BASE_URL',
|
||||
env('prescription_ai.base_url', '')
|
||||
), '/'),
|
||||
'timeout' => (int) env(
|
||||
'prescription_ai.TIMEOUT',
|
||||
env('prescription_ai.timeout', 90)
|
||||
),
|
||||
'models' => [
|
||||
'qwen' => [
|
||||
'name' => 'qwen3.6-35b',
|
||||
'label' => '千问',
|
||||
'api_key' => (string) env(
|
||||
'prescription_ai.QWEN_API_KEY',
|
||||
env('prescription_ai.qwen_api_key', '')
|
||||
),
|
||||
],
|
||||
'openai' => [
|
||||
'name' => 'gpt-5.6-sol',
|
||||
'label' => 'OpenAI',
|
||||
'api_key' => (string) env(
|
||||
'prescription_ai.OPENAI_API_KEY',
|
||||
env('prescription_ai.openai_api_key', '')
|
||||
),
|
||||
],
|
||||
],
|
||||
];
|
||||
Reference in New Issue
Block a user