generated from duckdb/extension-template
-
Notifications
You must be signed in to change notification settings - Fork 7
Closed
Description
SELECT http_post(
'https://api.openai.com/v1/chat/completions',
headers => MAP {
'Content-Type': 'application/json',
'Accept': '*/*',
'Authorization': 'Bearer <key>',
'Host': 'api.openai.com',
'Accept-Encoding': 'gzip, deflate, br'
},
params => MAP {}
);
┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ http_post('https://api.openai.com/v1/chat/completions', headers := main."map"(main.list_value('Content-Type', 'Accept', 'Authorization', 'User-Agent', 'Host', 'Accept-Encoding'), main.list_value('application/json', '*/*', 'Bearer … │
│ json │
├──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ { "status": -1, "reason": "HTTP POST request failed. Error reading response.", "body": "" } │
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
Metadata
Metadata
Assignees
Labels
No labels