local test

getting

curl http://localhost:5000/api/queue | jq .
[]
curl http://localhost:5000/api/vote_map | jq .
curl http://localhost:5000/api/cities | jq .
[
  {
    "GeneratedCity": {
      "pairs": [
        "f42ef1ea62530f9896302f0de05517ffc99745e7dbaf17e1b86b213546f2cff0",
        "3707656ade977ec6ea7f5756b822ef4c4eb0c53610e774795abe692cce347683",
        "de6a01f02f8dc7ac1dbf879211577d3b7299e6ebe26f39bcabd79a074227ea62",
        "765e264a5bd26830a33307f9e1244659bbca1f37be0c865383c025410675f730"
      ],
      "prompt": "Boston transportation, Tokyo waterfront, Hanoi density, London nightlife",
      "creator": "c1f5ee5069c310316be82036639e0f6a89e1981ef8ba1ce1c022fc8137000e9f",
      "status": "Done",
      "added": "2023-04-20T07:28:42.662587Z"
    }
  },
  {
    "GeneratedCity": {
      "pairs": [
        "151c599b2245b9626e2c6ba532fb76d09003350fe44b87731f6621c1aa8a2c1f",
        "6711befedc302fe350b93c8b9d7131d9da2f6f7cda483869c561e4ed410105d2",
        "3ae4a16940a401fcc75f9364390542d2fceaa3167b17237eda1348cd00f2da1d",
        "765e264a5bd26830a33307f9e1244659bbca1f37be0c865383c025410675f730"
      ],
      "prompt": "Kyoto skyline, Barcelona diversity, New York density, London nightlife",
      "creator": "ffa6b2e7d42b35eda57dbd99ef6a10e4fa07260de708ae0e8f6ac42417be96bd",
      "status": "Done",
      "added": "2023-04-20T07:30:05.633295Z"
    }
  }
]
curl http://localhost:5000/api/aliases | jq .
{
  "c1f5ee5069c310316be82036639e0f6a89e1981ef8ba1ce1c022fc8137000e9f": "yasushi"
}
curl https://neverwhere.media.mit.edu/api/node/927ac733ec88e73856ab843784bb03f5beb1dbc7a6248b86eed7dc8ab868a839 | jq .
{
  "address": "927ac733ec88e73856ab843784bb03f5beb1dbc7a6248b86eed7dc8ab868a839",
  "node": {
    "type": "pair",
    "feature": "982f16adfab59c1c7f7e358cdde814c43b8e59c65a799b8dcc5267cda23137a2",
    "city": "177f137739e81cbe92a2da7ca2501eb1eb298394643b7342721e5a8c9e2c62af",
    "prompt": "brasilia transportation",
    "status": "queued"
  }
}
curl https://neverwhere.media.mit.edu/api/result/liquid | jq .
[
  {
    "b02700a17781af40cab9732373920e9a80728a80309211e3f83f8dc4556fdb1b": 0.8131508074299303,
    "e169c1bf43aee370eece74e4566aa9317b1a5e9183e69ebe41a7259fd5aac205": 0.9612753045133332,
    "24df5a62c99cb4b64fde68a97e7ddfb96805e33e5d007d833b8b7be848af67f2": 0.8131508074299303,
    "8ed90b2262b9d75d6e448c489352d6ec40f688e87710546bcac0b5bb9138ef21": 1.0161023500309216,
    "d308e6cee45c2f6d9d30b66f1f6e9e7fa9fd936eed9ec2371f2b510c88a2a117": 1.503946429026557,
    "2be7560cac12ff16f8b5d563c0f28777ea92d6412e07b3b4a9241eb5d99b29a4": 0.9612753045133333,
    "d3b35352371bfe52447c6102d6e451f0018365461e9e9c8b244eca1670f0c84f": 0.8816326530612245,
    "67d576405e66b25ac92b93b8ff4d793f899006bffff1adc1b1607c9e364bc4cd": 0.8077690166975882,
    "3bd242b13d33fadaa71a19f3d9834808c31872e0fa034f3c1c3f60abdc6ad800": 0.9612753045133333,
    "eec28a60961b28b92ae6821d7259ed0c5780ca68d7f2100dfdbd1c5f940f3c5d": 0.6316326530612245,
    "ecdaddc1da5b6fbb4035d2f5db1ac3c2b397d00433ad225bfd93fd5c14eff6f0": 1.1463146745920734,
    "6556b7fcfe9a6345fab70169bce0e8d2641b844a3309407bc4ae797f1d582356": 0.8131508074299303,
    "b9052bd88e7dc33cbc58c7faea23ecca22d223bf438e321f0ffafe1ea02a5658": 0.6316326530612245,
    "61ad84e3466b3d4ea60504bd6af33704d44b9b06e93440c4254309a8c3c2391f": 0.9612753045133332,
    "f16d2cd30c0c581f6c9d2654f2e4440d2db1b7af91175baa966d06fb222e71f5": 0.648678107606679,
    "3951d86320654b89675c808114129f74087d621303b626dad673d8796a6470aa": 0.9612753045133333,
    "7e3a6d442c0c7ecba994cdcdd625e533012185710d824d445c9da4b49cadd957": 1.9594654820220037,
    "177f137739e81cbe92a2da7ca2501eb1eb298394643b7342721e5a8c9e2c62af": 0.8131508074299303,
    "6e95465063e16049c9ef6bf4235547bf65fdfad025db57d12e5adb579871532c": 0.9612753045133333,
    "87affc83d93154c6e3cc2c5305ec7fc64461fdbd86729472b5b60e847d99e5fd": 0.648678107606679,
    "4cd10dd066a0d31e46b67977307c57e39384c387c3f1cfc9a04c80a7e2faf570": 0.7869356833642548,
    "f6e740f52860c72f34e68aeb1e553ecd56d23a70a68b372c0a55f6a0a7f79c26": 0.8131508074299303,
    "fb3ec605b8475a27dac6cb7440f2442fac2460e190c3fccca7b61d40000664c6": 1.5038063256399195
  },
  {
    "a832ecb8909609a0ce023e2a4d15fe10b539191d8c479a331dd16a000d3510d7": 1.297356215213358,
    "4936cfece7a412f2799daf9fa2c5ced34aeb82017174bee045098dd93b0cadbd": 1.6155380333951763,
    "7654e028d99f0661b8688ade2721fa7c26cf87acd79a0be2152c3018ac7b0744": 1,
    "cf19510bd3323bccf4fbca198b8899a5c2b0df913110a8455ad64a11f66c8d7f": 1.9225506090266664,
    "b0df93a2bfebeb6879cd35db59c6bfc9c2350ab3da0ed160dcb752894763df46": 1.6263016148598606,
    "0df7e93cdf7bdc829a0f6d26d64f6631f47d6e007b49edde2233c1aa36aa1711": 3.6902024361066657,
    "8c92c53c058a2b2a8a8201fff3292dab6ae91a0dd81003bcee7ac39febed8eda": 1.0530612244897959,
    "3af9c14b2627091d3080d1e5faabffa9eae73af4d2dcd14c86d6e528610632e3": 1,
    "58b33e04c31bb129f691f199f1443c1170f0e2b663b7a5629c5f2f7bf3bfdb62": 1,
    "132665ca7e9cd8b5da4b54e668c5d9f3808f81a264067b220af73c7375a9cbc4": 1,
    "1549296228387da38564a71ea13580fad4a7cff5d62f7d11bb56f389bb997841": 1.6263016148598606,
    "717411a001aec10a8c7cc568eeca8f1933dcc8c79f75636b67ebcbe7815ffb57": 1,
    "2d462606c5c1705b4c5e0a1a7769c197a97738f4af27e83c8fa39f454c7dffab": 1.4905380333951763,
    "9dd7bf0e84b4c8ab795814cde33a9f9da6c5f52c9e636f8549e66cfda997fd86": 1.6263016148598606,
    "1eb24baf0be91e8df8c5eff081f172335fdf5a166e79dfa07b3a1a356ec371dc": 1.263265306122449,
    "36c27f2f8e0e88bd09d021dcc6d877d408f6a3372a4bcc05114a57cd3a744de8": 2.5052064594394423,
    "baceca6584d2d2e9ae0b4722495ca99ee0744ac4e928942679e7667a08368472": 2.256872449889848,
    "5684c1551224405935a2a5995ce43e51c9a5e5ce5fcbad0369c6f8a9a46f56b9": 1.2388593793681857,
    "5ee66168cb8d6c4caa974c495b676faab0424929b6074e7ed5970720b6ccdc0c": 1.9225506090266664,
    "f31a2b8b69b72c0518e312d8bb748bc3be966ef41a1e89a60299ccde0ca2a5b7": 2.2926293491841467,
    "f9e4386bfc652fe520ffcb792dc847fd3dbe71b90f92bfdc7ca435dc64e0cbcc": 1.662875487273561,
    "fc7bdf26a9288cc2b7b4f0c402af689ca871e241c4de7d3e6b9d93a7baf0b0df": 1.9225506090266664
  }
]

