My first thought was that there should be a people and ai links type
{
"type": "articles",
"id": "1",
"attributes": {
"title": "Rails is Omakase"
},
"relationships": {
"authors": {
"links": {
"self": "/articles/1/relationships/author",
"related": "/articles/1/author",
"people": "/people",
"ai": "/ai"
},
"data": [
{ "type": "people", "id": "9" },
{ "type": "ai", "id": "2" }
}
}
}```