Application APIs
You can use APIs to communicate with your application directly, it's just an HTTP call with a JSON payload. Here's an example of how to use application API to get completions for a given message:
curl -k -H "Authorization: bearer <bearer token>" -XPOST https://<kubeagi-portal-host>/chat --data '{"query":"<your question here>","response_mode":"blocking or streaming","conversion_id":"","app_name":"<application name>", "app_namespace":"<application namespace>"}'
Application API
-
Conversational API
post /chat-messages
with configurable SSEThe request parameter conversation_id is used to identify the session ID, while the application ID is implicitly included during token creation.
-
Feedback API for a specific message
post /messages/{message_id}/feedbacks
-
Next suggested question for a message
get /messages/{message_id}/suggested
-
Conversation history of messages
get /messages
-
List of conversations
get /conversations
-
Rename a conversation
post /conversations/{conversation_id}/name
-
Delete a conversation
delete /conversations/{conversation_id}
-
Speech-to-text
post /audio-to-text
-
Get application configuration information
get /parameters