mirror of
https://github.com/jihe520/MathModelAgent.git
synced 2026-09-19 08:09:48 +08:00
mod ApiDialog.vue file,Add whitespace filtering: trim base URL and model ID, remove all spaces from API key
This commit is contained in:
@@ -29,6 +29,7 @@ MAX_RETRIES=5
|
||||
# E2B_API_KEY=
|
||||
SERVER_HOST=http://localhost:8000
|
||||
# 使用 email 注册账号从 https://openalex.org/ 文献
|
||||
# OPENALEX_EMAIL=example@example.com
|
||||
OPENALEX_EMAIL=
|
||||
|
||||
LOG_LEVEL=DEBUG
|
||||
|
||||
@@ -81,7 +81,7 @@ class MathModelWorkFlow(WorkFlow):
|
||||
notebook_serializer=notebook_serializer,
|
||||
timeout=3000,
|
||||
)
|
||||
|
||||
|
||||
scholar = OpenAlexScholar(task_id=self.task_id, email=settings.OPENALEX_EMAIL)
|
||||
|
||||
await redis_manager.publish_message(
|
||||
|
||||
@@ -267,7 +267,7 @@ const links = {
|
||||
<div class="space-y-1">
|
||||
<Label :for="`${config.key}-api-key`" class="text-xs text-muted-foreground">API Key</Label>
|
||||
<div class="flex items-center gap-2">
|
||||
<Input :id="`${config.key}-api-key`" v-model="(form as any)[config.key].apiKey" type="password"
|
||||
<Input :id="`${config.key}-api-key`" v-model.trim="(form as any)[config.key].apiKey" type="password"
|
||||
placeholder="请输入 API Key" class="h-7 text-xs flex-1" />
|
||||
<div v-if="validationResults[config.key as keyof typeof validationResults].message"
|
||||
class="flex items-center">
|
||||
@@ -280,12 +280,12 @@ const links = {
|
||||
<div class="grid grid-cols-2 gap-2">
|
||||
<div class="space-y-1">
|
||||
<Label :for="`${config.key}-base-url`" class="text-xs text-muted-foreground">Base URL</Label>
|
||||
<Input :id="`${config.key}-base-url`" v-model="(form as any)[config.key].baseUrl"
|
||||
<Input :id="`${config.key}-base-url`" v-model.trim="(form as any)[config.key].baseUrl"
|
||||
placeholder="https://api.deepseek.com" class="h-7 text-xs" />
|
||||
</div>
|
||||
<div class="space-y-1">
|
||||
<Label :for="`${config.key}-model-id`" class="text-xs text-muted-foreground">Model ID</Label>
|
||||
<Input :id="`${config.key}-model-id`" v-model="(form as any)[config.key].modelId"
|
||||
<Input :id="`${config.key}-model-id`" v-model.trim="(form as any)[config.key].modelId"
|
||||
placeholder="provider/model_id" class="h-7 text-xs" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user