{"id":24532312,"url":"https://github.com/charlesw-salesforce/code-live-models-api","last_synced_at":"2025-08-11T17:08:54.081Z","repository":{"id":253284912,"uuid":"842718900","full_name":"charlesw-salesforce/code-live-models-api","owner":"charlesw-salesforce","description":"This is a companion repository to my August 15, 2024 codeLive on the Models API. It demonstrates how to use the Salesforce Models API to build a custom chatbot with Apex and Lightning Web Components.","archived":false,"fork":false,"pushed_at":"2024-08-15T03:51:59.000Z","size":14985,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-01T14:59:03.770Z","etag":null,"topics":["salesforce","salesforce-developers"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/charlesw-salesforce.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-15T00:05:39.000Z","updated_at":"2024-09-24T10:46:37.000Z","dependencies_parsed_at":"2024-08-17T01:18:26.063Z","dependency_job_id":null,"html_url":"https://github.com/charlesw-salesforce/code-live-models-api","commit_stats":null,"previous_names":["charlesw-salesforce/code-live-models-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/charlesw-salesforce/code-live-models-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charlesw-salesforce%2Fcode-live-models-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charlesw-salesforce%2Fcode-live-models-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charlesw-salesforce%2Fcode-live-models-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charlesw-salesforce%2Fcode-live-models-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/charlesw-salesforce","download_url":"https://codeload.github.com/charlesw-salesforce/code-live-models-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charlesw-salesforce%2Fcode-live-models-api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269922906,"owners_count":24496999,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-11T02:00:10.019Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["salesforce","salesforce-developers"],"created_at":"2025-01-22T09:18:47.286Z","updated_at":"2025-08-11T17:08:54.039Z","avatar_url":"https://github.com/charlesw-salesforce.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Exploring the Models API\n\nThis is a companion repository to the [\"codeLive: Exploring the Models API (Beta)\" livestream](https://www.youtube.com/watch?v=hf95_ghGeNI), which aired on August 15, 2024. It shows how to build and deploy a chatbot that supports multiple models, including OpenAI GPT-4o and Anthropic's Claude Haiku.\n\n![Demo of the Gen AI Chat App being used to ask who won the 2004 NBA Championship.](/demo.gif)\n\n## Using this repository\n\n1. Create a Custom Einstein AI Playground using the link in the [Get Started with Prompt Builder](https://trailhead.salesforce.com/content/learn/projects/quick-start-prompt-builder/get-started-with-prompt-builder) Trailhead module.\n2. Turn on [Einstein Generative AI](https://help.salesforce.com/s/articleView?id=sf.generative_ai_enable.htm\u0026type=5).\n3. Clone and pull down this repository.\n4. Authorize your newly created Einstein AI Playground.\n5. [Deploy the Apex Classes and chatUtility component](https://developer.salesforce.com/docs/platform/sfvscode-extensions/guide/deploy-source.html) to the org.\n6. Edit the Sales app in the [App Manager](https://help.salesforce.com/s/articleView?id=sf.apps_lightning_utilities.htm\u0026type=5).\n7. Within the Sales app App Manager, add the chatUtility component as a Utility Item.\n\n## Resources\n\n- [Models API Developer Guide](https://developer.salesforce.com/docs/einstein/genai/guide/models-api.html)\n- [Access Models API with REST](https://developer.salesforce.com/docs/einstein/genai/guide/access-models-api-with-rest.html)\n- [Access Models API with Apex](https://developer.salesforce.com/docs/einstein/genai/guide/access-models-api-with-apex.html)\n- [Models API Postman Collection](https://www.postman.com/salesforce-developers/salesforce-developers/collection/onih7sc/models-apis-beta)\n- [Activate Einstein Generative AI](https://help.salesforce.com/s/articleView?id=sf.generative_ai_enable.htm\u0026type=5)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharlesw-salesforce%2Fcode-live-models-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcharlesw-salesforce%2Fcode-live-models-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharlesw-salesforce%2Fcode-live-models-api/lists"}