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
    • Estate 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. Discuss
  3. LLM Content Generation v 18.0
  4. Sales Conditions FAQ

LLM Content Generation

by Apexive Solutions LLC https://github.com/apexive/odoo-llm
Odoo
v 18.0 Third Party 25
Download for v 18.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
Odoo Apps Dependencies Discuss (mail)
Community Apps Dependencies Show
• Easy AI Chat
• LLM Assistant
• LLM Integration Base
• Web JSON Editor
• LLM Tool
Lines of code 11496
Technical Name llm_generate
LicenseLGPL-3
Websitehttps://github.com/apexive/odoo-llm
Versions 16.0 18.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Community Apps Dependencies Show
• Easy AI Chat
• LLM Assistant
• LLM Integration Base
• Web JSON Editor
• LLM Tool
Lines of code 11496
Technical Name llm_generate
LicenseLGPL-3
Websitehttps://github.com/apexive/odoo-llm
Versions 16.0 18.0
  • Description
  • Documentation
AI Content Generation

LLM Content Generation

Content generation capabilities for LLM models.

Generate text, images, and structured content using AI models

Structured Data
Schema Support
Open Source

What is LLM Content Generation?

Create content with AI directly in your Odoo workflows

This module adds content generation capabilities to the LLM framework. Use the generate() API to create structured content using prompts and AI models. Perfect for generating product descriptions, marketing copy, and more.


Features

Clean, focused content generation

Structured Generation Data

Uses body_json for structured generation data, keeping outputs organized and parseable.

Prompt Rendering

Simple prompt rendering with context merging for dynamic content generation.

Direct Integration

Direct integration with the main LLM module's generate() method for seamless operation.

Schema Storage

Works with details field for schema storage, enabling structured output validation.


Technical Details

Requirements and dependencies

Module Information

Dependencies:

llm, llm_thread, llm_assistant

Category:

Productivity/Discuss

Version:

18.0.2.0.0

License:

LGPL-3

LLM Content Generation

AI-powered content generation for Odoo

Developed by Apexive Solutions LLC

Licensed under LGPL-3 • © 2025 All rights reserved.

github.com/apexive/odoo-llm
hello@apexive.com

LLM Generate for Odoo

Unified content generation system with dynamic form generation, streaming responses, and comprehensive error handling.

Module Type: 📦 Infrastructure

LLM Generate Architecture

Installation

What to Install

This module is typically auto-installed as a dependency of llm_thread or llm_assistant.

For content generation features:

odoo-bin -d your_db -i llm_assistant,llm_openai

Auto-Installed Dependencies

These are pulled in automatically:

  • llm (core infrastructure)
  • llm_assistant (assistant framework)
  • mail (Odoo messaging)

Optional Enhancements

Module Adds
llm_generate_job | Background job queue for long generations
llm_fal_ai | Fast image generation
llm_replicate | Model marketplace access

Common Setups

I want to... Install
Generate text with GPT llm_assistant + llm_openai
Generate images llm_assistant + llm_fal_ai
Background generation Above + llm_generate_job

Overview

The LLM Generate module serves as the unified interface for all content generation operations in the Odoo LLM ecosystem. It provides a consistent API regardless of the underlying AI provider or content type.

Core Capabilities

  • Unified Generation API - Single interface for text, image, audio, and other content types
  • Dynamic Form Generation - Automatic UI generation based on model schemas
  • Streaming Generation - Real-time content creation with live updates
  • Race Condition Fixes - Comprehensive async handling and loading state management
  • Schema Handling - Intelligent schema resolution and form field generation

Key Features

Unified Generation Interface

# Text generation
response = thread.generate_response(
    user_input="Write a product description",
    generation_type="text"
)

# Image generation
image = thread.generate_response(
    user_input="A beautiful landscape",
    generation_type="image",
    model_id=dalle_model.id
)

Dynamic Form Generation

The system automatically generates forms based on AI model input schemas:

def get_input_schema(self):
    """Generate form schema with intelligent priority resolution"""
    # Priority: Assistant prompt > Thread prompt > Model default
    if self.assistant_id and self.assistant_id.prompt_id:
        return self.assistant_id.prompt_id.input_schema_json
    elif self.prompt_id:
        return self.prompt_id.input_schema_json
    else:
        return self.model_id.get_default_schema()

Streaming Generation

def generate_response_stream(self, user_input, **kwargs):
    """Generate content with real-time streaming updates"""
    message = self.message_post(body="", llm_role="assistant")

    stream = self.provider_id.generate_stream(
        prompt=user_input,
        model=self.model_id.name
    )

    for chunk in stream:
        message.body += chunk.content
        self._notify_message_update(message)

    return message

Content Generation Types

Text Generation

text_response = env['llm.thread'].generate_content(
    prompt="Write a professional email",
    content_type="text",
    parameters={'temperature': 0.7, 'max_tokens': 500}
)

Image Generation

image_result = env['llm.thread'].generate_content(
    prompt="A modern office building at sunset",
    content_type="image",
    parameters={'size': '1024x1024', 'style': 'photorealistic'}
)

API Reference

Core Generation Methods

# Basic generation
def generate_response(self, user_input, generation_type="text", **kwargs):
    """Main generation method with unified interface"""

# Streaming generation
def generate_response_stream(self, user_input, **kwargs):
    """Generate with real-time streaming updates"""

# Template-based generation
def generate_from_template(self, template_id, context, **kwargs):
    """Generate using prompt template with context"""

# Batch generation
def generate_batch(self, prompts, content_type, **kwargs):
    """Generate multiple items in batch"""

Technical Specifications

Module Information

  • Name: LLM Generate
  • Version: 18.0.2.0.0
  • Category: Productivity
  • License: LGPL-3
  • Dependencies: llm, llm_assistant, mail
  • Author: Apexive Solutions LLC

Key Models

  • ``llm.generation.job``: Background generation job management
  • ``llm.generation.queue``: Provider-specific queue configuration
  • Extensions to ``llm.thread``: Core generation methods

Frontend Components

  • LLMMediaForm: Dynamic form generation component
  • LLMGenerationWizard: Generation parameter configuration
  • LLMStreamingDisplay: Real-time content updates
  • LLMSchemaIndicator: Schema source transparency

Related Modules

  • ``llm`` - Base infrastructure and provider framework
  • ``llm_assistant`` - Assistant configuration and prompt templates
  • ``llm_thread`` - Chat interface using generation
  • ``llm_generate_job`` - Advanced job queue management
  • ``llm_fal_ai`` - FAL.ai provider with fast image generation

Resources

  • GitHub Repository
  • Architecture Overview

License

This module is licensed under LGPL-3.


© 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.
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