@iblai/iblai-js 1.8.2 → 1.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -170973,6 +170973,52 @@ function AgentLLMTab({ showConfigurationHeader = true, getLLMProviderDetails, la
|
|
|
170973
170973
|
}, llms: (llmProviders !== null && llmProviders !== void 0 ? llmProviders : []), getLLMProviderDetails: getLLMProviderDetails, labels: labels.providerModal }))] }) })] }));
|
|
170974
170974
|
}
|
|
170975
170975
|
|
|
170976
|
+
/**
|
|
170977
|
+
* Returns the canonical logo path and display name for an LLM provider.
|
|
170978
|
+
* `logo` is a static-root path (e.g. `/llm-amazon-provider.png`); the package
|
|
170979
|
+
* ships the canonical assets under `@iblai/web-containers/public/` — copy them
|
|
170980
|
+
* into your app's static-root (`public/` for Next.js) so the paths resolve.
|
|
170981
|
+
*/
|
|
170982
|
+
function getLLMProviderDetails(llmProvider, llmName) {
|
|
170983
|
+
switch (llmProvider) {
|
|
170984
|
+
case 'groq':
|
|
170985
|
+
return { logo: '/llm-groq-provider.png', name: 'Groq' };
|
|
170986
|
+
case 'azure_openai':
|
|
170987
|
+
return { logo: '/llm-microsoft-provider.png', name: 'Microsoft' };
|
|
170988
|
+
case 'openai':
|
|
170989
|
+
if (llmName)
|
|
170990
|
+
return { logo: '/llm-openai-provider.jpg', name: 'OpenAI' };
|
|
170991
|
+
return { logo: '/llm-openai-provider-2.svg', name: 'OpenAI' };
|
|
170992
|
+
case 'mistral':
|
|
170993
|
+
return { logo: '/llm-mistral-provider.jpeg', name: 'Mistral' };
|
|
170994
|
+
case 'google':
|
|
170995
|
+
if (llmName)
|
|
170996
|
+
return { logo: '/llm-gemini-provider.png', name: 'Google' };
|
|
170997
|
+
return { logo: '/llm-google-provider.svg', name: 'Google' };
|
|
170998
|
+
case 'llama':
|
|
170999
|
+
return { logo: '/llm-llama-provider.jpeg', name: 'Meta' };
|
|
171000
|
+
case 'perplexity':
|
|
171001
|
+
return { logo: '/llm-perplexity-provider.webp', name: 'Perplexity' };
|
|
171002
|
+
case 'deepseek':
|
|
171003
|
+
return { logo: '/llm-deepseek-provider.png', name: 'DeepSeek' };
|
|
171004
|
+
case 'xai':
|
|
171005
|
+
return { logo: '/llm-xai-provider.jpg', name: 'xAI' };
|
|
171006
|
+
case 'IBLChatAnthropic':
|
|
171007
|
+
case 'anthropic':
|
|
171008
|
+
return { logo: '/llm-claude-provider.png', name: 'Anthropic' };
|
|
171009
|
+
case 'IBLChatNvidia':
|
|
171010
|
+
case 'nvidia':
|
|
171011
|
+
return { logo: '/llm-nvidia-provider.webp', name: 'NVIDIA' };
|
|
171012
|
+
case 'bedrock':
|
|
171013
|
+
case 'amazon-bedrock':
|
|
171014
|
+
case 'amazon_bedrock':
|
|
171015
|
+
case 'IBLChatBedrock':
|
|
171016
|
+
return { logo: '/llm-amazon-provider.png', name: 'Amazon' };
|
|
171017
|
+
default:
|
|
171018
|
+
return { logo: '/llm-generic-provider.png', name: llmProvider };
|
|
171019
|
+
}
|
|
171020
|
+
}
|
|
171021
|
+
|
|
170976
171022
|
function useTools({ labels }) {
|
|
170977
171023
|
var _a, _b;
|
|
170978
171024
|
const { tenantKey, mentorId, username } = useAgentSettings();
|
|
@@ -177442,5 +177488,5 @@ var trainOrDeleteModal = /*#__PURE__*/Object.freeze({
|
|
|
177442
177488
|
TrainOrDeleteModal: TrainOrDeleteModal
|
|
177443
177489
|
});
|
|
177444
177490
|
|
|
177445
|
-
export { AGENT_ACCESS_TAB_LABELS, AGENT_API_TAB_LABELS, AGENT_DATASETS_TAB_LABELS, AGENT_DISCLAIMERS_TAB_LABELS, AGENT_EMBED_TAB_LABELS, AGENT_HISTORY_TAB_LABELS, AGENT_LLM_TAB_LABELS, AGENT_MEMORY_TAB_LABELS, AGENT_PICKER_LABELS, AGENT_PROMPTS_TAB_LABELS, AGENT_SAFETY_TAB_LABELS, AGENT_SEARCH_LABELS, AGENT_SETTINGS_TAB_LABELS, AGENT_TOOLS_TAB_LABELS, Account, AgentAccessTab, AgentApiTab, AgentCard, AgentDatasetsTab, AgentDisclaimersTab, AgentEmbedTab, AgentEmptyState, AgentHistoryTab, AgentLLMTab, AgentMemoryTab, AgentPromptsTab, AgentSafetyTab, AgentSearch, AgentSearchFilters, AgentSearchInput, AgentSettingsProvider, AgentSettingsTab, AgentToolsTab, AppSidebar, ClientErrorPage, ConversationStarters, CopyButton, CopyMentorModal, CourseBox, CourseContentLayout, CourseContentTabPage, CreatePathwayModal, CredentialDetailModal, CredentialMiniBox, DeleteMentorModal, EMPTY_PROGRAM_SETTINGS_FORM, EdxIframe, ErrorPage, GreetingMethod, McpTab, MediaBox, NavBar, OrganizationTab, PathwayDetailModal, ProfileInfoCards, ProfileTabs, ProgramDetailModal, SsoLogin, StarButton, UserProfileDropdown, UserProfileModal, formatDateString, initializeLocalStorageWithObject, resolveAgentPickerLabels, resolveAgentSearchLabels, resolveSettingsTabLabels, useAgentSearch, useAgentSearchWithPagination, useAgentSettings, useAgentStar, useGetChatDetails, useTimeTracker };
|
|
177491
|
+
export { AGENT_ACCESS_TAB_LABELS, AGENT_API_TAB_LABELS, AGENT_DATASETS_TAB_LABELS, AGENT_DISCLAIMERS_TAB_LABELS, AGENT_EMBED_TAB_LABELS, AGENT_HISTORY_TAB_LABELS, AGENT_LLM_TAB_LABELS, AGENT_MEMORY_TAB_LABELS, AGENT_PICKER_LABELS, AGENT_PROMPTS_TAB_LABELS, AGENT_SAFETY_TAB_LABELS, AGENT_SEARCH_LABELS, AGENT_SETTINGS_TAB_LABELS, AGENT_TOOLS_TAB_LABELS, Account, AgentAccessTab, AgentApiTab, AgentCard, AgentDatasetsTab, AgentDisclaimersTab, AgentEmbedTab, AgentEmptyState, AgentHistoryTab, AgentLLMTab, AgentMemoryTab, AgentPromptsTab, AgentSafetyTab, AgentSearch, AgentSearchFilters, AgentSearchInput, AgentSettingsProvider, AgentSettingsTab, AgentToolsTab, AppSidebar, ClientErrorPage, ConversationStarters, CopyButton, CopyMentorModal, CourseBox, CourseContentLayout, CourseContentTabPage, CreatePathwayModal, CredentialDetailModal, CredentialMiniBox, DeleteMentorModal, EMPTY_PROGRAM_SETTINGS_FORM, EdxIframe, ErrorPage, GreetingMethod, McpTab, MediaBox, NavBar, OrganizationTab, PathwayDetailModal, ProfileInfoCards, ProfileTabs, ProgramDetailModal, SsoLogin, StarButton, UserProfileDropdown, UserProfileModal, formatDateString, getLLMProviderDetails, initializeLocalStorageWithObject, resolveAgentPickerLabels, resolveAgentSearchLabels, resolveSettingsTabLabels, useAgentSearch, useAgentSearchWithPagination, useAgentSettings, useAgentStar, useGetChatDetails, useTimeTracker };
|
|
177446
177492
|
//# sourceMappingURL=index.esm.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iblai/iblai-js",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.3",
|
|
4
4
|
"description": "Unified JavaScript SDK for IBL.ai — re-exports data-layer, web-containers, and web-utils under a single package",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
"dotenv": "16.6.1",
|
|
63
63
|
"winston": "3.19.0",
|
|
64
64
|
"@iblai/data-layer": "1.4.0",
|
|
65
|
-
"@iblai/mcp": "1.4.
|
|
66
|
-
"@iblai/web-containers": "1.6.
|
|
65
|
+
"@iblai/mcp": "1.4.5",
|
|
66
|
+
"@iblai/web-containers": "1.6.3",
|
|
67
67
|
"@iblai/web-utils": "1.6.0"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|