Integrate AI prompt with chatgpt 3.5 for PRO users #481
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 introduces the integration of OpenAI services into the project, along with several configuration updates and enhancements. The most important changes include the addition of OpenAI service and related configurations, updates to existing files to support OpenAI, and improvements to the project configuration files.
Integration of OpenAI Service:
apps/acf-extension/src/background/index.ts
: AddedOpenAIBackground
andRUNTIME_MESSAGE_OPENAI
imports, and includedRUNTIME_MESSAGE_OPENAI
in the message handler. [1] [2]apps/acf-extension/src/content_scripts/util/acf-value.ts
: AddedOpenAIService
import and implementedgetOpenAIValue
method to handle OpenAI-related values.libs/shared/openai/src/index.ts
: Exported OpenAI-related classes and types.libs/shared/openai/src/lib/openai-background.ts
: ImplementedOpenAIBackground
class to handle OpenAI chat requests.libs/shared/openai/src/lib/openai.service.ts
: ImplementedOpenAIService
class to interact with OpenAI API.Configuration Updates:
.vscode/settings.json
: Added SonarLint configuration for the project.eslint.config.js
: Added ESLint configuration with specific rules.nx.json
: Updated project configuration to include OpenAI in the release process and adjusted formatting. [1] [2] [3]Project Enhancements:
libs/shared/openai/README.md
: Added a README file for the OpenAI library with instructions for building and testing.libs/shared/openai/package.json
: Added package configuration for the OpenAI library.libs/shared/openai/jest.config.ts
: Added Jest configuration for the OpenAI library.These changes collectively enhance the project's capabilities by integrating OpenAI services and improving the overall configuration and maintainability of the codebase.