Repository navigation
Conversation
Allow synchronizing OpenWebUI models before selecting one. Do not require openwebui_model during bridge configuration because the OpenWebUI catalog must be synchronized first. Validate the model only when the bridge is executed. Keep model_id as the generic OCA ir.model target and use OpenWebUI legacy function calling so OpenWebUI executes the configured workspace/MCP tools server-side and returns the final answer to Discuss. Do not use native function calling or tool_choice without a chat context, as OpenWebUI would return raw tool_calls to Odoo instead of a final answer.
Author
|
All checks are green, including Odoo, OCB, pre-commit, Codecov and Runboat. The PR is ready for maintainer review and merge. Possible follow-up improvements are already being considered, especially around transparency and data control when using external models. These improvements could provide configurable options to:
These options should be explicit, permission-aware and disabled by default where appropriate. They would likely be implemented in a follow-up change so that the current PR remains focused on the initial OpenWebUI bridge. |
Enable the OpenWebUI server-side agentic flow from Odoo Discuss. The bridge now supports web search through OpenWebUI, keeps the original user question visible, uses the Odoo Discuss channel as the conversation title, and optionally retains the OpenWebUI conversation for later review. The retained conversation can expose the assistant response, web-search activity, sources and provider-specific reasoning output when supported by the selected OpenWebUI model and permissions. Also update the bridge configuration, README documentation and automated tests for the new agentic flow.
Author
Update — agentic web search and retained OpenWebUI conversationsThe existing implementation has been updated and pushed to the same branch. Added behavior
DocumentationThe README now documents:
Validation
Commit pushed:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This pull request adds
ai_oca_bridge_openwebui, an integration modulebetween Odoo Discuss and OpenWebUI.
The module extends
ai_oca_bridgeandai_oca_bridge_chatterand uses theOpenWebUI OpenAI-compatible chat completions API.
Architecture
The integration keeps responsibilities separated:
history.
external tools.
The optional system prompt configured on the bridge provides additional local
Odoo context. The main AI configuration remains in OpenWebUI.
The synchronized models and tools are only a local Odoo catalog used for
configuration and selection. OpenWebUI remains the source of truth for their
behavior.
Features
Dependencies
ai_oca_bridgeai_oca_bridge_chatterTesting
The module has been tested on Odoo 18 with the OCA
airepository.