Data API / DataForSEO / AI Optimization
Get LLM Responses ChatGPT Completed Tasks
Lists finished ChatGPT response tasks awaiting collection. Free. Wrapped in DataForSEO's envelope: data in tasks[0].result, outcome in tasks[0].status_code - a rejected request still returns HTTP 200. A caller that holds its own task id can fetch directly and skip this.
Параметры
Параметров пути, запроса и заголовков нет.
Пример запроса
curl -X GET "https://openapi.felo.ai/v1/beta/dataforseo/ai_optimization/chat_gpt/llm_responses/tasks_ready" \
-H "Authorization: Bearer $FELO_API_KEY"Ответ
Поля ответа
versionstringНеобязательныйthe current version of the API
status_codeintegerНеобязательныйgeneral status code you can find the full list of the response codes here Note: we strongly recommend designing a necessary system for handling related exceptional or error conditions
status_messagestringНеобязательныйgeneral informational message you can find the full list of general informational messages here
timestringНеобязательныйexecution time, seconds
costnumberНеобязательныйtotal tasks cost, USD
tasks_countintegerНеобязательныйthe number of tasks in the tasks array
tasks_errorintegerНеобязательныйthe number of tasks in the tasks array returned with an error
tasksstring[]Необязательныйarray of tasks
idstringНеобязательныйtask identifier unique task identifier in our system in the UUID format
status_codeintegerНеобязательныйstatus code of the task generated by DataForSEO; can be within the following range: 10000-60000 you can find the full list of response codes here
status_messagestringНеобязательныйinformational message of the task you can find the full list of general informational messages here
timestringНеобязательныйexecution time, seconds
costnumberНеобязательныйcost of the task, USD
result_countintegerНеобязательныйnumber of elements in the result array
pathstring[]НеобязательныйURL path
dataobjectНеобязательныйcontains the parameters passed in the request's URL
resultstring[]Необязательныйarray of results
idstringНеобязательныйtask identifier of the completed task unique task identifier in our system in the UUID format
sestringНеобязательныйLLM model specified when setting the task
functionstringНеобязательныйtype of the task
date_postedstringНеобязательныйdate when the task was posted (in the UTC format)
tagstringНеобязательныйuser-defined task identifier
endpointstringНеобязательныйURL for collecting the results of the task