results after workshop

[
  {
    "7688528c2afb9108353b11eef0a71048335a17b3f2794056bb74c33c4b1f8f6e": 0.8595679012345678,
    "be9523d19eb5b2043de79f4d1f431ad4c4b4a06b73f07d50bcbd6c974c7cd120": 0.875,
    "1fd7412e92c54c0580ab4a4a1d1625f7cff161d7b17a073a9081239272e397cc": 0.8595679012345678,
    "1d42b28bfe3884afcf8d9a997ee1dd09d93ba12c4ec1e930323eafee4622fbbf": 1.375,
    "2749b4adeb70f01698dd206594baa0bf92066dca0693a13c74d033c92564576b": 2.69383516070143,
    "391cff4b3a8cbfe68a6faed27942cc2ee412b12df138f591b06f8af1ceb2b963": 0.75,
    "3ac8177858dab8705b1a9fb2b958a3cd1d4233a349f4ccb1fb9e914477a0c06b": 0.8595679012345678,
    "1e6e8ca66e39afb521d8a39b5c559a9216cc67b3cb4354a8e9d0453c48fd2677": 0.625,
    "ad16ffe5d246e0ad4ff2973d25d658f05f7d66e6d16637c368eb66a83f3ccbf5": 0.75,
    "4e4c7a648ce59be5e37d06a4d5ae9d58f2bacc0dbee96d07419cbd8ca3f5c7c1": 0.8595679012345679,
    "b34075ae96ab1a322b1e0be66408ba5d4a8eadc9f1f64014a6e50410ccaa2096": 1.5,
    "b9052bd88e7dc33cbc58c7faea23ecca22d223bf438e321f0ffafe1ea02a5658": 1.609567901234568,
    "2614bd575f6a01450ca8624f2afc0d2c9f667f7ca2e60d35768767bd29143bc8": 0.8595679012345679,
    "d308e6cee45c2f6d9d30b66f1f6e9e7fa9fd936eed9ec2371f2b510c88a2a117": 0.8262707104285748,
    "4714a7b85c109df5948bfd47c7111409d9a7ad88e32219aa96aa98967b0f3aa2": 0.875,
    "7118418c3ec4107d8250cd5982ec78dad12b9620365109674409deec1917f0ab": 0.75,
    "1b5c97916e1a1454f85d0615ba8accf208864018c3cf4e9949a4912c1391a270": 0.8595679012345679,
    "89a5ba676d65cff583b85e1669fe88a5000b596ec2325a3affde8a8d1f003351": 0.625,
    "93e383d45b3c8cb411352a2e10e3c8967abb00541eeb8aa4173d6faef6cc904e": 0.8015860742501864,
    "3838f42155af4e9affa4419d9351e42696ac9cf375fb6684470db068a57b80bc": 0.75,
    "9fa046a3a9c818a32f621622dbf99cecbe885d1cd97e951f8372f43c667ca315": 0.625,
    "ad84e3c67b1c510ade1511dd50edbe50ae71f732004fe9c52e51bfc9a4e2c1e7": 0.875,
    "bb6bcdf55c6ca36ab46e252f0479dfdcdb168e9bb27a90fc95d819550fa6403a": 0.625,
    "5dcccfa24756b8d72350185ace0b9e70983555f95087fdc94bfdf70924c798e6": 0.625,
    "db76df13efe408f2c9668dc55087e10171a1ad9b53ac7c10cd53ad9d28425227": 1.2293242099393924,
    "f14f33508f09e0e8ab3b722a0c6cae0b6ec05b0f4b6f830b6915caf3137f0450": 0.875,
    "df2fb3ba08c76cb956f54d0f5856068fd4925f8ce519e3e47498bb3a72ab1783": 0.75,
    "fdb71becfc9d38ee6fdec5a521313cf87d19f8dbba08fdb647869a763413d17c": 0.875,
    "cbc3e2245e41216ab7d3bb2d68991fa22baf82d75857927d019205568d79c2ca": 1.25,
    "e9d84d3f385a56c6cf624874000711a9677a4945174b43c9fe53e31ea704b6fe": 0.75,
    "35f79c37d491bd6dfd15371c8a91c220487802929f37eca2c9a00f993bf645da": 0.625,
    "f6e740f52860c72f34e68aeb1e553ecd56d23a70a68b372c0a55f6a0a7f79c26": 1.4686285035181488,
    "0e20cdaaa37e2c1e4e01ff139e01f9022085dc208083c1ff15f7efe1d94b1330": 0.75,
    "cf7c755570ab9a0b1f9b483b9521597b2a5f46b32e3eb374ecb9d6819a714350": 0.75,
    "c13dfec6f9ee9576704f328e8135b9ece884df3172763caaaf296d5194b50cf4": 0.75,
    "d1d5418a1621a5dcfdcb9d5b969c939b7da57683d01573f9ad98f72e1de40b4d": 0.625,
    "982f16adfab59c1c7f7e358cdde814c43b8e59c65a799b8dcc5267cda23137a2": 2.3262707104285747,
    "b6051f0786ad370920fd14e683718d742ef8c05173111862dfbcb1e676a24ad3": 0.875,
    "3f0be70650fd2af7a3b021d33f80a7efd30d0019a2a562020f80bd0f48dc3ffd": 0.8595679012345678,
    "177f137739e81cbe92a2da7ca2501eb1eb298394643b7342721e5a8c9e2c62af": 0.8262707104285748,
    "29a08584c594637ccac37f968df0a2205492ca12295f8049480de7ea94ddc80b": 0.8262707104285748,
    "4676c79c07d82f1a7e9ec9326ab66c7aaf2de5b9aba2b3c7c27029516e4fe808": 0.625,
    "c8e77427ec0b336b0e6e53577df1f16915349736650cb82b0f60b6c49edc64df": 0.75,
    "02169c4f1ebce9ed21c787fece48f15eef150d5e89ae327963cf91b360a53471": 0.75,
    "c4d8284bddcf0b2ddabd59cc74143d916d470173f95a09cc27e3ae08492b2f1e": 1.5
  },
  {
    "bb0cd8d293c291ec545138cb15e660cc9fe0e8da4b45067e383427f9d21ee7a4": 1,
    "e9916014e965293ea9f49dfe82adf24aeddb852a96c812038af39c130f7c91ed": 2.2253926002566367,
    "ea50a64091e5a7888cd96c569d7a8d29ab43e81d5bb46f257e26fe3857e85aa0": 1.5,
    "2cbeb3f83366792d2b730999a813ced9370e6301f5f022004c023d5bd3e60da7": 1.25,
    "16636cce39a5c2bc8bf0d4dfcfe38d8b85d784e416f20d51f97e35564c0a8717": 1.2,
    "b5d84ce120875dddd55388d627fa6a51b5d56a813f52a4a33b6daaef3a151f5c": 1.123456790123457,
    "d058e385d287ffe120432fd74b2b2d859537a4a6e599d7ccd32b9ccde06a2655": 3,
    "fd95121747cab5cac3e8b34774263f6cc197c216eac2344d305083df6b9ec23b": 1.25,
    "46035820d5b65dfada7b9fe3008284671acbc2dc5bec24748caf6340493b27d1": 1,
    "0f72b7c607e6f7659cdfc5a8fd123dbd06fd0b0d68c5fe0d87dd553523d3a024": 1,
    "717411a001aec10a8c7cc568eeca8f1933dcc8c79f75636b67ebcbe7815ffb57": 1,
    "8dc68243059e7ad6e6ef36f616710fa9389e16b6ccfc3ad57b20c249400f0291": 1.6031721485003727,
    "4099cd98dcadb02829bb5d3a092b3606bcd255e9f4668490a350659260bfac50": 1,
    "02e9206fe7849bb15e26f497eac8d2bf44db19492abc64a21124ca021c59fd34": 2.876543209876543,
    "59d8d4cdc09eca0c83d54d24935d2801ecae194718fd6319d47d22d09f5147b3": 1.75,
    "86f64772888c9f65418bd52cd6fad0157603cdda0d2a9837f6ccbd1bf2da2227": 1.7191358024691357,
    "a40ee7cf169bbeb4c3960e1c1ad7aef51fe83c76a9f7eb1157c836f4349510ba": 1.5,
    "add37e20ff952e93618d079477793289ee59d1632d7edff3df9079a16a71d7ae": 1.7191358024691359,
    "a37a365d9b29871266e34956e731e808d1928ad26826a01a2231de260c12062e": 1.5,
    "923276c3f8c1b82a0c75fe7ff6ec0bcf321fcde53ca246b919b8a77d39b45a0e": 1.25,
    "6a64c22b2f0fcecfc6abb880daa5044c744bc72e972913ecc6eb2910ea2142a6": 1.25,
    "bf77d3aa88fd6fea6e7eb07dd506f451034cbfe3b7e4d8ebe571daa645285dd7": 1,
    "dcc2087dd7da49af9387b43d5c7385681e64856274094986d4ce3d1b108cb417": 1,
    "4e58e559447051a243d35b16fde2c0c9860e7153557c383cc7f7c7f3b824b119": 1.75,
    "c6a3209a301b1f737acf4dc8f2c40ff6dfead4cd28f8075d02ccc009a0ea4796": 1.5,
    "f572ffd07ba52cb428198ada82bc492afe97f2aafa9436823f95ed0bfb2a13e1": 1.6525414208571496,
    "50147d973151f3dd7ce44e88b3ec484c779e52e67e45fa3684b6331902cc1e55": 1,
    "92b1537a9504eb5f6d9ee5df131c4726e67f75d44aeaefe718286f4612a98445": 1.7191358024691359,
    "f3e3b34174c18e470be9a553afe6bab2df78ff1e6c2f9916ed48ab2619c0762d": 1,
    "f9e4386bfc652fe520ffcb792dc847fd3dbe71b90f92bfdc7ca435dc64e0cbcc": 1,
    "2a43652654977fd83e872887eb3d893158a457d26d1fdab049f3ea299b30eade": 1.5,
    "1d0e73efc1d9cfc8f030312fef27270fafabc8201b3121659f13b36d4f179568": 1,
    "927ac733ec88e73856ab843784bb03f5beb1dbc7a6248b86eed7dc8ab868a839": 1.6525414208571496,
    "b44100acbcde5314783cb45970786eb0538f2e6af2d0cd5748af48c51777d072": 1.5,
    "6632dd8a153c6ca4f059d3e1598a770d4240354acd4c230a1a7bf7602b128747": 1.7191358024691357,
    "62431020a89b9dd4cbe14f01bc636eb5df0fc3bbab26da2899d410128ced6306": 1.423222063250557,
    "15c1887131b3482a199be006812cea1164218b44e8721fd5d70d76aed296a113": 1.25,
    "0aef54b3a7a5a74fd2b77e7d079e9314bb3e0800c1425d1b46e4c0a0918f9b0e": 1,
    "1c99e34e00ef15ac486a5beb42fe6d9cdbc3c12cfa8d9c416382a701f1a91b63": 1.75,
    "37f36780b7368db7848c7d3c0b8e250e0759029120cd1c0a1ef95c463556df07": 1,
    "464d6417b8ce8f8a5b8f5f65dfabb4e6cbce81d7d8c36e8b8c5728ecc15ed759": 1.25,
    "86fa2fc03c70eb02f8b65e385f0d9c4a8d165b5a0201fa3a093c40dbaa59588e": 1.25,
    "ed5b13f668701bc1aca9b443d9a890e1026b9a1b365a8c27961aea4a0996a0a0": 1.75,
    "95d4d7908dd8c3a6fee49a8aa65522252ff1425685de57e8dde40b65040d38ab": 1.5,
    "2432da81a97e21f388e4f1c2383a18473264d04eb2b1a8b9a547b1cd76d1c240": 1.5,
    "79ebb86d3a5faf2e88749eff9c00f35f5391f3ba5ffb2a706e922b893756f880": 2,
    "8dbac64cd9b819bf664ec06c4e52f65be62edcf76806743a74617d397d3545e4": 1,
    "abd16dae16d77d395e1713a1c8e4bbb041eaa5720f8edc40b08495061151fbec": 1
  }
]

