Skip to content

Commit

Permalink
Merge pull request #146 from elsoul/package
Browse files Browse the repository at this point in the history
update openai/vertexai versions
  • Loading branch information
POPPIN-FUMI authored Sep 27, 2023
2 parents 6bbc9e0 + 60cf619 commit c198c91
Show file tree
Hide file tree
Showing 7 changed files with 522 additions and 738 deletions.
11 changes: 10 additions & 1 deletion build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,18 @@ import { build } from 'esbuild'
entryPoints: ['./src/index.ts'],
bundle: true,
minify: true,
keepNames: true,
sourcemap: 'inline',
sourcesContent: true,
outfile: './dist/index.js',
platform: 'node',
format: 'cjs',
external: ['@prisma/client'],
define: {
'process.env.NODE_ENV': `"production"`,
},
metafile: true,
alias: {
'@': './src',
},
})
})()
705 changes: 378 additions & 327 deletions dist/index.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"skeet:skeet": "yarn --cwd ./functions/skeet dev"
},
"dependencies": {
"@skeet-framework/ai": "^1.7.2",
"@skeet-framework/ai": "1.7.3",
"@skeet-framework/utils": "1.2.1",
"chalk": "5.2.0",
"chalk-pipe": "6.0.0",
Expand All @@ -43,7 +43,7 @@
"commander": "10.0.1",
"dotenv": "16.0.3",
"dotenv-cli": "7.2.1",
"inquirer": "^9.2.10",
"inquirer": "9.2.10",
"jest": "29.5.0",
"node-fetch": "2.6.9",
"prompt": "1.3.0",
Expand Down Expand Up @@ -74,4 +74,4 @@
"tsconfig-paths": "4.2.0",
"typescript": "5.2.2"
}
}
}
6 changes: 2 additions & 4 deletions skeet-cloud.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,8 @@
"ais": [
{
"name": "VertexAI",
"availableModels": [
"chat-bison@001"
]
"availableModels": ["chat-bison@001", "chat-bison-32k"]
}
]
}
}
}
2 changes: 1 addition & 1 deletion src/cli/ai/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { AIType } from '@skeet-framework/ai'
import { SkeetAIOptions } from '@skeet-framework/ai'
import { SKEET_CONFIG_PATH, importConfig } from '@/lib'
import { AiLog } from './aiLog'
import { existsSync, readFileSync, writeFileSync } from 'fs'
import { readFileSync, writeFileSync } from 'fs'
import { SkeetCloudConfig } from '@/types/skeetTypes'

export const aiCommands = () => {
Expand Down
3 changes: 2 additions & 1 deletion src/cli/ai/locales/ja/skeetAi.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
"warning": {
"temperature": "⚠️ 感情の大きさは0から1の間でなければなりません ⚠️",
"gptKey": "⚠️ CHAT_GPT_ORGとCHAT_GPT_KEYを設定してください ⚠️",
"gcpKey": "⚠️ GCLOUD_PROJECTとREGIONを設定してください ⚠️"
"gcpKey": "⚠️ GCLOUD_PROJECTとREGIONを設定してください ⚠️",
"mode": "⚠️ このモードは現在のテンプレートでは使用できません ⚠️"
},
"skeetMode": {},
"typedocMode": {
Expand Down
Loading

0 comments on commit c198c91

Please sign in to comment.