mirror of
https://github.com/APIParkLab/APIPark.git
synced 2026-06-14 20:41:15 +08:00
Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 885cec57db | |||
| 24c24c1307 | |||
| 08bd8a9942 | |||
| 6944260767 | |||
| 3ada2d1d9d | |||
| f83b8c74ca |
@@ -45,19 +45,18 @@ body:
|
|||||||
label: Steps to Reproduce
|
label: Steps to Reproduce
|
||||||
description: Share the steps you took so that we can reproduce the issue. Reports without proper steps details will likely be closed.
|
description: Share the steps you took so that we can reproduce the issue. Reports without proper steps details will likely be closed.
|
||||||
placeholder: |
|
placeholder: |
|
||||||
1. Run apinto via the Docker image.
|
1. Run APIPark via the Docker image.
|
||||||
2. Create a Route with the Admin API.
|
2. Try configuring ...
|
||||||
3. Try configuring ...
|
3. ...
|
||||||
4. ...
|
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: false
|
||||||
- type: textarea
|
- type: textarea
|
||||||
id: environment
|
id: environment
|
||||||
attributes:
|
attributes:
|
||||||
label: Environment
|
label: Environment
|
||||||
description: Share your environment details. Reports without proper environment details will likely be closed.
|
description: Share your environment details. Reports without proper environment details will likely be closed.
|
||||||
value: |
|
value: |
|
||||||
- APINTO Dashboard version (run `apinto dashboard version`):
|
- APINTO Dashboard version:
|
||||||
- Operating system (run `uname -a`):
|
- Operating system (run `uname -a`):
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
@@ -25,7 +25,7 @@ body:
|
|||||||
label: Environment
|
label: Environment
|
||||||
description: Share your environment details. Reports without proper environment details will likely be closed.
|
description: Share your environment details. Reports without proper environment details will likely be closed.
|
||||||
value: |
|
value: |
|
||||||
- APIPark version (run `apinto dashboard version`):
|
- APIPark version:
|
||||||
- Operating system (run `uname -a`):
|
- Operating system (run `uname -a`):
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
|
|
||||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
||||||
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
|
|
||||||
<svg version="1.1" id="_x32_" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
||||||
width="800px" height="800px" viewBox="0 0 512 512" xml:space="preserve">
|
|
||||||
<style type="text/css">
|
|
||||||
<![CDATA[
|
|
||||||
.st0{fill:#000000;}
|
|
||||||
]]>
|
|
||||||
</style>
|
|
||||||
<g>
|
|
||||||
<path class="st0" d="M485.016,220.691c12.422-8.422,22.188-57.266,7.797-87.016c-26.859,28.125-80.109,49.859-142,72.922
|
|
||||||
c-64.656,24.078-71.531,41.859-94.813,42.172c-23.297-0.313-30.156-18.094-94.813-42.172c-61.891-23.063-115.141-44.797-142-72.922
|
|
||||||
c-14.406,29.75-4.625,78.594,7.781,87.016C13.484,214.332,0,210.051,0,210.051s3.813,68.172,33.25,106.563
|
|
||||||
c24.953,32.547,86.984,72.906,145.828,58.828c62.219-14.875,62.344-41.406,76.922-41.266c14.563-0.141,14.688,26.391,76.906,41.266
|
|
||||||
c58.844,14.078,120.875-26.281,145.844-58.828C508.156,278.223,512,210.051,512,210.051S498.5,214.332,485.016,220.691z
|
|
||||||
M131.438,318.848c-25.109-11.641-46.063-37.422-43.188-73.891c12.813,5.078,48.844,9.406,69.094,17.281
|
|
||||||
c23,8.953,46.031,23.984,48.922,41.25C205.313,317.879,170.75,337.066,131.438,318.848z M380.563,318.848
|
|
||||||
c-39.344,18.219-73.875-0.969-74.828-15.359c2.891-17.266,25.891-32.297,48.922-41.25c20.25-7.875,56.281-12.203,69.094-17.281
|
|
||||||
C426.625,281.426,405.656,307.207,380.563,318.848z"/>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 1.4 KiB |
@@ -1,23 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
|
|
||||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
||||||
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
|
|
||||||
<svg version="1.1" id="_x32_" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
||||||
width="800px" height="800px" viewBox="0 0 512 512" xml:space="preserve">
|
|
||||||
<style type="text/css">
|
|
||||||
<![CDATA[
|
|
||||||
.st0{fill:#000000;}
|
|
||||||
]]>
|
|
||||||
</style>
|
|
||||||
<g>
|
|
||||||
<path class="st0" d="M485.016,220.691c12.422-8.422,22.188-57.266,7.797-87.016c-26.859,28.125-80.109,49.859-142,72.922
|
|
||||||
c-64.656,24.078-71.531,41.859-94.813,42.172c-23.297-0.313-30.156-18.094-94.813-42.172c-61.891-23.063-115.141-44.797-142-72.922
|
|
||||||
c-14.406,29.75-4.625,78.594,7.781,87.016C13.484,214.332,0,210.051,0,210.051s3.813,68.172,33.25,106.563
|
|
||||||
c24.953,32.547,86.984,72.906,145.828,58.828c62.219-14.875,62.344-41.406,76.922-41.266c14.563-0.141,14.688,26.391,76.906,41.266
|
|
||||||
c58.844,14.078,120.875-26.281,145.844-58.828C508.156,278.223,512,210.051,512,210.051S498.5,214.332,485.016,220.691z
|
|
||||||
M131.438,318.848c-25.109-11.641-46.063-37.422-43.188-73.891c12.813,5.078,48.844,9.406,69.094,17.281
|
|
||||||
c23,8.953,46.031,23.984,48.922,41.25C205.313,317.879,170.75,337.066,131.438,318.848z M380.563,318.848
|
|
||||||
c-39.344,18.219-73.875-0.969-74.828-15.359c2.891-17.266,25.891-32.297,48.922-41.25c20.25-7.875,56.281-12.203,69.094-17.281
|
|
||||||
C426.625,281.426,405.656,307.207,380.563,318.848z"/>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 1.4 KiB |
@@ -1,30 +0,0 @@
|
|||||||
provider: fakegpt
|
|
||||||
label:
|
|
||||||
en_US: FakeGPT
|
|
||||||
description:
|
|
||||||
en_US: FakeGPT is a fake model provider that does not actually connect to any model service. It is useful for testing and development purposes.
|
|
||||||
icon_small:
|
|
||||||
en_US: icon_s_en.svg
|
|
||||||
icon_large:
|
|
||||||
en_US: icon_l_en.svg
|
|
||||||
background: "#FCFDFF"
|
|
||||||
help:
|
|
||||||
title:
|
|
||||||
en_US: Get your Access Details from Google
|
|
||||||
url:
|
|
||||||
en_US: https://apipark.com
|
|
||||||
supported_model_types:
|
|
||||||
- llm
|
|
||||||
- text-embedding
|
|
||||||
configurate_methods:
|
|
||||||
- predefined-model
|
|
||||||
provider_credential_schema:
|
|
||||||
credential_form_schemas:
|
|
||||||
- variable: apikey
|
|
||||||
label:
|
|
||||||
en_US: API Key
|
|
||||||
type: secret-input
|
|
||||||
required: true
|
|
||||||
placeholder:
|
|
||||||
en_US: Enter your API key
|
|
||||||
address: https://apipark.com
|
|
||||||
@@ -1,51 +0,0 @@
|
|||||||
model: fakegpt-1.0
|
|
||||||
label:
|
|
||||||
en_US: FakeGPT 1.0
|
|
||||||
model_type: llm
|
|
||||||
features:
|
|
||||||
- agent-thought
|
|
||||||
- vision
|
|
||||||
model_properties:
|
|
||||||
mode: chat
|
|
||||||
context_size: 200000
|
|
||||||
parameter_rules:
|
|
||||||
- name: max_tokens
|
|
||||||
use_template: max_tokens
|
|
||||||
required: true
|
|
||||||
type: int
|
|
||||||
default: 4096
|
|
||||||
min: 1
|
|
||||||
max: 4096
|
|
||||||
help:
|
|
||||||
zh_Hans: 停止前生成的最大令牌数。
|
|
||||||
en_US: The maximum number of tokens to generate before stopping.
|
|
||||||
- name: temperature
|
|
||||||
use_template: temperature
|
|
||||||
required: false
|
|
||||||
type: float
|
|
||||||
default: 1
|
|
||||||
min: 0.0
|
|
||||||
max: 1.0
|
|
||||||
help:
|
|
||||||
zh_Hans: 生成内容的随机性。
|
|
||||||
en_US: The amount of randomness injected into the response.
|
|
||||||
- name: top_p
|
|
||||||
required: false
|
|
||||||
type: float
|
|
||||||
default: 0.999
|
|
||||||
min: 0.000
|
|
||||||
max: 1.000
|
|
||||||
help:
|
|
||||||
zh_Hans: 在核采样中,按概率递减顺序计算每个后续标记的所有选项的累积分布,并在达到 top_p 指定的特定概率时将其切断。您应该更改温度或top_p,但不能同时更改两者。
|
|
||||||
en_US: In nucleus sampling, computes the cumulative distribution over all the options for each subsequent token in decreasing probability order and cuts it off once it reaches a particular probability specified by top_p. You should alter either temperature or top_p, but not both.
|
|
||||||
- name: top_k
|
|
||||||
required: false
|
|
||||||
type: int
|
|
||||||
default: 0
|
|
||||||
min: 0
|
|
||||||
# tip docs from aws has error, max value is 500
|
|
||||||
max: 500
|
|
||||||
help:
|
|
||||||
zh_Hans: 对于每个后续标记,仅从前 K 个选项中进行采样。使用 top_k 删除长尾低概率响应。
|
|
||||||
en_US: Only sample from the top K options for each subsequent token. Use top_k to remove long tail low probability responses.
|
|
||||||
|
|
||||||
@@ -24,7 +24,7 @@ parameter_rules:
|
|||||||
use_template: presence_penalty
|
use_template: presence_penalty
|
||||||
- name: frequency_penalty
|
- name: frequency_penalty
|
||||||
use_template: frequency_penalty
|
use_template: frequency_penalty
|
||||||
- name: max_tokens
|
- name: max_output_tokens
|
||||||
use_template: max_tokens
|
use_template: max_tokens
|
||||||
required: true
|
required: true
|
||||||
default: 2048
|
default: 2048
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ parameter_rules:
|
|||||||
use_template: presence_penalty
|
use_template: presence_penalty
|
||||||
- name: frequency_penalty
|
- name: frequency_penalty
|
||||||
use_template: frequency_penalty
|
use_template: frequency_penalty
|
||||||
- name: max_tokens
|
- name: max_output_tokens
|
||||||
use_template: max_tokens
|
use_template: max_tokens
|
||||||
required: true
|
required: true
|
||||||
default: 8192
|
default: 8192
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ parameter_rules:
|
|||||||
use_template: presence_penalty
|
use_template: presence_penalty
|
||||||
- name: frequency_penalty
|
- name: frequency_penalty
|
||||||
use_template: frequency_penalty
|
use_template: frequency_penalty
|
||||||
- name: max_tokens
|
- name: max_output_tokens
|
||||||
use_template: max_tokens
|
use_template: max_tokens
|
||||||
required: true
|
required: true
|
||||||
default: 8192
|
default: 8192
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ parameter_rules:
|
|||||||
use_template: presence_penalty
|
use_template: presence_penalty
|
||||||
- name: frequency_penalty
|
- name: frequency_penalty
|
||||||
use_template: frequency_penalty
|
use_template: frequency_penalty
|
||||||
- name: max_tokens
|
- name: max_output_tokens
|
||||||
use_template: max_tokens
|
use_template: max_tokens
|
||||||
required: true
|
required: true
|
||||||
default: 8192
|
default: 8192
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ parameter_rules:
|
|||||||
use_template: presence_penalty
|
use_template: presence_penalty
|
||||||
- name: frequency_penalty
|
- name: frequency_penalty
|
||||||
use_template: frequency_penalty
|
use_template: frequency_penalty
|
||||||
- name: max_tokens
|
- name: max_output_tokens
|
||||||
use_template: max_tokens
|
use_template: max_tokens
|
||||||
required: true
|
required: true
|
||||||
default: 8192
|
default: 8192
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ parameter_rules:
|
|||||||
use_template: presence_penalty
|
use_template: presence_penalty
|
||||||
- name: frequency_penalty
|
- name: frequency_penalty
|
||||||
use_template: frequency_penalty
|
use_template: frequency_penalty
|
||||||
- name: max_tokens
|
- name: max_output_tokens
|
||||||
use_template: max_tokens
|
use_template: max_tokens
|
||||||
required: true
|
required: true
|
||||||
default: 8192
|
default: 8192
|
||||||
|
|||||||
+1
-1
@@ -24,7 +24,7 @@ parameter_rules:
|
|||||||
use_template: presence_penalty
|
use_template: presence_penalty
|
||||||
- name: frequency_penalty
|
- name: frequency_penalty
|
||||||
use_template: frequency_penalty
|
use_template: frequency_penalty
|
||||||
- name: max_tokens
|
- name: max_output_tokens
|
||||||
use_template: max_tokens
|
use_template: max_tokens
|
||||||
required: true
|
required: true
|
||||||
default: 8192
|
default: 8192
|
||||||
|
|||||||
+1
-1
@@ -24,7 +24,7 @@ parameter_rules:
|
|||||||
use_template: presence_penalty
|
use_template: presence_penalty
|
||||||
- name: frequency_penalty
|
- name: frequency_penalty
|
||||||
use_template: frequency_penalty
|
use_template: frequency_penalty
|
||||||
- name: max_tokens
|
- name: max_output_tokens
|
||||||
use_template: max_tokens
|
use_template: max_tokens
|
||||||
required: true
|
required: true
|
||||||
default: 8192
|
default: 8192
|
||||||
|
|||||||
@@ -30,4 +30,4 @@ provider_credential_schema:
|
|||||||
placeholder:
|
placeholder:
|
||||||
zh_Hans: 在此输入您的 API Key
|
zh_Hans: 在此输入您的 API Key
|
||||||
en_US: Enter your API Key
|
en_US: Enter your API Key
|
||||||
address: https://api.openai.com
|
address: https://api.360.cn
|
||||||
@@ -4,7 +4,7 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/urfave/cli/v2"
|
"github.com/urfave/cli"
|
||||||
)
|
)
|
||||||
|
|
||||||
// These should be set via go build -ldflags -X 'xxxx'.
|
// These should be set via go build -ldflags -X 'xxxx'.
|
||||||
@@ -20,7 +20,7 @@ var profileInfo []byte
|
|||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
buffer := &bytes.Buffer{}
|
buffer := &bytes.Buffer{}
|
||||||
fmt.Fprintf(buffer, "Apinto version: %s\n", Version)
|
fmt.Fprintf(buffer, "APIPark version: %s\n", Version)
|
||||||
fmt.Fprintf(buffer, "Golang version: %s\n", goVersion)
|
fmt.Fprintf(buffer, "Golang version: %s\n", goVersion)
|
||||||
fmt.Fprintf(buffer, "Git commit hash: %s\n", gitCommit)
|
fmt.Fprintf(buffer, "Git commit hash: %s\n", gitCommit)
|
||||||
fmt.Fprintf(buffer, "Built on: %s\n", BuildTime)
|
fmt.Fprintf(buffer, "Built on: %s\n", BuildTime)
|
||||||
|
|||||||
@@ -319,12 +319,12 @@ func (i *imlInitController) OnInit() {
|
|||||||
}
|
}
|
||||||
func (i *imlInitController) createAIService(ctx context.Context, teamID string, input *service_dto.CreateService) error {
|
func (i *imlInitController) createAIService(ctx context.Context, teamID string, input *service_dto.CreateService) error {
|
||||||
|
|
||||||
providerId := "fakegpt"
|
providerId := "openai"
|
||||||
err := i.providerModule.UpdateProviderConfig(ctx, providerId, &ai_dto.UpdateConfig{
|
err := i.providerModule.UpdateProviderConfig(ctx, "openai", &ai_dto.UpdateConfig{
|
||||||
Config: "{\n \"apikey\": \"xxx\" \n}",
|
Config: "{\n \"openai_api_base\": \"API Base\",\n \"openai_api_key\": \"API Key\",\n \"openai_organization\": \"Organization\"\n}",
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("update %s config error: %v", providerId, err)
|
return fmt.Errorf("update openai config error: %v", err)
|
||||||
}
|
}
|
||||||
input.Provider = &providerId
|
input.Provider = &providerId
|
||||||
if input.Id == "" {
|
if input.Id == "" {
|
||||||
|
|||||||
+5
-12
@@ -1,17 +1,10 @@
|
|||||||
# 部署
|
# 部署
|
||||||
|
|
||||||
## 安装依赖
|
## 安装依赖
|
||||||
建议使用 pnpm
|
建议使用pnpm
|
||||||
```
|
`npm install -g pnpm`
|
||||||
npm install -g pnpm
|
使用pnpm安装依赖
|
||||||
```
|
`pnpm install`
|
||||||
|
|
||||||
使用pnpm安装依赖
|
|
||||||
```
|
|
||||||
pnpm install
|
|
||||||
```
|
|
||||||
|
|
||||||
## 编译
|
## 编译
|
||||||
```
|
`pnpm run build`
|
||||||
pnpm run build
|
|
||||||
```
|
|
||||||
@@ -1,15 +1,19 @@
|
|||||||
import {
|
import {
|
||||||
|
ConfigProvider,
|
||||||
|
Dropdown,
|
||||||
MenuProps,
|
MenuProps,
|
||||||
App,
|
App,
|
||||||
Button,
|
Button} from 'antd';
|
||||||
ConfigProvider,
|
|
||||||
Dropdown} from 'antd';
|
|
||||||
import { Outlet, useLocation, useNavigate} from "react-router-dom";
|
|
||||||
import Logo from '@common/assets/layout-logo.png';
|
import Logo from '@common/assets/layout-logo.png';
|
||||||
import AvatarPic from '@common/assets/default-avatar.png'
|
import AvatarPic from '@common/assets/default-avatar.png'
|
||||||
import { useEffect, useMemo, useState} from "react";
|
import {Outlet, useLocation, useNavigate} from "react-router-dom";
|
||||||
|
import { useEffect, useMemo, useState} from "react";
|
||||||
import { useGlobalContext } from '@common/contexts/GlobalStateContext.tsx';
|
import { useGlobalContext } from '@common/contexts/GlobalStateContext.tsx';
|
||||||
import { PERMISSION_DEFINITION } from '@common/const/permissions.ts';
|
import { PERMISSION_DEFINITION } from '@common/const/permissions.ts';
|
||||||
|
import {
|
||||||
|
ProConfigProvider,
|
||||||
|
ProLayout,
|
||||||
|
} from '@ant-design/pro-components';
|
||||||
import { BasicResponse, RESPONSE_TIPS, routerKeyMap, STATUS_CODE } from '@common/const/const.tsx';
|
import { BasicResponse, RESPONSE_TIPS, routerKeyMap, STATUS_CODE } from '@common/const/const.tsx';
|
||||||
import { UserInfoType } from '@common/const/type.ts';
|
import { UserInfoType } from '@common/const/type.ts';
|
||||||
import { useFetch } from '@common/hooks/http.ts';
|
import { useFetch } from '@common/hooks/http.ts';
|
||||||
@@ -17,7 +21,6 @@ import { ProjectFilled } from '@ant-design/icons';
|
|||||||
import { getNavItem } from '@common/utils/navigation';
|
import { getNavItem } from '@common/utils/navigation';
|
||||||
import { Icon } from '@iconify/react';
|
import { Icon } from '@iconify/react';
|
||||||
import { $t } from '@common/locales';
|
import { $t } from '@common/locales';
|
||||||
import { ProConfigProvider, ProLayout } from '@ant-design/pro-components';
|
|
||||||
import LanguageSetting from './LanguageSetting';
|
import LanguageSetting from './LanguageSetting';
|
||||||
|
|
||||||
const APP_MODE = import.meta.env.VITE_APP_MODE;
|
const APP_MODE = import.meta.env.VITE_APP_MODE;
|
||||||
@@ -38,8 +41,9 @@ const themeToken = {
|
|||||||
const navigator = useNavigate()
|
const navigator = useNavigate()
|
||||||
const location = useLocation()
|
const location = useLocation()
|
||||||
const currentUrl = location.pathname
|
const currentUrl = location.pathname
|
||||||
const { state,accessData,checkPermission,accessInit,dispatch,resetAccess,getGlobalAccessData} = useGlobalContext()
|
const { state,accessData,checkPermission,accessInit} = useGlobalContext()
|
||||||
const [pathname, setPathname] = useState(currentUrl); const mainPage = project === 'core' ?'/service/list':'/serviceHub/list'
|
const [pathname, setPathname] = useState(currentUrl);
|
||||||
|
const mainPage = project === 'core' ?'/service/list':'/serviceHub/list'
|
||||||
|
|
||||||
const TOTAL_MENU_ITEMS:MenuProps['items'] = useMemo(() => [
|
const TOTAL_MENU_ITEMS:MenuProps['items'] = useMemo(() => [
|
||||||
getNavItem($t('工作空间'), 'workspace','/guide/page',<Icon icon="ic:baseline-space-dashboard" width="18" height="18"/>, [
|
getNavItem($t('工作空间'), 'workspace','/guide/page',<Icon icon="ic:baseline-space-dashboard" width="18" height="18"/>, [
|
||||||
@@ -122,6 +126,7 @@ const themeToken = {
|
|||||||
|
|
||||||
|
|
||||||
const { message } = App.useApp()
|
const { message } = App.useApp()
|
||||||
|
const { dispatch,resetAccess,getGlobalAccessData} = useGlobalContext()
|
||||||
const [userInfo,setUserInfo] = useState<UserInfoType>()
|
const [userInfo,setUserInfo] = useState<UserInfoType>()
|
||||||
const {fetchData} = useFetch()
|
const {fetchData} = useFetch()
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
@@ -158,8 +163,8 @@ const themeToken = {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
const items: MenuProps['items'] = useMemo(() => [
|
const items: MenuProps['items'] = [
|
||||||
userInfo?.type !== 'guest' && {
|
{
|
||||||
key: '2',
|
key: '2',
|
||||||
label: (
|
label: (
|
||||||
<Button key="changePsw" type="text" className="flex items-center p-0 bg-transparent border-none " onClick={()=>navigator('/userProfile/changepsw')}>
|
<Button key="changePsw" type="text" className="flex items-center p-0 bg-transparent border-none " onClick={()=>navigator('/userProfile/changepsw')}>
|
||||||
@@ -173,7 +178,7 @@ const themeToken = {
|
|||||||
{$t('退出登录')}
|
{$t('退出登录')}
|
||||||
</Button>)
|
</Button>)
|
||||||
},
|
},
|
||||||
].filter(Boolean), [userInfo]);
|
];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -137,20 +137,6 @@ export const TranslateWord = ()=>{
|
|||||||
{$t('鉴权数量')}
|
{$t('鉴权数量')}
|
||||||
{$t('列表')}
|
{$t('列表')}
|
||||||
{$t('块')}
|
{$t('块')}
|
||||||
{$t('HTTP 请求头')}
|
|
||||||
{$t('全等匹配')}
|
|
||||||
{$t('前缀匹配')}
|
|
||||||
{$t('后缀匹配')}
|
|
||||||
{$t('子串匹配')}
|
|
||||||
{$t('非等匹配')}
|
|
||||||
{$t('空值匹配')}
|
|
||||||
{$t('存在匹配')}
|
|
||||||
{$t('区分大小写的正则匹配')}
|
|
||||||
{$t('不区分大小写的正则匹配')}
|
|
||||||
{$t('任意匹配')}
|
|
||||||
{$t('驳回')}
|
|
||||||
{$t('已订阅')}
|
|
||||||
{$t('取消申请')}
|
|
||||||
|
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -7,8 +7,6 @@ export type UserInfoType = {
|
|||||||
email: string
|
email: string
|
||||||
phone: string
|
phone: string
|
||||||
avatar: string
|
avatar: string
|
||||||
type:string
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type UserProfileProps = {
|
export type UserProfileProps = {
|
||||||
|
|||||||
@@ -212,20 +212,6 @@
|
|||||||
"鉴权数量": "Ka701316",
|
"鉴权数量": "Ka701316",
|
||||||
"列表": "K9eaa2eb6",
|
"列表": "K9eaa2eb6",
|
||||||
"块": "Kfaec39e9",
|
"块": "Kfaec39e9",
|
||||||
"HTTP 请求头": "K76036e25",
|
|
||||||
"全等匹配": "K44607e3f",
|
|
||||||
"前缀匹配": "Kc287500a",
|
|
||||||
"后缀匹配": "Kfc0b1147",
|
|
||||||
"子串匹配": "Ka4a92043",
|
|
||||||
"非等匹配": "K30b2e44f",
|
|
||||||
"空值匹配": "Kb1587991",
|
|
||||||
"存在匹配": "K1e97dbd8",
|
|
||||||
"区分大小写的正则匹配": "K87c5a801",
|
|
||||||
"不区分大小写的正则匹配": "K95f062f1",
|
|
||||||
"任意匹配": "Kfbd230a5",
|
|
||||||
"驳回": "Kd85208a3",
|
|
||||||
"已订阅": "Kad6aa439",
|
|
||||||
"取消申请": "K9a68443b",
|
|
||||||
"暂无操作权限,请联系管理员分配。": "K23fda291",
|
"暂无操作权限,请联系管理员分配。": "K23fda291",
|
||||||
"微信小程序": "K4618cb0a",
|
"微信小程序": "K4618cb0a",
|
||||||
"获取文件,需填路径": "Ka854f511",
|
"获取文件,需填路径": "Ka854f511",
|
||||||
@@ -641,10 +627,10 @@
|
|||||||
"搜索服务": "K66ea2f0",
|
"搜索服务": "K66ea2f0",
|
||||||
"审核中": "K8adf7f8b",
|
"审核中": "K8adf7f8b",
|
||||||
"添加消费者": "K84c4dc71",
|
"添加消费者": "K84c4dc71",
|
||||||
"暂无消费者描述": "Kc3b7bfa8",
|
"暂无服务描述": "Ka4b45550",
|
||||||
"创建并管理自己的消费者实体,每个消费者可以订阅多个API服务,确保在调用之前已获得相应权限。你可以为消费者生成 API 密钥等鉴权方式,用于安全地调用 API 服务": "K5c4e2865",
|
"创建并管理自己的消费者实体,每个消费者可以订阅多个API服务,确保在调用之前已获得相应权限。你可以为消费者生成 API 密钥等鉴权方式,用于安全地调用 API 服务": "K5c4e2865",
|
||||||
"订阅的服务数量:已通过 (0) 个,申请中 (1) 个": "K3c7b175f",
|
"订阅的服务数量:已通过 (0) 个,申请中 (1) 个": "K3c7b175f",
|
||||||
"输入名称、ID 查找消费者": "K3a6f905d",
|
"输入名称、ID 查找服务": "K40a89bd8",
|
||||||
"退出测试": "Kbe3e9335",
|
"退出测试": "Kbe3e9335",
|
||||||
"服务市场": "K370a3eb2",
|
"服务市场": "K370a3eb2",
|
||||||
"服务详情": "Kf7ec36d",
|
"服务详情": "Kf7ec36d",
|
||||||
@@ -659,7 +645,6 @@
|
|||||||
"版本": "K81634069",
|
"版本": "K81634069",
|
||||||
"更新时间": "Keefda53d",
|
"更新时间": "Keefda53d",
|
||||||
"无标签": "K96a2f1c8",
|
"无标签": "K96a2f1c8",
|
||||||
"暂无服务描述": "Ka4b45550",
|
|
||||||
"API 数量": "K72b0c0b3",
|
"API 数量": "K72b0c0b3",
|
||||||
"接入消费者数量": "K70b79760",
|
"接入消费者数量": "K70b79760",
|
||||||
"关联标签": "K96059c69",
|
"关联标签": "K96059c69",
|
||||||
|
|||||||
@@ -580,8 +580,8 @@
|
|||||||
"Kd7d84192": "Name",
|
"Kd7d84192": "Name",
|
||||||
"Kc88e03b6": "Team Roles",
|
"Kc88e03b6": "Team Roles",
|
||||||
"Ke08ff808": "Addition Date",
|
"Ke08ff808": "Addition Date",
|
||||||
"K19a3ebe0": "Success",
|
"K19a3ebe0": "Successful Requests",
|
||||||
"Kcaa8259": "Success",
|
"Kcaa8259": "Successful Forwards",
|
||||||
"K17f93984": "API",
|
"K17f93984": "API",
|
||||||
"K888f038f": "Failed Status Code Count",
|
"K888f038f": "Failed Status Code Count",
|
||||||
"Ke792d01c": "Service Association",
|
"Ke792d01c": "Service Association",
|
||||||
@@ -607,7 +607,7 @@
|
|||||||
"Ke108c369": "Success",
|
"Ke108c369": "Success",
|
||||||
"K9168d3e": "Redirecting to Login Page",
|
"K9168d3e": "Redirecting to Login Page",
|
||||||
"K2f8a7ab7": "Review Comments Not Provided",
|
"K2f8a7ab7": "Review Comments Not Provided",
|
||||||
"Kb858d78a": "Copied",
|
"Kb858d78a": "Copy Successful",
|
||||||
"K26e85d15": "Copy Failed, Please Copy Manually",
|
"K26e85d15": "Copy Failed, Please Copy Manually",
|
||||||
"Kd60d204": "Service Team",
|
"Kd60d204": "Service Team",
|
||||||
"K823bfe63": "Online",
|
"K823bfe63": "Online",
|
||||||
@@ -654,7 +654,5 @@
|
|||||||
"K6e32a344": "Number of Services",
|
"K6e32a344": "Number of Services",
|
||||||
"Ka701316": "Number of Auths",
|
"Ka701316": "Number of Auths",
|
||||||
"K9eaa2eb6": "List",
|
"K9eaa2eb6": "List",
|
||||||
"Kfaec39e9": "Block",
|
"Kfaec39e9": "Block"
|
||||||
"Kc3b7bfa8": "No Consumer Description",
|
|
||||||
"K3a6f905d": "Enter Name, ID to Search Consumer"
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -672,11 +672,8 @@
|
|||||||
"K67b530f": "コンシューマー名",
|
"K67b530f": "コンシューマー名",
|
||||||
"K11f34de": "コンシューマー ID",
|
"K11f34de": "コンシューマー ID",
|
||||||
"Kc01002": "コンシューマーを削除",
|
"Kc01002": "コンシューマーを削除",
|
||||||
|
"K84c4dc71": "コンシューマーエンティティを作成および管理し、各コンシューマーは複数の API サービスにサブスクライブできます。呼び出し前に適切な権限が付与されていることを確認してください。コンシューマー用に API キーなどの認証方法を生成して、安全に API サービスを呼び出せます。",
|
||||||
"K40a89bd8": "名前または ID を入力してサービスを検索",
|
"K40a89bd8": "名前または ID を入力してサービスを検索",
|
||||||
"Kba74f26d": "コンシューマーを接続",
|
"Kba74f26d": "コンシューマーを接続",
|
||||||
"K70b79760": "接続コンシューマー数",
|
"K70b79760": "接続コンシューマー数"
|
||||||
"K5c4e2865": "コンシューマーエンティティを作成および管理し、各コンシューマーは複数の API サービスにサブスクライブできます。呼び出し前に適切な権限が付与されていることを確認してください。コンシューマー用に API キーなどの認証方法を生成して、安全に API サービスを呼び出せます。",
|
|
||||||
"K84c4dc71": "コンシューマーを追加",
|
|
||||||
"Kc3b7bfa8": "コンシューマーの説明がありません",
|
|
||||||
"K3a6f905d": "名前、IDを入力してコンシューマーを検索"
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,16 +1 @@
|
|||||||
{
|
{}
|
||||||
"K76036e25": "HTTP 请求头",
|
|
||||||
"K44607e3f": "全等匹配",
|
|
||||||
"Kc287500a": "前缀匹配",
|
|
||||||
"Kfc0b1147": "后缀匹配",
|
|
||||||
"Ka4a92043": "子串匹配",
|
|
||||||
"K30b2e44f": "非等匹配",
|
|
||||||
"Kb1587991": "空值匹配",
|
|
||||||
"K1e97dbd8": "存在匹配",
|
|
||||||
"K87c5a801": "区分大小写的正则匹配",
|
|
||||||
"K95f062f1": "不区分大小写的正则匹配",
|
|
||||||
"Kfbd230a5": "任意匹配",
|
|
||||||
"Kd85208a3": "驳回",
|
|
||||||
"Kad6aa439": "已订阅",
|
|
||||||
"K9a68443b": "取消申请"
|
|
||||||
}
|
|
||||||
@@ -1,16 +1,32 @@
|
|||||||
{
|
{
|
||||||
"K76036e25": "HTTP 请求头",
|
"K7acfcfad": "消费者",
|
||||||
"K44607e3f": "全等匹配",
|
"Kc8054dba": "消费者开发者",
|
||||||
"Kc287500a": "前缀匹配",
|
"Keb1673a6": "消费者管理员",
|
||||||
"Kfc0b1147": "后缀匹配",
|
"K1fc2cc28": "无需审核:允许任何消费者调用该服务",
|
||||||
"Ka4a92043": "子串匹配",
|
"K8dabb98e": "人工审核:仅允许通过人工审核的消费者调用该服务",
|
||||||
"K30b2e44f": "非等匹配",
|
"K7c1fb123": "申请方-消费者",
|
||||||
"Kb1587991": "空值匹配",
|
"K93c2696e": "上线结果",
|
||||||
"K1e97dbd8": "存在匹配",
|
"K6e32a344": "订阅服务数量",
|
||||||
"K87c5a801": "区分大小写的正则匹配",
|
"Ka701316": "鉴权数量",
|
||||||
"K95f062f1": "不区分大小写的正则匹配",
|
"K9eaa2eb6": "列表",
|
||||||
"Kfbd230a5": "任意匹配",
|
"Kfaec39e9": "块",
|
||||||
"Kd85208a3": "驳回",
|
"Kdea9a418": "为了安全地调用 API,你需要创建一个消费者以及Token。",
|
||||||
"Kad6aa439": "已订阅",
|
"Keee27105": "团队中包含了人员、消费者和服务,不同团队之间的消费者和服务数据是隔离的,可用于管理企业内部不同的部门/项目组/团队。",
|
||||||
"K9a68443b": "取消申请"
|
"Kaa717866": "提供服务的团队可以审核来自其他团队的订阅申请,审核通过后的消费者才可发起 API 请求。",
|
||||||
|
"Kd2c34e2c": "AI 服务",
|
||||||
|
"K62840d62": "REST 服务",
|
||||||
|
"K4c72fb6f": "设置团队和成员,然后你可以在团队内创建服务和消费者、订阅API,成员只能看到所属团队内的服务和消费者。",
|
||||||
|
"K61cca533": "消费者调用统计",
|
||||||
|
"Kdfff59d4": "请选择消费者",
|
||||||
|
"K386857bd": "消费者调用量 Top10",
|
||||||
|
"Kb684c806": "搜索或选择消费者",
|
||||||
|
"Ke0fbd1c8": "消费者管理",
|
||||||
|
"K67b530f": "消费者名称",
|
||||||
|
"K11f34de": "消费者 ID",
|
||||||
|
"Kc01002": "删除消费者",
|
||||||
|
"K84c4dc71": "添加消费者",
|
||||||
|
"K5c4e2865": "创建并管理自己的消费者实体,每个消费者可以订阅多个API服务,确保在调用之前已获得相应权限。你可以为消费者生成 API 密钥等鉴权方式,用于安全地调用 API 服务",
|
||||||
|
"K40a89bd8": "输入名称、ID 查找服务",
|
||||||
|
"Kba74f26d": "接入消费者",
|
||||||
|
"K70b79760": "接入消费者数量"
|
||||||
}
|
}
|
||||||
@@ -1,18 +1,7 @@
|
|||||||
{
|
{
|
||||||
"K76036e25": "HTTP 请求头",
|
"K93c2696e": "上线结果",
|
||||||
"K44607e3f": "全等匹配",
|
"K6e32a344": "订阅服务数量",
|
||||||
"Kc287500a": "前缀匹配",
|
"Ka701316": "鉴权数量",
|
||||||
"Kfc0b1147": "后缀匹配",
|
"K9eaa2eb6": "列表",
|
||||||
"Ka4a92043": "子串匹配",
|
"Kfaec39e9": "块"
|
||||||
"K30b2e44f": "非等匹配",
|
|
||||||
"Kb1587991": "空值匹配",
|
|
||||||
"K1e97dbd8": "存在匹配",
|
|
||||||
"K87c5a801": "区分大小写的正则匹配",
|
|
||||||
"K95f062f1": "不区分大小写的正则匹配",
|
|
||||||
"Kfbd230a5": "任意匹配",
|
|
||||||
"Kd85208a3": "驳回",
|
|
||||||
"Kad6aa439": "已订阅",
|
|
||||||
"K9a68443b": "取消申请",
|
|
||||||
"Kc3b7bfa8": "暂无消费者描述",
|
|
||||||
"K3a6f905d": "输入名称、ID 查找消费者"
|
|
||||||
}
|
}
|
||||||
@@ -1,16 +1,32 @@
|
|||||||
{
|
{
|
||||||
"K76036e25": "HTTP 请求头",
|
"K7acfcfad": "消费者",
|
||||||
"K44607e3f": "全等匹配",
|
"Kc8054dba": "消费者开发者",
|
||||||
"Kc287500a": "前缀匹配",
|
"Keb1673a6": "消费者管理员",
|
||||||
"Kfc0b1147": "后缀匹配",
|
"K1fc2cc28": "无需审核:允许任何消费者调用该服务",
|
||||||
"Ka4a92043": "子串匹配",
|
"K8dabb98e": "人工审核:仅允许通过人工审核的消费者调用该服务",
|
||||||
"K30b2e44f": "非等匹配",
|
"K7c1fb123": "申请方-消费者",
|
||||||
"Kb1587991": "空值匹配",
|
"K93c2696e": "上线结果",
|
||||||
"K1e97dbd8": "存在匹配",
|
"K6e32a344": "订阅服务数量",
|
||||||
"K87c5a801": "区分大小写的正则匹配",
|
"Ka701316": "鉴权数量",
|
||||||
"K95f062f1": "不区分大小写的正则匹配",
|
"K9eaa2eb6": "列表",
|
||||||
"Kfbd230a5": "任意匹配",
|
"Kfaec39e9": "块",
|
||||||
"Kd85208a3": "驳回",
|
"Kdea9a418": "为了安全地调用 API,你需要创建一个消费者以及Token。",
|
||||||
"Kad6aa439": "已订阅",
|
"Keee27105": "团队中包含了人员、消费者和服务,不同团队之间的消费者和服务数据是隔离的,可用于管理企业内部不同的部门/项目组/团队。",
|
||||||
"K9a68443b": "取消申请"
|
"Kaa717866": "提供服务的团队可以审核来自其他团队的订阅申请,审核通过后的消费者才可发起 API 请求。",
|
||||||
|
"Kd2c34e2c": "AI 服务",
|
||||||
|
"K62840d62": "REST 服务",
|
||||||
|
"K4c72fb6f": "设置团队和成员,然后你可以在团队内创建服务和消费者、订阅API,成员只能看到所属团队内的服务和消费者。",
|
||||||
|
"K61cca533": "消费者调用统计",
|
||||||
|
"Kdfff59d4": "请选择消费者",
|
||||||
|
"K386857bd": "消费者调用量 Top10",
|
||||||
|
"Kb684c806": "搜索或选择消费者",
|
||||||
|
"Ke0fbd1c8": "消费者管理",
|
||||||
|
"K67b530f": "消费者名称",
|
||||||
|
"K11f34de": "消费者 ID",
|
||||||
|
"Kc01002": "删除消费者",
|
||||||
|
"K84c4dc71": "添加消费者",
|
||||||
|
"K5c4e2865": "创建并管理自己的消费者实体,每个消费者可以订阅多个API服务,确保在调用之前已获得相应权限。你可以为消费者生成 API 密钥等鉴权方式,用于安全地调用 API 服务",
|
||||||
|
"K40a89bd8": "输入名称、ID 查找服务",
|
||||||
|
"Kba74f26d": "接入消费者",
|
||||||
|
"K70b79760": "接入消费者数量"
|
||||||
}
|
}
|
||||||
@@ -1,3 +1,24 @@
|
|||||||
{
|
{
|
||||||
"K40a89bd8": "Enter Name, ID to Search Member"
|
"Kfe93ef35": "Application",
|
||||||
|
"Kffd7e274": "No Review: All applications are allowed to subscribe to this service",
|
||||||
|
"K8a8b13e4": "Manual Review: Only reviewed and approved applications can subscribe to this service",
|
||||||
|
"K9bdd8403": "To securely call APIs, you need to create an application and a token.",
|
||||||
|
"Kc8239422": "Teams include personnel, applications, and services. Data between different teams is isolated, and can be used to manage different departments/project teams/teams within the enterprise.",
|
||||||
|
"Ka0a8840a": "Review subscription requests from other applications. Only approved requests can initiate API calls.",
|
||||||
|
"K5ece3bac": "Set up teams and members. You can then create services and applications, subscribe to APIs within the team. Members can only see services and applications within their team.",
|
||||||
|
"K1512e983": "Application Call Statistics",
|
||||||
|
"Kb4d2007f": "Please Select Application",
|
||||||
|
"Kc0915603": "Application Top 10",
|
||||||
|
"Kd8a7a689": "Search or Select Application",
|
||||||
|
"Kb7e869a4": "Application Settings",
|
||||||
|
"K5168eb63": "Application Name",
|
||||||
|
"K546e46f": "Application ID",
|
||||||
|
"K95764d1d": "Delete Application",
|
||||||
|
"K667bbbe7": "Add Application",
|
||||||
|
"K8723422e": "Access Application",
|
||||||
|
"K93d5a66e": "Number of Access Applications",
|
||||||
|
"K216a1ac7": "Application Developer",
|
||||||
|
"K27924db": "Application Administrator",
|
||||||
|
"Kd55c6887": "Review",
|
||||||
|
"K831aa6c0": "Applicant - Application"
|
||||||
}
|
}
|
||||||
@@ -20,6 +20,5 @@
|
|||||||
"K216a1ac7": "アプリケーション開発者",
|
"K216a1ac7": "アプリケーション開発者",
|
||||||
"K27924db": "アプリケーション管理者",
|
"K27924db": "アプリケーション管理者",
|
||||||
"Kd55c6887": "レビュー",
|
"Kd55c6887": "レビュー",
|
||||||
"K831aa6c0": "申請元-アプリケーション",
|
"K831aa6c0": "申請元-アプリケーション"
|
||||||
"K40a89bd8": "名前または ID を入力してサービスを検索"
|
|
||||||
}
|
}
|
||||||
@@ -20,6 +20,5 @@
|
|||||||
"K216a1ac7": "消费者开发者",
|
"K216a1ac7": "消费者开发者",
|
||||||
"K27924db": "消费者管理员",
|
"K27924db": "消费者管理员",
|
||||||
"Kd55c6887": "审核",
|
"Kd55c6887": "审核",
|
||||||
"K831aa6c0": "申请方-消费者",
|
"K831aa6c0": "申请方-消费者"
|
||||||
"K40a89bd8": "输入名称、ID 查找服务"
|
|
||||||
}
|
}
|
||||||
@@ -20,6 +20,5 @@
|
|||||||
"K216a1ac7": "應用程式開發者",
|
"K216a1ac7": "應用程式開發者",
|
||||||
"K27924db": "應用程式管理員",
|
"K27924db": "應用程式管理員",
|
||||||
"Kd55c6887": "審核",
|
"Kd55c6887": "審核",
|
||||||
"K831aa6c0": "申請方-應用程式",
|
"K831aa6c0": "申請方-應用程式"
|
||||||
"K40a89bd8": "輸入名稱、ID 查找服務"
|
|
||||||
}
|
}
|
||||||
@@ -676,7 +676,5 @@
|
|||||||
"K5c4e2865": "創建並管理自己的消費者實體,每個消費者可以訂閱多個API服務,確保在調用之前已獲得相應權限。你可以為消費者生成 API 密鑰等鑒權方式,用於安全地調用 API 服務",
|
"K5c4e2865": "創建並管理自己的消費者實體,每個消費者可以訂閱多個API服務,確保在調用之前已獲得相應權限。你可以為消費者生成 API 密鑰等鑒權方式,用於安全地調用 API 服務",
|
||||||
"K40a89bd8": "輸入名稱、ID 查找服務",
|
"K40a89bd8": "輸入名稱、ID 查找服務",
|
||||||
"Kba74f26d": "接入消費者",
|
"Kba74f26d": "接入消費者",
|
||||||
"K70b79760": "接入消費者數量",
|
"K70b79760": "接入消費者數量"
|
||||||
"Kc3b7bfa8": "暫無消費者描述",
|
|
||||||
"K3a6f905d": "輸入名稱、ID 查找消費者"
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -256,7 +256,7 @@ const AiServiceInsideRouterCreate = () => {
|
|||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
|
||||||
|
|
||||||
<Form.Item className="flex-1" label={$t("请求路径")}>
|
<Form.Item label={$t("请求路径")}>
|
||||||
<Space.Compact block>
|
<Space.Compact block>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
name="pathMatch"
|
name="pathMatch"
|
||||||
@@ -276,7 +276,7 @@ const AiServiceInsideRouterCreate = () => {
|
|||||||
}]}
|
}]}
|
||||||
noStyle
|
noStyle
|
||||||
>
|
>
|
||||||
<Input prefix={(prefixForce ? `${apiPrefix}/` :"/")}
|
<Input prefix={(prefixForce ? `${apiPrefix}/` :"/")} className="w-INPUT_NORMAL"
|
||||||
placeholder={$t(PLACEHOLDER.input)} onChange={(e)=>{
|
placeholder={$t(PLACEHOLDER.input)} onChange={(e)=>{
|
||||||
if((e.target.value as string).endsWith('/*')){
|
if((e.target.value as string).endsWith('/*')){
|
||||||
form.setFieldValue('path',e.target.value.slice(0,-2))
|
form.setFieldValue('path',e.target.value.slice(0,-2))
|
||||||
|
|||||||
@@ -106,7 +106,10 @@ const AiSettingModalContent = forwardRef<AiSettingModalContentHandle,AiSettingMo
|
|||||||
label:<div className="flex items-center gap-[10px]">
|
label:<div className="flex items-center gap-[10px]">
|
||||||
<span>{x.id}</span>
|
<span>{x.id}</span>
|
||||||
{x?.scopes?.map(s=><Tag >{s?.toLocaleUpperCase()}</Tag>)}
|
{x?.scopes?.map(s=><Tag >{s?.toLocaleUpperCase()}</Tag>)}
|
||||||
</div>}))}>
|
</div>}))}
|
||||||
|
onChange={(e)=>{
|
||||||
|
form.setFieldValue('config',llmList?.find(x=>x.id===e)?.config)
|
||||||
|
}}>
|
||||||
</Select>
|
</Select>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
|
||||||
|
|||||||
@@ -153,7 +153,7 @@ const SystemList:FC = ()=>{
|
|||||||
|
|
||||||
<InsidePage
|
<InsidePage
|
||||||
pageTitle={$t('服务')}
|
pageTitle={$t('服务')}
|
||||||
description={$t("服务提供了高性能 API 网关,并且可以无缝接入多种大型 AI 模型,并将这些 AI 能力打包成 API 进行调用,从而大幅简化了 AI 模型的使用门槛。同时,我们的平台提供了完善的 API 管理功能,支持 API 的创建、监控、访问控制等,保障开发者可以高效、安全地开发和管理 API 服务。")}
|
description={'APIPark '+$t("服务提供了高性能 API 网关,并且可以无缝接入多种大型 AI 模型,并将这些 AI 能力打包成 API 进行调用,从而大幅简化了 AI 模型的使用门槛。同时,我们的平台提供了完善的 API 管理功能,支持 API 的创建、监控、访问控制等,保障开发者可以高效、安全地开发和管理 API 服务。")}
|
||||||
showBorder={false}
|
showBorder={false}
|
||||||
contentClassName=" pr-PAGE_INSIDE_X pb-PAGE_INSIDE_B"
|
contentClassName=" pr-PAGE_INSIDE_X pb-PAGE_INSIDE_B"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -196,7 +196,7 @@ useEffect(() => {
|
|||||||
item.type === 'addNewItem' ?<WithPermission access="team.application.application.add" showDisabled={false}><Card className="shadow-[0_5px_10px_0_rgba(0,0,0,0.05)] rounded-[10px] overflow-visible cursor-pointer h-[180px] transition duration-500 hover:shadow-[0_5px_20px_0_rgba(0,0,0,0.15)] hover:scale-[1.05]" classNames={{body:'h-[180px] flex items-center justify-center cursor-pointer'}} onClick={()=>{openModal('add')}}>
|
item.type === 'addNewItem' ?<WithPermission access="team.application.application.add" showDisabled={false}><Card className="shadow-[0_5px_10px_0_rgba(0,0,0,0.05)] rounded-[10px] overflow-visible cursor-pointer h-[180px] transition duration-500 hover:shadow-[0_5px_20px_0_rgba(0,0,0,0.15)] hover:scale-[1.05]" classNames={{body:'h-[180px] flex items-center justify-center cursor-pointer'}} onClick={()=>{openModal('add')}}>
|
||||||
<div className="flex items-center"><Icon icon="ic:baseline-add" width="18" height="18"/><span>{$t('添加消费者')}</span></div>
|
<div className="flex items-center"><Icon icon="ic:baseline-add" width="18" height="18"/><span>{$t('添加消费者')}</span></div>
|
||||||
</Card></WithPermission> : <Card title={CardTitle(item)} className="shadow-[0_5px_10px_0_rgba(0,0,0,0.05)] rounded-[10px] overflow-visible cursor-pointer h-[180px] transition duration-500 hover:shadow-[0_5px_20px_0_rgba(0,0,0,0.15)] hover:scale-[1.05]" classNames={{header:'border-b-[0px] p-[20px] ', body:"pt-0"}} onClick={()=>{setAppName(item.name);navigateTo(`/consumer/${teamId}/inside/${item.id}/service`)}}>
|
</Card></WithPermission> : <Card title={CardTitle(item)} className="shadow-[0_5px_10px_0_rgba(0,0,0,0.05)] rounded-[10px] overflow-visible cursor-pointer h-[180px] transition duration-500 hover:shadow-[0_5px_20px_0_rgba(0,0,0,0.15)] hover:scale-[1.05]" classNames={{header:'border-b-[0px] p-[20px] ', body:"pt-0"}} onClick={()=>{setAppName(item.name);navigateTo(`/consumer/${teamId}/inside/${item.id}/service`)}}>
|
||||||
<span className="line-clamp-3 break-all">{item.description || $t('暂无消费者描述')}</span>
|
<span className="line-clamp-3 break-all">{item.description || $t('暂无服务描述')}</span>
|
||||||
|
|
||||||
</Card>}</div>
|
</Card>}</div>
|
||||||
);
|
);
|
||||||
@@ -293,8 +293,8 @@ const TableArea = memo(({language, getServiceList, addNewApp, setTableHttpReload
|
|||||||
id="service_hub_list"
|
id="service_hub_list"
|
||||||
columns={[...columns]}
|
columns={[...columns]}
|
||||||
request={()=>getServiceList()}
|
request={()=>getServiceList()}
|
||||||
addNewBtnTitle={$t("添加消费者")}
|
addNewBtnTitle={$t("添加服务")}
|
||||||
searchPlaceholder={$t("输入名称、ID 查找消费者")}
|
searchPlaceholder={$t("输入名称、ID 查找服务")}
|
||||||
onAddNewBtnClick={addNewApp}
|
onAddNewBtnClick={addNewApp}
|
||||||
onChange={() => {
|
onChange={() => {
|
||||||
setTableHttpReload(false)
|
setTableHttpReload(false)
|
||||||
|
|||||||
+1
-5
@@ -147,11 +147,7 @@ func (i *imlProviderModule) Provider(ctx context.Context, id string) (*ai_dto.Pr
|
|||||||
}
|
}
|
||||||
defaultLLM, has := p.GetModel(info.DefaultLLM)
|
defaultLLM, has := p.GetModel(info.DefaultLLM)
|
||||||
if !has {
|
if !has {
|
||||||
model, has := p.DefaultModel(model_runtime.ModelTypeLLM)
|
return nil, fmt.Errorf("ai provider llm not found")
|
||||||
if !has {
|
|
||||||
return nil, fmt.Errorf("ai provider llm not found")
|
|
||||||
}
|
|
||||||
defaultLLM = model
|
|
||||||
}
|
}
|
||||||
return &ai_dto.Provider{
|
return &ai_dto.Provider{
|
||||||
Id: info.Id,
|
Id: info.Id,
|
||||||
|
|||||||
Reference in New Issue
Block a user