Create a integration to a space
curl --request POST \
--url http://127.0.0.1:3000/api/space/{spaceId}/integration \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "AI",
"config": {
"llmProviders": [],
"embeddingModel": "<string>",
"translationModel": "<string>",
"chatModel": {
"lg": "<string>",
"md": "<string>",
"sm": "<string>",
"ability": {
"image": true,
"pdf": true,
"webSearch": true
}
},
"capabilities": {
"disableActions": [
"<string>"
]
},
"appConfig": {
"apiKey": "<string>",
"vercelToken": "<string>",
"customDomain": "<string>",
"creditCount": 1,
"v0BaseUrl": "<string>",
"vercelBaseUrl": "<string>",
"aiGatewayApiKey": "<string>"
},
"webSearchConfig": {
"apiKey": "<string>"
}
},
"enable": true
}
'Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
AI 显示 子属性
显示 子属性
openai, anthropic, google, azure, cohere, mistral, deepseek, qwen, zhipu, lingyiwanwu, xai, togetherai, ollama, amazonBedrock, openRouter, openaiCompatible Successful response.
此页面对您有帮助吗?
curl --request POST \
--url http://127.0.0.1:3000/api/space/{spaceId}/integration \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "AI",
"config": {
"llmProviders": [],
"embeddingModel": "<string>",
"translationModel": "<string>",
"chatModel": {
"lg": "<string>",
"md": "<string>",
"sm": "<string>",
"ability": {
"image": true,
"pdf": true,
"webSearch": true
}
},
"capabilities": {
"disableActions": [
"<string>"
]
},
"appConfig": {
"apiKey": "<string>",
"vercelToken": "<string>",
"customDomain": "<string>",
"creditCount": 1,
"v0BaseUrl": "<string>",
"vercelBaseUrl": "<string>",
"aiGatewayApiKey": "<string>"
},
"webSearchConfig": {
"apiKey": "<string>"
}
},
"enable": true
}
'