How to list Domo AI Models and its meta data

Below is the sample output I'm getting from Domo API using AI service layer API


1.How to list the DOMO AI models if i want to choose different AI
2.how to pass/use the sessionId to stay on the same chat

{
"prompt": "hi",
"choices": [
{
"output": "Hello! How can I assist you today?"
}
],
"modelId": "domo.domo_ai.domogpt-chat-medium-v1.1:anthropic",
"isCustomerModel": false,
"sessionId": "d6793495-459b-xxxx-ba0c-xxxxxxxx",
"requestId": "f63e34eb-af73-xxxx-aa8e-xxxxxxx",
"output": "Hello! How can I assist you today?"
}

Answers

  • brycec
    brycec Contributor

    Using the Product API for AI Services Layer instead, I know the endpoint to list models for a certain use case (e.g., text-to-sql) is https://<your_instance>.domo.com/api/ai/v1/settings/services/sql/models. That being said, you may be able to use that same endpoint in the App Framework API you are using, likely domo/ai/v1/settings/services/sql/models.
    I have no idea how to pass the session and that might be tricky. I would suggest using the Domo UI to do what you want and watch the API requests in the browser developer tools console > network tab. Then, replicate what you see for passing the user session.

    Was this comment helpful? Click Agree or Like below.
    Did this comment solve your problem? Accept it as the solution!

  • @brycec , Thanks for your Comment, I'll check with DOMO UI and other endpoints.
    is there any public documentation for the list of DOMO AI models, that would be helpful for changing the AI models easily, right?

  • brycec
    brycec Contributor

    Not that I can find anywhere unfortunately. Domo isn't great at documentation, especially with newer features.

    Was this comment helpful? Click Agree or Like below.
    Did this comment solve your problem? Accept it as the solution!