cURL
curl --request POST \ --url http://localhost:5300/api/v1/provider/providers \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data ' { "name": "OpenAI", "requester": "openai-chat-completions", "base_url": "https://api.openai.com/v1", "api_keys": [ "sk-xxx" ] } '
{ "code": 0, "data": { "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a" } }
创建一个新的模型供应商。
Documentation IndexFetch the complete documentation index at: https://docs.langbot.app/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://docs.langbot.app/llms.txt
Use this file to discover all available pages before exploring further.
"OpenAI"
请求器类型。可通过 GET /api/v1/provider/requesters 获取可用列表。
"openai-chat-completions"
"https://api.openai.com/v1"
["sk-xxx"]
创建成功
0
Show child attributes