Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Property Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Technical
  3. ODX LLM v 19.0
  4. Sales Conditions FAQ

ODX LLM

by Bashir Hassan https://www.odxbuilder.com/
Odoo
v 19.0 Third Party 15
Download for v 19.0 Deploy on Odoo.sh
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 1127
Technical Name ai_llm_provider
LicenseLGPL-3
Websitehttps://www.odxbuilder.com/
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 1127
Technical Name ai_llm_provider
LicenseLGPL-3
Websitehttps://www.odxbuilder.com/

One API for every LLM provider.

OpenAI, Anthropic, Gemini, Groq, Mistral, ElevenLabs, Ollama, OpenRouter, and any OpenAI-compatible endpoint. Configure once, call from any Odoo module.

10 AI providers configured in Odoo

10 providers, 20+ models


Setup

Add a provider in 30 seconds.

Pick a provider type, paste your API key, add your models. Test the connection with one click.

Anthropic provider with successful connection test

Anthropic with Claude Sonnet 4.6 and Claude Opus 4.6


Settings

Managed from Odoo Settings.

Providers appear under the ODX AI section. API keys are restricted to system administrators.

ODX AI section in Odoo Settings

API

Two methods. That covers it.

chat_completion() for a full response. chat_completion_stream() for SSE streaming. Both normalize tool calls, reasoning content, and usage across all providers.

your_module.py
provider = self.env["ai.llm.provider"].search([
    ("code", "=", "anthropic"),
    ("is_active", "=", True),
], limit=1)

# Synchronous
result = provider.chat_completion(
    "claude-sonnet-4-6",
    [{"role": "user", "content": "Summarize this invoice."}],
    tools=tool_definitions,
)
answer = result["choices"][0]["message"]["content"]

# Streaming
for event in provider.chat_completion_stream("claude-sonnet-4-6", messages):
    if event["type"] == "content_delta":
        yield event["delta"]
    elif event["type"] == "result":
        tool_calls = event["result"]["choices"][0]["message"].get("tool_calls")

Under the Hood

What it handles for you.

Tool Calling

Normalizes function call formats across providers. Handles streamed argument chunks and multi-call responses.

Reasoning Content

Extracts thinking/reasoning blocks from providers that emit them. Yields them as separate stream events so you can display or discard them.

Rate Limits

Parses Retry-After headers. Retries transient errors with capped backoff. Fails fast on long rate limits instead of blocking Odoo workers.

SSRF Protection

Blocks private IPs and internal hostnames on provider URLs. Ollama is exempted since it runs locally.

Text-to-Speech

Generate audio from text using ElevenLabs or other TTS providers. Uses the same auth and retry infrastructure as chat completions.

Audio Transcription

Transcribe audio via OpenAI Whisper. Supports webm, mp4, wav, mp3, ogg, and m4a.


Providers

Supported out of the box.

Provider Type Auth
OpenAI Chat, TTS, Embedding, Whisper Bearer token
Anthropic Chat Bearer token
Google Gemini Chat, Embedding Bearer token
Groq Chat Bearer token
Mistral Chat, Embedding Bearer token
ElevenLabs Text-to-Speech xi-api-key (automatic)
OpenRouter Chat (multi-model) Bearer token
Ollama Chat (local) None required
Custom Any Bearer or custom headers

Models

One default model per purpose.

Each model stores its purpose, max tokens, tool support, and vision capability. Mark one as default per purpose. Call get_default_model("chat") from any module to get it.

# Get the default chat model across all providers
model = self.env["ai.llm.model"].get_default_model("chat")

# Use it
result = model.provider_id.chat_completion(
    model.model_id,
    messages,
    tools=tools if model.supports_tools else None,
)

ODX LLM

Multi-provider LLM integration for Odoo 19

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with