plugin:smart-connections:508 Error: Request failed, status 400
at new t (app.js:1:710073)
at Aw (app.js:1:710265)
at app.js:1:710942
at app.js:1:235505
at Object.next (app.js:1:235610)
at a (app.js:1:234349)
plugin:smart-connections:466 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'usage')
at SmartConnectionsPlugin.get_embeddings (plugin:smart-connections:466:51)
at async Promise.all (index 0)
at async SmartConnectionsPlugin.get_file_embeddings (plugin:smart-connections:454:5)
at async Promise.all (index 0)
at async SmartConnectionsPlugin.get_all_embeddings (plugin:smart-connections:201:9)
at async SmartConnectionsPlugin.find_note_connections (plugin:smart-connections:628:7)
at async SmartConnectionsPlugin.render_note_connections (plugin:smart-connections:564:21)
get_embeddings @ plugin:smart-connections:466
await in get_embeddings (async)
eval @ plugin:smart-connections:116
e.tryTrigger @ app.js:1
e.trigger @ app.js:1
t.trigger @ app.js:1
t.activeLeafEvents @ app.js:1
s @ app.js:1
l @ app.js:1
{
"error": {
"status": 400,
"headers": {
"date": "Sun, 08 Jan 2023 05:53:01 GMT",
"content-type": "application/json",
"content-length": "294",
"access-control-allow-origin": "*",
"openai-organization": "user-<redacted>",
"openai-processing-ms": "117",
"openai-version": "2020-10-01",
"strict-transport-security": "max-age=15724800; includeSubDomains",
"x-request-id": "<redacted>"
}
}
}
{
"usedParams": {
"model": "text-embedding-ada-002",
"input": "<some enormous escaped page content here>"
},
"reqParams": {
"url": "https://api.openai.com/v1/embeddings",
"method": "POST",
"body": "{\"model\":\"text-embedding-ada-002\",\"input\":\"<same enormous page content as above>\"}",
"headers": {
"Content-Type": "application/json",
"Authorization": "Bearer sk-<redacted>"
}
}
}