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
- Product Ideas
- 2.1K Ideas Exchange
- Data Connections
- 1.3K Connectors
- 309 Workbench
- 17 Cloud Integrations
- Data & ETL
- 2.3K Magic ETL
- 120 SQL DataFlows
- 666 Datasets
- Visualize & Apps
- 90 App Studio
- 198 Pro-code Components
- 2.6K Charting & Analyzer
- 873 Calculations & Variables (Beast Mode)
- AI & Data science
- 23 Domo AI & AI Chat
- 4 Managing AI
- 18 Jupyter Workspaces
- Automate
- 122 Workflows
- Alerts
- Distribute
- 118 Domo Everywhere
- 284 Reporting
- Manage
- 145 Governance & Security
- 489 APIs
- 11 Add-ins & Plugins
- 13 Domo Community Gallery
- 49 Product Releases
- 13 Domo University
- Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 118 Community Announcements
- 5K Archive