Skip to content

Latest commit

 

History

History
83 lines (41 loc) · 2.51 KB

README.md

File metadata and controls

83 lines (41 loc) · 2.51 KB

License: AGPL-3

OpenAI Connector

OpenAI Logo

This module adds a connector for OpenAI API and brings the power of ChatGPT and DALL-E into Odoo.

To create a custom OpenAI Completion, Edit or Image, check how to set properly API parameters : API Documentation

Configuration

Create an account on https://beta.openai.com/

Create your API Key: API keys

In Settings, fill the API Key field:

image

Usage

OpenAI Completion

To create a new OpenAI Completion, go to Settings, Technical, OpenAI Completion and create a new record.

image

Model: The model on witch the completion will be applied.

Target Field: The field where the generated value will be saved.

Domain: The domain to select the records on witch the completion will be run.

image

Check the API Documentation to set OpenAI Parameters values.

For Completion results go to Settings, Technical, OpenAI Completion Results

OpenAI Edit

To create a new OpenAI Edit, go to Settings, Technical, OpenAI Edit and create a new record.

For results go to Settings, Technical, OpenAI Edit Results

OpenAI Image

To create a new OpenAI Image, go to Settings, Technical, OpenAI Image and create a new record.

For results go to Settings, Technical, OpenAI Image Results

Prompt template

Write a prompt template in Qweb:

image

Tests

Test actions use the first record selected by the domain.

Test first your prompt to adjust your template, then test the result of the Completion, Edit or Image to adjust OpenAI parameters.

image

Requirements

This module requires the Python client library for OpenAI API

pip install openai

Maintainer