mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-15 05:12:49 +00:00
feat:gemini机器人添加代理参数
This commit is contained in:
parent
673053f181
commit
e3ce3bcfbe
@ -274,6 +274,7 @@ class SystemController extends AbstractController
|
||||
'qianwen_model',
|
||||
'gemini_key',
|
||||
'gemini_model',
|
||||
'gemini_agency',
|
||||
];
|
||||
|
||||
if ($type == 'save') {
|
||||
|
||||
@ -445,6 +445,7 @@ class BotReceiveMsgTask extends AbstractTask
|
||||
$extras = [
|
||||
'gemini_key' => $setting['gemini_key'],
|
||||
'gemini_model' => $setting['gemini_model'],
|
||||
'gemini_agency' => $setting['gemini_agency'],
|
||||
'server_url' => $serverUrl,
|
||||
];
|
||||
if (empty($extras['gemini_key'])) {
|
||||
|
||||
@ -87,6 +87,10 @@
|
||||
</Select>
|
||||
<div class="form-tip">{{$L('查看说明')}} <a href="https://ai.google.dev/models?hl=zh-cn" target="_blank">https://ai.google.dev/models?hl=zh-cn</a></div>
|
||||
</FormItem>
|
||||
<FormItem :label="$L('使用代理')" prop="gemini_agency">
|
||||
<Input :maxlength="500" v-model="formData.gemini_agency" :placeholder="$L('支持 http 或 socks 代理')"/>
|
||||
<div class="form-tip">{{$L('例如:http://proxy.com 或 socks5://proxy.com')}}</div>
|
||||
</FormItem>
|
||||
</div>
|
||||
</div>
|
||||
</Form>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user