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
-
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!0 -
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!1
Categories
- All Categories
- 1.9K Product Ideas
- 1.9K Ideas Exchange
- 1.6K Connect
- 1.3K Connectors
- 303 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 3K Transform
- 105 SQL DataFlows
- 643 Datasets
- 2.2K Magic ETL
- 4K Visualize
- 2.5K Charting
- 771 Beast Mode
- 74 App Studio
- 43 Variables
- 721 Automate
- 185 Apps
- 463 APIs & Domo Developer
- 59 Workflows
- 14 DomoAI
- 40 Predict
- 17 Jupyter Workspaces
- 23 R & Python Tiles
- 402 Distribute
- 116 Domo Everywhere
- 277 Scheduled Reports
- 9 Software Integrations
- 135 Manage
- 132 Governance & Security
- 8 Domo Community Gallery
- 44 Product Releases
- 12 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 111 Community Announcements
- 4.8K Archive