Connect AI model providers to Weles (Ollama, OpenAI, GroqCloud, DeepSeek, Gemini, NVIDIA NIM) and select default LLM, embedding, and OCR models.
Weles separates provider connections from the model selected for a document type or agent stage. Configure providers as an administrator in LLM Config before creating workflows.
Open LLM Config and select Add Provider under Configured Providers.
Select Provider Type: Ollama (Local), OpenAI, GroqCloud, DeepSeek, Google (Gemini), or NVIDIA NIM. This chooses the API format. An OpenAI-compatible endpoint can use the OpenAI option when its API is compatible; test the actual service and model.
Optionally enter a Display Name to distinguish connections. Choose Type: LLM Only, Embedding Only, or LLM + Embedding. This controls which active-provider selectors show the connection; it does not add capabilities the service lacks.
Enter the API Key if required, the Base URL reachable from the Weles containers, and an available Default Model identifier. Selecting a provider type can prefill defaults; replace them with the values approved for your deployment. Model names and service capabilities can change.
Select Save, then use the provider card’s connection test. Use the model list/refresh control to inspect available models. Confirm the desired model is available for your account and supports the intended task, including tool calls or image input when needed.
In Active Providers, select the connection for LLM Provider, Embedding Provider, and OCR Provider as needed. The selection is saved when changed. Only providers marked LLM or both appear for LLM and OCR; providers marked embedding or both appear for embeddings.
When no active LLM or embedding provider is selected, Weles falls back to Ollama. With no OCR provider selected, it uses the active LLM provider. A reachable provider and compatible model are still required.
Choose Ollama (Local), provide a recognizable display name and the Ollama base URL visible to the backend and worker containers, and enter the name of a model already available on that Ollama server. Save, test the connection, and choose it as the active LLM provider. The deployment’s OLLAMA_HOST is used as the default Ollama URL; verify host networking on your platform. localhost inside a container refers to that container, not the host. For embeddings, configure a suitable embedding model and verify its compatibility with the collection.
Choose OpenAI, enter the service API key, review the prefilled base URL, and enter an available model ID for your account. Choose LLM Only unless you have verified that the selected model and provider configuration are appropriate for embeddings too. Save, test, and select the provider as the active LLM. For embeddings, consider a separate provider entry with an embedding model as its default.
A document type or agent stage can specify a model name. The agent stage uses the active LLM provider but passes its configured model name to that provider. In the current builder the Model Ollama list is populated by the active LLM provider’s model-list endpoint; despite the label it is not a separate provider selector. Ensure the chosen model ID works with the active provider. Test agent tool calling and any vision requirements with the actual model.
External providers can receive prompts, document content, and tool results. Review data-handling terms and your organization’s policies. Provider API keys are stored in the application database; do not assume the Secrets Vault encrypts provider keys. Protect database access and backups.
If a test or model listing fails, check the endpoint from the container network, API key, TLS, firewall rules, provider account permissions, and model name. A connection test alone does not prove that the configured model supports tool calls, OCR, or embeddings. See agent workflows and troubleshooting.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Weles Documentation","description":"Weles documentation: deploy and operate an on-premises AI assistant platform for company knowledge, AI agent workflows, intelligent document processing, and OCR.","colors":{"primary":"#16A34A","light":"#07C983","dark":"#15803D"},"logo":{"light":"https://mintcdn.com/weles-ai/69L-b7AW2V9Rp9yL/images/logo.svg?fit=max\u0026auto=format\u0026n=69L-b7AW2V9Rp9yL\u0026q=85\u0026s=a20ff2971489b24d3f0f65c738b6f807","dark":"https://mintcdn.com/weles-ai/XixGqBqwYLWYtsXP/images/logo-white.svg?fit=max\u0026auto=format\u0026n=XixGqBqwYLWYtsXP\u0026q=85\u0026s=507bcc794d6e5ec0cd503590b4227e97","href":"https://welesai.com"},"favicon":{"light":"https://mintcdn.com/weles-ai/69L-b7AW2V9Rp9yL/images/logo.svg?fit=max\u0026auto=format\u0026n=69L-b7AW2V9Rp9yL\u0026q=85\u0026s=a20ff2971489b24d3f0f65c738b6f807","dark":"https://mintcdn.com/weles-ai/XixGqBqwYLWYtsXP/images/logo-white.svg?fit=max\u0026auto=format\u0026n=XixGqBqwYLWYtsXP\u0026q=85\u0026s=507bcc794d6e5ec0cd503590b4227e97"},"navbar":{"links":[{"href":"mailto:support@welesai.com","label":"Support"}],"primary":{"type":"button","label":"Weles","href":"https://welesai.com"}},"seo":{"metatags":{"keywords":"Weles, WelesAI, on-premises AI, AI assistant, AI agents, agent workflows, intelligent document processing, IDP, OCR, LLM, self-hosted AI","author":"WelesAI","robots":"index, follow","og:locale":"en_US","theme-color":"#16A34A"}},"icons":{"library":"fontawesome"},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"weles-ai","hasAudioNarration":false,"actualSubdomain":"weles-ai","customDomains":["docs.welesai.com"],"gitSource":{"type":"artifacts","owner":"prod","repo":"6af1e377576b5817482d859e","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6af1e407332b36706b716649"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af24f2eddd7e7bcd0c78922","clientVersion":"0.0.4102","searchFilterCounts":[{"language":"default","tag":"Administration","count":6},{"language":"default","tag":"Workflows","count":5},{"language":"default","tag":"For AI Agents","count":3},{"language":"default","tag":"Getting Started","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"img.nav-logo{height:4rem!important;width:auto!important}#navbar{padding-top:0.5rem;padding-bottom:0.5rem}a:has(>img.nav-logo){display:flex!important;align-items:center;gap:0.5rem}a:has(>img.nav-logo)::after{content:\"Weles\";font-size:1.5rem;font-weight:700;line-height:1;color:#111827}html.dark a:has(>img.nav-logo)::after{color:#ffffff}"}],"page":{"pagePath":"administration/llm-providers","slug":"/administration/llm-providers","pageMetadata":{"title":"Configure AI providers","description":"Connect AI model providers to Weles (Ollama, OpenAI, GroqCloud, DeepSeek, Gemini, NVIDIA NIM) and select default LLM, embedding, and OCR models.","keywords":["LLM providers","Ollama","OpenAI","Gemini","NVIDIA NIM","embedding models","OCR"],"href":"/administration/llm-providers"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Connect AI model providers to Weles (Ollama, OpenAI, GroqCloud, DeepSeek, Gemini, NVIDIA NIM) and select default LLM, embedding, and OCR models.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,strong:`strong`,..._provideComponents(),...props.components},{Heading,Warning}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Weles separates provider connections from the model selected for a document type or agent stage. Configure providers as an administrator in `,_jsx(_components.strong,{children:`LLM Config`}),` before creating workflows.`]}),`\n`,_jsx(Heading,{level:`2`,id:`add-a-provider`,children:`Add a provider`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Open `,_jsx(_components.strong,{children:`LLM Config`}),` and select `,_jsx(_components.strong,{children:`Add Provider`}),` under `,_jsx(_components.strong,{children:`Configured Providers`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Select `,_jsx(_components.strong,{children:`Provider Type`}),`: `,_jsx(_components.strong,{children:`Ollama (Local)`}),`, `,_jsx(_components.strong,{children:`OpenAI`}),`, `,_jsx(_components.strong,{children:`GroqCloud`}),`, `,_jsx(_components.strong,{children:`DeepSeek`}),`, `,_jsx(_components.strong,{children:`Google (Gemini)`}),`, or `,_jsx(_components.strong,{children:`NVIDIA NIM`}),`. This chooses the API format. An OpenAI-compatible endpoint can use the OpenAI option when its API is compatible; test the actual service and model.`]}),`\n`,_jsxs(_components.li,{children:[`Optionally enter a `,_jsx(_components.strong,{children:`Display Name`}),` to distinguish connections. Choose `,_jsx(_components.strong,{children:`Type`}),`: `,_jsx(_components.strong,{children:`LLM Only`}),`, `,_jsx(_components.strong,{children:`Embedding Only`}),`, or `,_jsx(_components.strong,{children:`LLM + Embedding`}),`. This controls which active-provider selectors show the connection; it does not add capabilities the service lacks.`]}),`\n`,_jsxs(_components.li,{children:[`Enter the `,_jsx(_components.strong,{children:`API Key`}),` if required, the `,_jsx(_components.strong,{children:`Base URL`}),` reachable from the Weles containers, and an available `,_jsx(_components.strong,{children:`Default Model`}),` identifier. Selecting a provider type can prefill defaults; replace them with the values approved for your deployment. Model names and service capabilities can change.`]}),`\n`,_jsxs(_components.li,{children:[`Select `,_jsx(_components.strong,{children:`Save`}),`, then use the provider card’s connection test. Use the model list/refresh control to inspect available models. Confirm the desired model is available for your account and supports the intended task, including tool calls or image input when needed.`]}),`\n`,_jsxs(_components.li,{children:[`In `,_jsx(_components.strong,{children:`Active Providers`}),`, select the connection for `,_jsx(_components.strong,{children:`LLM Provider`}),`, `,_jsx(_components.strong,{children:`Embedding Provider`}),`, and `,_jsx(_components.strong,{children:`OCR Provider`}),` as needed. The selection is saved when changed. Only providers marked LLM or both appear for LLM and OCR; providers marked embedding or both appear for embeddings.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`When no active LLM or embedding provider is selected, Weles falls back to Ollama. With no OCR provider selected, it uses the active LLM provider. A reachable provider and compatible model are still required.`}),`\n`,_jsx(Heading,{level:`2`,id:`example-local-ollama`,children:`Example: local Ollama`}),`\n`,_jsxs(_components.p,{children:[`Choose `,_jsx(_components.strong,{children:`Ollama (Local)`}),`, provide a recognizable display name and the Ollama base URL visible to the backend and worker containers, and enter the name of a model already available on that Ollama server. Save, test the connection, and choose it as the active LLM provider. The deployment’s `,_jsx(_components.code,{children:`OLLAMA_HOST`}),` is used as the default Ollama URL; verify host networking on your platform. `,_jsx(_components.code,{children:`localhost`}),` inside a container refers to that container, not the host. For embeddings, configure a suitable embedding model and verify its compatibility with the collection.`]}),`\n`,_jsx(Heading,{level:`2`,id:`example-openai`,children:`Example: OpenAI`}),`\n`,_jsxs(_components.p,{children:[`Choose `,_jsx(_components.strong,{children:`OpenAI`}),`, enter the service API key, review the prefilled base URL, and enter an available model ID for your account. Choose `,_jsx(_components.strong,{children:`LLM Only`}),` unless you have verified that the selected model and provider configuration are appropriate for embeddings too. Save, test, and select the provider as the active LLM. For embeddings, consider a separate provider entry with an embedding model as its default.`]}),`\n`,_jsx(Heading,{level:`2`,id:`choosing-models-for-workflows`,children:`Choosing models for workflows`}),`\n`,_jsxs(_components.p,{children:[`A document type or agent stage can specify a model name. The agent stage uses the active LLM provider but passes its configured model name to that provider. In the current builder the `,_jsx(_components.strong,{children:`Model Ollama`}),` list is populated by the active LLM provider’s model-list endpoint; despite the label it is not a separate provider selector. Ensure the chosen model ID works with the active provider. Test agent tool calling and any vision requirements with the actual model.`]}),`\n`,_jsx(Warning,{children:`External providers can receive prompts, document content, and tool results. Review data-handling terms and your organization’s policies. Provider API keys are stored in the application database; do not assume the Secrets Vault encrypts provider keys. Protect database access and backups.`}),`\n`,_jsxs(_components.p,{children:[`If a test or model listing fails, check the endpoint from the container network, API key, TLS, firewall rules, provider account permissions, and model name. A connection test alone does not prove that the configured model supports tool calls, OCR, or embeddings. See `,_jsx(_components.a,{href:`/workflows/agent-workflow`,children:`agent workflows`}),` and `,_jsx(_components.a,{href:`/administration/troubleshooting`,children:`troubleshooting`}),`.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Configure AI providers","description":"Connect AI model providers to Weles (Ollama, OpenAI, GroqCloud, DeepSeek, Gemini, NVIDIA NIM) and select default LLM, embedding, and OCR models.","keywords":["LLM providers","Ollama","OpenAI","Gemini","NVIDIA NIM","embedding models","OCR"],"href":"/administration/llm-providers"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Add a provider","slug":"add-a-provider","depth":2,"children":[]},{"title":"Example: local Ollama","slug":"example-local-ollama","depth":2,"children":[]},{"title":"Example: OpenAI","slug":"example-openai","depth":2,"children":[]},{"title":"Choosing models for workflows","slug":"choosing-models-for-workflows","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"weles-ai","siteName":"Weles Documentation","title":"Configure AI providers - Weles Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-09T19:00:31.027Z","originalFileLocation":"administration/llm-providers.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Connect AI model providers to Weles (Ollama, OpenAI, GroqCloud, DeepSeek, Gemini, NVIDIA NIM) and select default LLM, embedding, and OCR models.\">\u003cmeta data-mint-head name=\"keywords\" content=\"Weles, WelesAI, on-premises AI, AI assistant, AI agents, agent workflows, intelligent document processing, IDP, OCR, LLM, self-hosted AI\">\u003cmeta data-mint-head name=\"application-name\" content=\"Weles Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003cmeta data-mint-head name=\"robots\" content=\"index, follow\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/weles-ai/WuQ_JNnkvlzL7wf3/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/weles-ai/WuQ_JNnkvlzL7wf3/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/weles-ai/WuQ_JNnkvlzL7wf3/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/weles-ai/WuQ_JNnkvlzL7wf3/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/weles-ai/WuQ_JNnkvlzL7wf3/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/weles-ai/WuQ_JNnkvlzL7wf3/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/weles-ai/WuQ_JNnkvlzL7wf3/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/weles-ai/WuQ_JNnkvlzL7wf3/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/weles-ai/WuQ_JNnkvlzL7wf3/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Configure AI providers - Weles Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Connect AI model providers to Weles (Ollama, OpenAI, GroqCloud, DeepSeek, Gemini, NVIDIA NIM) and select default LLM, embedding, and OCR models.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Weles Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.welesai.com/administration/llm-providers\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://weles-ai.mintlify.site/_mintlify/api/og/v2?division=Administration\u0026amp;title=Configure+AI+providers\u0026amp;description=Connect+AI+model+providers+to+Weles+%28Ollama%2C+OpenAI%2C+GroqCloud%2C+DeepSeek%2C+Gemini%2C+NVIDIA+NIM%29+and+select+default+LLM%2C+embedding%2C+and+OCR+models.\u0026amp;theme=6e7c9dd4f0cf6ebab663dfed\u0026amp;signature=c5f960f9deefd344d6d6ca824d3b144fd57aaf97d31fb06215a0f9e7b84fb000\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Configure AI providers - Weles Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Connect AI model providers to Weles (Ollama, OpenAI, GroqCloud, DeepSeek, Gemini, NVIDIA NIM) and select default LLM, embedding, and OCR models.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://weles-ai.mintlify.site/_mintlify/api/og/v2?division=Administration\u0026amp;title=Configure+AI+providers\u0026amp;description=Connect+AI+model+providers+to+Weles+%28Ollama%2C+OpenAI%2C+GroqCloud%2C+DeepSeek%2C+Gemini%2C+NVIDIA+NIM%29+and+select+default+LLM%2C+embedding%2C+and+OCR+models.\u0026amp;theme=6e7c9dd4f0cf6ebab663dfed\u0026amp;signature=c5f960f9deefd344d6d6ca824d3b144fd57aaf97d31fb06215a0f9e7b84fb000\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/weles-ai/WuQ_JNnkvlzL7wf3/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Weles Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#16A34A\">\u003cmeta data-mint-head name=\"og:locale\" content=\"en_US\">\u003cmeta data-mint-head name=\"author\" content=\"WelesAI\">\u003cmeta data-mint-head name=\"theme-color\" content=\"#16A34A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.welesai.com/administration/llm-providers\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/administration/llm-providers.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.welesai.com/#organization\",\"name\":\"Weles Documentation\",\"url\":\"https://docs.welesai.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/weles-ai/69L-b7AW2V9Rp9yL/images/logo.svg?fit=max\u0026auto=format\u0026n=69L-b7AW2V9Rp9yL\u0026q=85\u0026s=a20ff2971489b24d3f0f65c738b6f807\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.welesai.com#website\",\"name\":\"Weles Documentation\",\"url\":\"https://docs.welesai.com\",\"publisher\":{\"@id\":\"https://docs.welesai.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.welesai.com/administration/llm-providers#webpage\",\"url\":\"https://docs.welesai.com/administration/llm-providers\",\"name\":\"Configure AI providers\",\"description\":\"Connect AI model providers to Weles (Ollama, OpenAI, GroqCloud, DeepSeek, Gemini, NVIDIA NIM) and select default LLM, embedding, and OCR models.\",\"dateModified\":\"2026-11-09T19:00:31.027Z\",\"isPartOf\":{\"@id\":\"https://docs.welesai.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.welesai.com/administration/llm-providers#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.welesai.com/administration/llm-providers#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Administration\",\"item\":\"https://docs.welesai.com/administration/configuration\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Configure AI providers\",\"item\":\"https://docs.welesai.com/administration/llm-providers\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.welesai.com/administration/llm-providers#article\",\"headline\":\"Configure AI providers\",\"name\":\"Configure AI providers\",\"description\":\"Connect AI model providers to Weles (Ollama, OpenAI, GroqCloud, DeepSeek, Gemini, NVIDIA NIM) and select default LLM, embedding, and OCR models.\",\"url\":\"https://docs.welesai.com/administration/llm-providers\",\"mainEntityOfPage\":{\"@id\":\"https://docs.welesai.com/administration/llm-providers#webpage\"},\"dateModified\":\"2026-11-09T19:00:31.027Z\",\"keywords\":\"LLM providers, Ollama, OpenAI, Gemini, NVIDIA NIM, embedding models, OCR\",\"publisher\":{\"@id\":\"https://docs.welesai.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.welesai.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Weles Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Weles Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/administration/llm-providers.md","siteName":"Weles Documentation","nav":{"global":null,"pages":[{"group":"Getting Started","pages":[{"title":"Welcome to Weles","sidebarTitle":"Introduction","href":"/index"},{"title":"Install from production images","sidebarTitle":"Production installation","href":"/quickstart"},{"title":"Using Weles","href":"/guides/using-weles"}]},{"group":"Administration","pages":[{"title":"Configuration and first setup","href":"/administration/configuration"},{"title":"Licensing","href":"/administration/licensing"},{"title":"Troubleshooting","description":"Troubleshoot common Weles problems: containers that do not start, login and redirect failures, AI provider errors, and workflow issues.","href":"/administration/troubleshooting"},{"title":"Configure AI providers","href":"/administration/llm-providers"},{"title":"Dashboard","description":"Monitor document processing, operators, activity, tools, chats, and LLM usage.","href":"/administration/dashboard"},{"title":"Administration areas","href":"/administration/application-areas"}]},{"group":"Workflows","pages":[{"title":"Create document types","href":"/workflows/document-types"},{"title":"Create your first workflow","href":"/workflows/first-workflow"},{"title":"Build an agent workflow","href":"/workflows/agent-workflow"},{"title":"Add and configure agent tools","href":"/workflows/agent-tools"},{"title":"Workflow stages reference","href":"/workflows/stages"}]},{"group":"For AI Agents","pages":[{"title":"Start here: building Weles with AI","href":"/ai-agents/start-here"},{"title":"Generate workflow imports with AI","sidebarTitle":"Generate workflow imports","href":"/workflows/ai-generated-imports"},{"title":"Create Tool Manager packages","href":"/ai-agents/tool-packages"}]}]},"basePath":"","title":"Configure AI providers - Weles Documentation","buildId":"dpl_596ePT575z4qnAFksq1biRW97aLY","deploymentId":"dpl_596ePT575z4qnAFksq1biRW97aLY","dynamics":[],"chunks":[]}