posting

NEW_USER_UUID=ed9500db-9ec2-4d1d-8179-a87bc96d03d9
curl -d "{\"uuid\": \"$NEW_USER_UUID\"}" -H "Content-Type: application/json" http://localhost:5000/api/new/user | jq .
"c1f5ee5069c310316be82036639e0f6a89e1981ef8ba1ce1c022fc8137000e9f"
NEW_USER_UUID=ed9500aa-9ec2-4d1d-8179-a87bc96d03d9
curl -d "{\"uuid\": \"$NEW_USER_UUID\"}" -H "Content-Type: application/json" http://localhost:5000/api/new/user | jq .
"ffa6b2e7d42b35eda57dbd99ef6a10e4fa07260de708ae0e8f6ac42417be96bd"
NEW_USER_UUID=888a8abc-36c8-4317-ad6b-d58dba879ec5
curl -d "{\"uuid\": \"$NEW_USER_UUID\"}" -H "Content-Type: application/json" http://localhost:5000/api/new/user | jq .
"4792b13284cc380aadf2ba866ba94f1a826d5b25bf5acf5b24c40dec63935e65"
curl -d '{"address":"c1f5ee5069c310316be82036639e0f6a89e1981ef8ba1ce1c022fc8137000e9f", "proxy": "yasushi"}' -H "Content-Type: application/json" http://localhost:5000/api/new/alias | jq .
"ok"
curl -d '{"creator":"c1f5ee5069c310316be82036639e0f6a89e1981ef8ba1ce1c022fc8137000e9f", "cities": ["Boston", "Tokyo", "Hanoi", "London"], "features": ["transportation", "waterfront", "density", "nightlife"]}' -H "Content-Type: application/json" http://localhost:5000/api/new/city | jq .
"62d8d3b2fbf3945183df154f6ef9103fe7c6a33150bbaef2736337deeced3f69"
curl -d '{"creator":"ffa6b2e7d42b35eda57dbd99ef6a10e4fa07260de708ae0e8f6ac42417be96bd", "cities": ["Kyoto", "Barcelona", "New York", "London"], "features": ["skyline", "diversity", "density", "nightlife"]}' -H "Content-Type: application/json" http://localhost:5000/api/new/city | jq .
"84ca75c666994650f72e8d46a64b5bfd41971998a090b5421662a62354e2e03a"
curl -d '{"source":"c1f5ee5069c310316be82036639e0f6a89e1981ef8ba1ce1c022fc8137000e9f", "target":"df682e27540d153d4405db4e55b09d846e3b08c86d5b0eeb22fa4fd73ec0e38f", "value": 100}' -H "Content-Type: application/json" http://localhost:5000/api/vote | jq .
"ok"
curl -d '{"source":"c1f5ee5069c310316be82036639e0f6a89e1981ef8ba1ce1c022fc8137000e9f", "target":"62d8d3b2fbf3945183df154f6ef9103fe7c6a33150bbaef2736337deeced3f69", "value": 20}' -H "Content-Type: application/json" http://localhost:5000/api/vote | jq .
"ok"
curl -d '{"source":"ffa6b2e7d42b35eda57dbd99ef6a10e4fa07260de708ae0e8f6ac42417be96bd", "target":"00b6e3d409991ccafe18c8562d54c5253687cb5b4a2dbab3bb7f50b8d5d40b49", "value": 20}' -H "Content-Type: application/json" http://localhost:5000/api/vote | jq .
"ok"
curl -d '{"source":"ffa6b2e7d42b35eda57dbd99ef6a10e4fa07260de708ae0e8f6ac42417be96bd", "target":"151c599b2245b9626e2c6ba532fb76d09003350fe44b87731f6621c1aa8a2c1f", "value": 20}' -H "Content-Type: application/json" http://localhost:5000/api/vote | jq .
"ok"
curl -d '{"source":"ffa6b2e7d42b35eda57dbd99ef6a10e4fa07260de708ae0e8f6ac42417be96bd", "target":"765e264a5bd26830a33307f9e1244659bbca1f37be0c865383c025410675f730", "value": 20}' -H "Content-Type: application/json" http://localhost:5000/api/vote | jq .
"ok"
curl -d '{"source":"ffa6b2e7d42b35eda57dbd99ef6a10e4fa07260de708ae0e8f6ac42417be96bd", "target":"c1f5ee5069c310316be82036639e0f6a89e1981ef8ba1ce1c022fc8137000e9f", "value": 10}' -H "Content-Type: application/json" http://localhost:5000/api/vote | jq .
"ok"

