Skip to content

Commit

Permalink
Merge pull request #365 from voytovichdm/fix/8101-update-openai-plugi…
Browse files Browse the repository at this point in the history
…n-location

fix(plugins): Correct OpenAI plugin to generate provider code within …
  • Loading branch information
abrl91 authored Mar 27, 2024
2 parents be28f9b + 0fdb31c commit 6ef2933
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 81 deletions.
95 changes: 24 additions & 71 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 3 additions & 9 deletions plugins/integration-openai/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@amplication/plugin-integrate-openai",
"version": "2.0.3",
"version": "2.0.4",
"description": "Add a module and a service to use OpenAI API to Amplication generated code",
"main": "dist/index.js",
"nx": {},
Expand Down Expand Up @@ -35,19 +35,13 @@
},
"jest": {
"passWithNoTests": true,
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"moduleFileExtensions": ["js", "json", "ts"],
"rootDir": "src/tests",
"testRegex": ".*\\.spec\\.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"collectCoverageFrom": [
"**/*.(t|j)s"
],
"collectCoverageFrom": ["**/*.(t|j)s"],
"testEnvironment": "node"
}
}
2 changes: 1 addition & 1 deletion plugins/integration-openai/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class IntegrationOpenaiPlugin implements AmplicationPlugin {
const staticPath = resolve(__dirname, "./static");
const staticsFiles = await context.utils.importStaticModules(
staticPath,
context.serverDirectories.baseDirectory
context.serverDirectories.srcDirectory
);

await modules.merge(staticsFiles);
Expand Down

0 comments on commit 6ef2933

Please sign in to comment.