Skip to content

Commit 2a4e461

Browse files
committed
chore: wip
1 parent 6a6a46f commit 2a4e461

File tree

9 files changed

+28
-19
lines changed

9 files changed

+28
-19
lines changed

bun.lockb

344 Bytes
Binary file not shown.

config/ai.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ export default {
1212

1313
models: [
1414
// 'amazon.titan-embed-text-v1',
15+
// Supported use cases – Retrieval augmented generation, open-ended text generation, brainstorming, summarizations, code generation, table creation, data formatting, paraphrasing, chain of thought, rewrite, extraction, QnA, and chat
1516
'amazon.titan-text-express-v1',
17+
// Amazon Titan Text Lite is a light weight efficient model, ideal for fine-tuning of English-language tasks, including like summarizations and copy writing, where customers want a smaller, more cost-effective model that is also highly customizable
18+
'amazon.titan-text-lite-v1',
1619
// 'amazon.titan-embed-image-v1',
1720
// 'amazon.titan-image-generator-v1',
1821
// 'anthropic.claude-v1',

resources/components/marketing/PrimaryFeatures.vue

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
<script setup lang="ts">
22
import { Tab, TabGroup, TabList, TabPanel, TabPanels } from '@headlessui/vue'
3-
// import backgroundImage from '../../assets/images/background-features.jpg'
4-
// import screenshotExpenses from '../../assets/images/screenshots/expenses.png'
5-
// import screenshotPayroll from '../../assets/images/screenshots/payroll.png'
6-
// import screenshotReporting from '../../assets/images/screenshots/reporting.png'
7-
// import screenshotVatReturns from '../../assets/images/screenshots/vat-returns.png'
3+
import Container from '../Container.vue'
4+
5+
import backgroundImage from '../../assets/images/background-features.jpg'
6+
import screenshotExpenses from '../../assets/images/screenshots/expenses.png'
7+
import screenshotPayroll from '../../assets/images/screenshots/payroll.png'
8+
import screenshotReporting from '../../assets/images/screenshots/reporting.png'
9+
import screenshotVatReturns from '../../assets/images/screenshots/vat-returns.png'
810
911
const features = [
1012
{
@@ -43,8 +45,8 @@ const tabIndex = ref(0)
4345
Well everything you need if you aren’t that picky about minor details like tax compliance.
4446
</p>
4547
</div>
46-
<TabGroup v-model="tabIndex" class="mt-16 grid grid-cols-1 items-center gap-y-2 pt-10 sm:gap-y-6 md:mt-20 lg:grid-cols-12 lg:pt-0">
47-
<TabList v-slot="{ selectedIndex }" class="-mx-4 flex overflow-x-auto pb-4 sm:mx-0 sm:overflow-visible sm:pb-0 lg:col-span-5">
48+
<!-- <TabGroup v-model="tabIndex" class="mt-16 grid grid-cols-1 items-center gap-y-2 pt-10 sm:gap-y-6 md:mt-20 lg:grid-cols-12 lg:pt-0">
49+
<TabList class="-mx-4 flex overflow-x-auto pb-4 sm:mx-0 sm:overflow-visible sm:pb-0 lg:col-span-5">
4850
<Tab v-for="(feature, index) in features" :key="index" class="group relative rounded-full px-4 py-1 lg:rounded-l-xl lg:rounded-r-none lg:p-6">
4951
<h3>
5052
<span class="font-display text-lg ui-not-focus-visible:outline-none">
@@ -70,7 +72,7 @@ const tabIndex = ref(0)
7072
</div>
7173
</TabPanel>
7274
</TabPanels>
73-
</TabGroup>
75+
</TabGroup> -->
7476
</Container>
7577
</section>
7678
</template>

storage/framework/.stacks/core/cloud/src/cloud/ai.ts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,20 @@ export class AiStack {
9292
// },
9393
// })
9494

95-
new Output(scope, 'AiVanityApiUrl', {
96-
value: api.url,
95+
new Output(scope, 'AiVanityAskApiUrl', {
96+
value: `${api.url}/ask`,
9797
})
9898

99-
new Output(scope, 'AiApiUrl', {
99+
new Output(scope, 'AiVanitySummarizeApiUrl', {
100+
value: `${api.url}/summarize`,
101+
})
102+
103+
new Output(scope, 'AiAskApiUrl', {
100104
value: `https://${props.domain}/ai/ask`,
101105
})
106+
107+
new Output(scope, 'AiSummarizeApiUrl', {
108+
value: `https://${props.domain}/ai/summary`,
109+
})
102110
}
103111
}

storage/framework/.stacks/core/cloud/src/cloud/lambda/ask/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ async function handler(event) {
1717
textGenerationConfig: {
1818
maxTokenCount: 300,
1919
stopSequences: [],
20-
temperature: 0,
20+
temperature: 0.1,
2121
topP: 0.9,
2222
},
2323
}),

storage/framework/.stacks/core/strings/src/case.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* ```
88
*/
99
export function capitalize(str: string): string {
10-
return str[0].toUpperCase() + str.slice(1).toLowerCase()
10+
return str[0] ? str[0].toUpperCase() + str.slice(1).toLowerCase() : ''
1111
}
1212

1313
export {

storage/framework/.stacks/core/types/src/ai.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
type AiModel = 'amazon.titan-embed-text-v1'
2+
| 'amazon.titan-text-lite-v1'
23
| 'amazon.titan-text-express-v1'
34
| 'amazon.titan-embed-image-v1'
45
| 'amazon.titan-image-generator-v1'
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { runCommand } from '@stacksjs/cli'
22

3-
await runCommand('bun build ./src/index.ts ./src/components/index.ts --outdir dist --format esm --external @vinejs/vine --external @stacksjs/vite --external @stacksjs/strings --external @stacksjs/types --external @dinero.js/currencies --external dinero.js --target bun', {
3+
await runCommand('bun build ./src/index.ts --outdir dist --format esm --external @vinejs/vine --external @stacksjs/vite --external @stacksjs/strings --external @stacksjs/types --external @dinero.js/currencies --external dinero.js --target bun', {
44
cwd: import.meta.dir,
55
})

storage/framework/types/components.d.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ declare module 'vue' {
1010
Button: typeof import('./../../../resources/components/Button.vue')['default']
1111
CallToAction: typeof import('./../../../resources/components/marketing/CallToAction.vue')['default']
1212
Container: typeof import('./../../../resources/components/Container.vue')['default']
13-
Counter: typeof import('./../../../resources/components/Buttons/Counter.vue')['default']
1413
Faqs: typeof import('./../../../resources/components/marketing/Faqs.vue')['default']
1514
Feature: typeof import('./../../../resources/components/marketing/Feature.vue')['default']
1615
Fields: typeof import('./../../../resources/components/marketing/Fields.vue')['default']
@@ -33,9 +32,5 @@ declare module 'vue' {
3332
Starport: typeof import('vue-starport')['Starport']
3433
StarportCarrier: typeof import('vue-starport')['StarportCarrier']
3534
Testimonials: typeof import('./../../../resources/components/marketing/Testimonials.vue')['default']
36-
TheCounter: typeof import('./../../../resources/components/TheCounter.vue')['default']
37-
TheFooter: typeof import('./../../../resources/components/TheFooter.vue')['default']
38-
TheInput: typeof import('./../../../resources/components/TheInput.vue')['default']
39-
ToggleDark: typeof import('./../../../resources/components/Buttons/ToggleDark.vue')['default']
4035
}
4136
}

0 commit comments

Comments
 (0)