production

curl https://neverwhere.media.mit.edu/api/list | jq .
[
  [
    "1a33a4cbafafbc4af1cca289a45a1f36bf2a2e7ccfb6fcc80f8fc8a302c3c52d",
    "done"
  ]
]
curl https://neverwhere.media.mit.edu/api/check/1a | jq .
[
  {
    "id": "1a33a4cbafafbc4af1cca289a45a1f36bf2a2e7ccfb6fcc80f8fc8a302c3c52d",
    "input": "Rome streets, Bogota people, Port-au-Prince buildings",
    "status": "processing"
  }
]
curl -d '{"input":"Mars landscape, Tokyo infrastructure, Paradiso festival"}' -H "Content-Type: application/json" https://neverwhere.media.mit.edu/api/submit | jq .
{
  "id": "a501349add53cebefab8c0ebeab120068cf74948ef6205a7a841a2d63cc86525",
  "input": "Mars landscape, Tokyo infrastructure, Paradiso festival",
  "status": "queued"
}
https://neverwhere.media.mit.edu/images/{hash}.png

1a33a4cbafafbc4af1cca289a45a1f36bf2a2e7ccfb6fcc80f8fc8a302c3c52d.png

72cae76f4331b647800f675e20ad2284a64299237fe57e293197fa0aa397cc6a.png

chatgpt

asking gpt to evaluate cities

can I hit the api ’funtions’ api using curl??

curl https://api.openai.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -d '{
     "model": "gpt-3.5-turbo-0613",
     "messages": [
                 {"role": "system",
                          "content": "You are a urban planner that have lived all around the globe and experienced all cities. User will ask if a city is worth living. You should respond with a score and save the response using the likeCity function."},
                 {"role": "user",
                          "content": "How did you like living in Tokyo?"}
                 ],
     "functions":[{
        "name": "likeCity",
        "description":"saves if the assistant liked living in the city or not", "parameters":{
                    "type":"object",
                    "properties":{
                        "cityName": {
                                    "type":"string",
                                    "description":"the city name"
                                    },
                        "score": {
                                    "type":"number",
                                    "description": "the score showing how much did planner enjoyed living in this city. The range should be 0 to 100"
                                    }
                    },
                    "required": ["cityName", "liked"]
                    }
    }],
    "function_call": {"name": "likeCity"}
    }'

Date: 2023-03-29 Wed 20:12