128 lines
3.0 KiB
YAML
128 lines
3.0 KiB
YAML
api:
|
|
openai:
|
|
url: https://api.ppinfra.com/v3/openai
|
|
key: xxxx
|
|
headers:
|
|
Authorization: Bearer {{.key}}
|
|
actions:
|
|
chat:
|
|
url: /chat/completions
|
|
data:
|
|
model: baidu/ernie-4.5-0.3b
|
|
zhipu:
|
|
url: https://open.bigmodel.cn/api/paas/v4
|
|
key: xxxx
|
|
headers:
|
|
Authorization: Bearer {{.key}}
|
|
actions:
|
|
chat:
|
|
url: /chat/completions
|
|
data:
|
|
model: GLM-4.5-Flash
|
|
thinking:
|
|
type: disabled
|
|
embeddings:
|
|
url: /embeddings
|
|
data:
|
|
model: Embedding-3
|
|
image:
|
|
url: /images/generations
|
|
data:
|
|
model: CogView-4
|
|
# model: CogView-3-Flash
|
|
video:
|
|
url: /videos/generations
|
|
data:
|
|
model: CogVideoX-Flash
|
|
|
|
zhipujwt:
|
|
signer: jwt
|
|
url: https://open.bigmodel.cn/api/paas/v4
|
|
secret: xxxx
|
|
claims:
|
|
api_key: xxxx
|
|
jwtHeader:
|
|
sign_type: SIGN
|
|
|
|
tencent:
|
|
signer: tc3
|
|
region: ap-guangzhou
|
|
secretId: xxxx
|
|
secretKey: xxxx
|
|
url: https://{{.service}}.tencentcloudapi.com
|
|
actions:
|
|
smsPackagesStatistics:
|
|
service: sms
|
|
version: "2021-01-11"
|
|
action: SendStatusStatistics
|
|
data:
|
|
Limit: 10
|
|
Offset: 0
|
|
getBucketList:
|
|
service: cfs
|
|
version: "2019-07-19"
|
|
action: DescribeBucketList
|
|
data:
|
|
SrcSecretId: "{{.secretId}}"
|
|
SrcSecretKey: "{{.secretKey}}"
|
|
SrcService: COS
|
|
getObject:
|
|
service: cfs
|
|
version: "2019-07-19"
|
|
action: DescribeBucketList
|
|
region: ap-shanghai
|
|
data:
|
|
SrcSecretId: "{{.secretId}}"
|
|
SrcSecretKey: "{{.secretKey}}"
|
|
SrcService: COS
|
|
getCosToken:
|
|
service: sts
|
|
version: "2018-08-13"
|
|
action: GetFederationToken
|
|
config:
|
|
actions: '["cos:GetObject","cos:PutObject"]'
|
|
appId: 1257995425
|
|
bucket: lao
|
|
path: "/*"
|
|
data:
|
|
Name: ""
|
|
DurationSeconds: 60
|
|
Policy: |
|
|
{
|
|
"version": "2.0",
|
|
"statement": [
|
|
{
|
|
"action": {{config.actions}},
|
|
"effect": "allow",
|
|
"resource": ["qcs::cos:ap-shanghai:uid/{{config.appId}}:{{config.bucket}}-{{config.appId}}{{config.path}}"]
|
|
}
|
|
]
|
|
}
|
|
laoCos:
|
|
signer: cos
|
|
url: https://lao-1257995425.cos.ap-shanghai.myqcloud.com
|
|
secretId: xxxx
|
|
secretKey: xxxx
|
|
textin:
|
|
url: https://api.textin.com/ai/service/v1
|
|
appId: xxxx
|
|
secret: xxxx
|
|
headers:
|
|
x-ti-app-id: "{{.appId}}"
|
|
x-ti-secret-code: "{{.secret}}"
|
|
actions:
|
|
scan:
|
|
url: /pdf_to_markdown
|
|
requestType: binary
|
|
|
|
doubao:
|
|
url: https://ark.cn-beijing.volces.com/api/v3
|
|
key: xxxx
|
|
headers:
|
|
Authorization: Bearer {{.key}}
|
|
actions:
|
|
chat:
|
|
url: /chat/completions
|
|
data:
|
|
model: doubao-1-5-lite-32k-250115
|