mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-12-25 10:03:07 +03:00
Updated Wasp version to 0.12.3 + Mage to use it.
This commit is contained in:
parent
b784571ddc
commit
f2721e7679
@ -41,7 +41,7 @@ RUN cd .wasp/build/server && npm run bundle
|
||||
# TODO: Use pm2?
|
||||
# TODO: Use non-root user (node).
|
||||
FROM base AS server-production
|
||||
RUN curl -sSL https://get.wasp-lang.dev/installer.sh | sh -s -- -v 0.12.2
|
||||
RUN curl -sSL https://get.wasp-lang.dev/installer.sh | sh -s -- -v 0.12.3
|
||||
ENV PATH "$PATH:/root/.local/bin"
|
||||
ENV NODE_ENV production
|
||||
WORKDIR /app
|
||||
|
@ -456,6 +456,15 @@ export function OnSuccessModal({ isOpen, setIsOpen, appGenerationResult }) {
|
||||
return <span className="py-1 px-2 font-semibold text-pink-800 rounded">{children}</span>;
|
||||
}
|
||||
|
||||
function calcCostForGpt_3_5_Turbo_0125 (numTokensSpent) {
|
||||
const estimatedInputTokenShare = 0.8;
|
||||
const estimatedOutputTokenShare = 1 - estimatedInputTokenShare;
|
||||
const costInUsdForMillionInputTokens = 0.5; // This is price for GPT 3.5 Turbo 0125.
|
||||
const costInUsdForMillionOutputTokens = 1.5; // This is price for GPT 3.5 Turbo 0125.
|
||||
const costInUsdForMillionTokens = costInUsdForMillionInputTokens * estimatedInputTokenShare + costInUsdForMillionOutputTokens * estimatedOutputTokenShare;
|
||||
return (numTokensSpent / 1e6 * costInUsdForMillionTokens).toFixed(2);
|
||||
}
|
||||
|
||||
return (
|
||||
<MyDialog
|
||||
isOpen={isOpen}
|
||||
@ -481,9 +490,7 @@ export function OnSuccessModal({ isOpen, setIsOpen, appGenerationResult }) {
|
||||
<td className="p-2 text-gray-600"> Cost to generate your app: </td>
|
||||
<td className="p-2 text-gray-600">
|
||||
{" "}
|
||||
<FormattedText>{`$${((Number(numTokensSpent) / 1000) * 0.004).toFixed(
|
||||
2
|
||||
)}`}</FormattedText>{" "}
|
||||
<FormattedText>{`~$${calcCostForGpt_3_5_Turbo_0125(Number(numTokensSpent))}`}</FormattedText>{" "}
|
||||
</td>
|
||||
</tr>
|
||||
{numTotalProjects && (
|
||||
|
@ -1,5 +1,11 @@
|
||||
# Changelog
|
||||
|
||||
## 0.12.3
|
||||
|
||||
### 🎉 New features
|
||||
|
||||
- Wasp AI switched from GPT 3.5 Turbo 0613 to GPT 3.5 Turbo 0125, which gives it bigger context, ensuring generation doesn't fail for bigger apps, while also being cheaper.
|
||||
|
||||
## 0.12.2
|
||||
|
||||
### 🐞 Bug fixes
|
||||
|
@ -1,7 +1,7 @@
|
||||
app waspBuild {
|
||||
db: { system: PostgreSQL },
|
||||
wasp: {
|
||||
version: "^0.12.2"
|
||||
version: "^0.12.3"
|
||||
},
|
||||
title: "waspBuild"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
app waspCompile {
|
||||
wasp: {
|
||||
version: "^0.12.2"
|
||||
version: "^0.12.3"
|
||||
},
|
||||
title: "waspCompile"
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
app waspComplexTest {
|
||||
db: { system: PostgreSQL },
|
||||
wasp: {
|
||||
version: "^0.12.2"
|
||||
version: "^0.12.3"
|
||||
},
|
||||
auth: {
|
||||
userEntity: User,
|
||||
|
@ -1,7 +1,7 @@
|
||||
app waspJob {
|
||||
db: { system: PostgreSQL },
|
||||
wasp: {
|
||||
version: "^0.12.2"
|
||||
version: "^0.12.3"
|
||||
},
|
||||
title: "waspJob"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
app waspMigrate {
|
||||
wasp: {
|
||||
version: "^0.12.2"
|
||||
version: "^0.12.3"
|
||||
},
|
||||
title: "waspMigrate"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
app waspNew {
|
||||
wasp: {
|
||||
version: "^0.12.2"
|
||||
version: "^0.12.3"
|
||||
},
|
||||
title: "waspNew"
|
||||
}
|
||||
|
@ -6,7 +6,7 @@ cabal-version: 2.4
|
||||
-- Consider using hpack, or maybe even hpack-dhall.
|
||||
|
||||
name: waspc
|
||||
version: 0.12.2
|
||||
version: 0.12.3
|
||||
description: Please see the README on GitHub at <https://github.com/wasp-lang/wasp/waspc#readme>
|
||||
homepage: https://github.com/wasp-lang/wasp/waspc#readme
|
||||
bug-reports: https://github.com/wasp-lang/wasp/issues
|
||||
|
Loading…
Reference in New Issue
Block a user