POST
/
v2
/
add_llm_provider
curl --request POST \
  --url http://127.0.0.1:9550/v2/add_llm_provider \
  --header 'Content-Type: application/json' \
  --data '{
  "allowed_message_senders": [
    "<string>"
  ],
  "api_key": "<string>",
  "external_url": "<string>",
  "full_identity_name": {
    "full_name": "<string>",
    "node_name": "<string>",
    "profile_name": "<string>",
    "subidentity_name": "<string>",
    "subidentity_type": "Agent"
  },
  "id": "<string>",
  "model": {
    "OpenAI": {
      "model_type": "<string>"
    }
  },
  "perform_locally": true,
  "storage_bucket_permissions": [
    "<string>"
  ],
  "toolkit_permissions": [
    "<string>"
  ]
}'
"<string>"

Add a new Language Model (LLM) provider to the Shinkai API.

Body

application/json
allowed_message_senders
string[]
required
full_identity_name
object
required
id
string
required
model
object
required
perform_locally
boolean
required
storage_bucket_permissions
string[]
required
toolkit_permissions
string[]
required
api_key
string | null
external_url
string | null

Response

200
text/plain
Successfully added LLM provider

The response is of type string.