Skip to Content
Menu
v 16.0 Third Party 16
Download for v 16.0 Deploy on Odoo.sh
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Community Apps Dependencies
Lines of code 3464
Technical Name llm_openai
LicenseLGPL-3
Websitehttps://github.com/apexive/odoo-llm
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Community Apps Dependencies
Lines of code 3464
Technical Name llm_openai
LicenseLGPL-3
Websitehttps://github.com/apexive/odoo-llm

OpenAI Provider for Odoo LLM

Connect your Odoo instance with OpenAI's powerful models like GPT-4, GPT-3.5, and more.

v16.0.1.1.2 LGPL-3 GitHub Repository

This module provides a seamless integration with OpenAI API and supports OpenAI-compatible endpoints from various providers.

OpenAI Provider Logo
OpenAI Integration Banner

Overview

The OpenAI Provider module extends the LLM Integration Base to connect with OpenAI's powerful models. This module allows you to use ChatGPT, GPT-4, and other OpenAI models directly from your Odoo instance.

Key Capabilities

  • Chat completions - Generate conversational responses using GPT models
  • Text embeddings - Create vector representations of text using OpenAI's embedding models
  • Function calling - Enable AI models to execute functions through a standardized interface
  • Multi-provider support - Connect to OpenAI-compatible endpoints from various providers

Configuration

Setting up the OpenAI provider is straightforward:

  1. Install the module in your Odoo instance
  2. Navigate to LLM > Configuration > Providers
  3. Create a new provider and select "OpenAI" as the provider type
  4. Enter your OpenAI API key
  5. Click "Fetch Models" to import available models
  6. Set default models for chat, embedding, and other services

OpenAI-Compatible Endpoints

Many AI providers offer OpenAI-compatible endpoints, allowing you to use the same code and configuration with different services. This module supports connecting to any of these compatible endpoints by changing the base URL in the provider configuration.

Supported OpenAI-Compatible Endpoints

Provider Base URL Models Notes
OpenAI https://api.openai.com/v1/ GPT-4o, GPT-4, GPT-3.5 Turbo, etc. Official OpenAI API
Anthropic https://api.anthropic.com/v1/ Claude 3 Opus, Sonnet, Haiku Requires Anthropic API key
DeepSeek https://api.deepseek.com/v1/ DeepSeek-Coder, DeepSeek-Chat Requires DeepSeek API key
Ollama http://localhost:11434/v1/ Llama, Mistral, Vicuna, etc. Local deployment, no API key needed
Google AI https://generativelanguage.googleapis.com/v1beta/openai/ Gemini models Requires Google API key
Mistral AI https://api.mistral.ai/v1/ Mistral-7B, Mixtral-8x7B, etc. Requires Mistral AI API key

Using OpenAI-Compatible Endpoints

To use an alternative provider with an OpenAI-compatible endpoint:

  1. Create a new provider in LLM > Configuration > Providers
  2. Select "OpenAI" as the provider type
  3. Enter your API key for the specific provider
  4. Set the "Base URL" field to the appropriate endpoint URL from the table above
  5. Click "Fetch Models" to discover available models

Provider Compatibility Note

While these providers offer OpenAI-compatible endpoints, there may be slight differences in API behavior or supported features. Always refer to the provider's documentation for specific details about their OpenAI compatibility.

Technical Details

This module extends the base LLM integration framework with OpenAI-specific implementations:

  • Implements the OpenAI API client with proper authentication and error handling
  • Provides model mapping and conversion between OpenAI formats and Odoo LLM formats
  • Handles rate limiting and retries according to OpenAI best practices
  • Supports streaming responses for chat completions

Module Information

Name OpenAI Provider for Odoo LLM
Version 16.0.1.1.2
Category Technical
License LGPL-3
Dependencies llm, llm_tool, llm_mail_message_subtypes
External Dependencies openai (Python package)
Author Apexive Solutions LLC

OpenAI Provider for Odoo LLM

Developed by Apexive Solutions LLC

Licensed under LGPL-3

For the latest updates and additional modules, visit:

GitHub Repository

2025 Apexive Solutions LLC. All rights reserved.

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.