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
- 2K Product Ideas
- 2K Ideas Exchange
- 1.6K Connect
- 1.3K Connectors
- 311 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 3.8K Transform
- 657 Datasets
- 115 SQL DataFlows
- 2.2K Magic ETL
- 815 Beast Mode
- 3.3K Visualize
- 2.5K Charting
- 81 App Studio
- 45 Variables
- 775 Automate
- 190 Apps
- 481 APIs & Domo Developer
- 81 Workflows
- 23 Code Engine
- 40 AI and Machine Learning
- 20 AI Chat
- 1 AI Playground
- 1 AI Projects and Models
- 18 Jupyter Workspaces
- 410 Distribute
- 120 Domo Everywhere
- 280 Scheduled Reports
- 10 Software Integrations
- 144 Manage
- 140 Governance & Security
- 8 Domo Community Gallery
- 48 Product Releases
- 12 Domo University
- 5.4K Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 114 Community Announcements
- 4.8K Archive