Search / Search gpt

Get GPT response initiated by the regular search

Route: /api/{tenant:minlength(2)}/v{version:apiVersion}/search/search_gpt

Method: GET

Authorisation: Minimum role: USER

Request Arguments
Name Type Source
keyStringQuery

  Request body example

Response object

Response status: 200 (OK)

Response type: DTO_search_response_gpt_wrapper

Wrapper: DTO_response_wrap

Other response statuses: 400 (BadRequest), 403 (Forbidden)

  Response body example

DTO_search_response_gpt_wrapper
NameTypeReadOnlyDescription
responseStringResponse
error_messageStringError message
statusENUM search_statusStatus
debugDTO_search_gpt_debug_responseDebug
DTO_search_gpt_debug_response
NameTypeReadOnlyDescription
took_explainedDTO_took[]Took explained
error_messageStringError message
tokens_count_inputInt32Tokens count input
tokens_count_completionInt32Tokens count completion
debug_messagesString[]Debug messages
DTO_took
NameTypeReadOnlyDescription
itemStringItem
took_msInt64Took ms
ENUM search_status
ValueNameDescription
0UNKNOWNUNKNOWN
1INVALIDInvalid
2NOT_APPLICABLENot applicable
3IN_PROGRESSIn progress
4COMPLETEDCompleted
5OTHER_SEARCH_IN_PROGRESSAnother search in progress
6NO_DATANo data
7NO_ACTIVE_SEARCHNo active search
8TIMED_OUTTimed out