Skip to content

Commit 6f60532

Browse files
remove fal
1 parent dae7cd6 commit 6f60532

File tree

6 files changed

+5
-24
lines changed

6 files changed

+5
-24
lines changed

.github/workflows/quality.yml

-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ jobs:
4444
- run: pnpm check
4545
env:
4646
POSTGRES_URL: ''
47-
FAL_API_KEY: ''
4847
XAI_API_KEY: ''
4948
GROQ_API_KEY: ''
5049
BLOB_READ_WRITE_TOKEN: ''

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
- [AI SDK](https://sdk.vercel.ai/docs)
2222
- Unified API for generating text, structured objects, and tool calls with LLMs
2323
- Hooks for building dynamic chat and generative user interfaces
24-
- Supports xAI (default), Groq, Fal, and other model providers
24+
- Supports xAI (default), Groq, and other model providers
2525
- [shadcn-svelte](https://shadcn-svelte.com)
2626
- Styling with [Tailwind CSS](https://tailwindcss.com)
2727
- Component primitives from [Bits UI](https://www.bits-ui.com) for accessibility and flexibility
@@ -37,7 +37,7 @@ This template ships with [xAI](https://x.ai) `grok-2-1212` as the default chat m
3737

3838
You can deploy your own version of the SvelteKit AI Chatbot to Vercel with one click:
3939

40-
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fai-chatbot-svelte&envLink=https%3A%2F%2Fgithub.com%2Fvercel%2Fai-chatbot-svelte%2Fblob%2Fmain%2F.env.example&demo-title=AI%20Chatbot&demo-description=An%20Open-Source%20AI%20Chatbot%20Template%20Built%20With%20SvelteKit%20and%20the%20AI%20SDK%20by%20Vercel.&demo-url=https%3A%2F%2Fsvelte-chat.vercel.ai&stores=%5B%7B%22type%22%3A%22postgres%22%7D%2C%7B%22type%22%3A%22blob%22%7D%5D&integration-ids=oac_g1tOx3546WuLOQ4QeyAX1n1P,oac_G6x10PjgSxUUTu6Pi25ZAtbp,oac_GzhR3rwEIUyQEpKEsmAiEjfi)
40+
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fai-chatbot-svelte&envLink=https%3A%2F%2Fgithub.com%2Fvercel%2Fai-chatbot-svelte%2Fblob%2Fmain%2F.env.example&demo-title=AI+Chatbot&demo-description=An+Open-Source+AI+Chatbot+Template+Built+With+SvelteKit+and+the+AI+SDK+by+Vercel.&demo-url=https%3A%2F%2Fsvelte-chat.vercel.ai&products=%5B%7B%22type%22%3A%22integration%22%2C%22protocol%22%3A%22ai%22%2C%22productSlug%22%3A%22grok%22%2C%22integrationSlug%22%3A%22xai%22%7D%2C%7B%22type%22%3A%22integration%22%2C%22protocol%22%3A%22ai%22%2C%22productSlug%22%3A%22api-key%22%2C%22integrationSlug%22%3A%22groq%22%7D%2C%7B%22type%22%3A%22integration%22%2C%22protocol%22%3A%22ai%22%2C%22productSlug%22%3A%22fal%22%2C%22integrationSlug%22%3A%22fal%22%7D%2C%7B%22type%22%3A%22integration%22%2C%22protocol%22%3A%22storage%22%2C%22productSlug%22%3A%22neon%22%2C%22integrationSlug%22%3A%22neon%22%7D%2C%7B%22type%22%3A%22blob%22%7D%5D)
4141

4242
## Running locally
4343

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
"db:up": "drizzle-kit up"
2222
},
2323
"devDependencies": {
24-
"@ai-sdk/fal": "^0.1.0",
2524
"@ai-sdk/groq": "^1.2.0",
2625
"@ai-sdk/svelte": "^2.1.0",
2726
"@ai-sdk/xai": "^1.2.1",

pnpm-lock.yaml

-15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib/components/chat-header.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464

6565
<Button
6666
class="order-4 hidden h-fit bg-zinc-900 px-2 py-1.5 text-zinc-50 hover:bg-zinc-800 dark:bg-zinc-100 dark:text-zinc-900 dark:hover:bg-zinc-200 md:ml-auto md:flex md:h-[34px]"
67-
href="https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fai-chatbot-svelte&envLink=https%3A%2F%2Fgithub.com%2Fvercel%2Fai-chatbot-svelte%2Fblob%2Fmain%2F.env.example&demo-title=AI%20Chatbot&demo-description=An%20Open-Source%20AI%20Chatbot%20Template%20Built%20With%20SvelteKit%20and%20the%20AI%20SDK%20by%20Vercel.&demo-url=https%3A%2F%2Fsvelte-chat.vercel.ai&stores=%5B%7B%22type%22%3A%22postgres%22%7D%2C%7B%22type%22%3A%22blob%22%7D%5D&integration-ids=oac_g1tOx3546WuLOQ4QeyAX1n1P,oac_G6x10PjgSxUUTu6Pi25ZAtbp,oac_GzhR3rwEIUyQEpKEsmAiEjfi"
67+
href="https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fai-chatbot-svelte&envLink=https%3A%2F%2Fgithub.com%2Fvercel%2Fai-chatbot-svelte%2Fblob%2Fmain%2F.env.example&demo-title=AI+Chatbot&demo-description=An+Open-Source+AI+Chatbot+Template+Built+With+SvelteKit+and+the+AI+SDK+by+Vercel.&demo-url=https%3A%2F%2Fsvelte-chat.vercel.ai&products=%5B%7B%22type%22%3A%22integration%22%2C%22protocol%22%3A%22ai%22%2C%22productSlug%22%3A%22grok%22%2C%22integrationSlug%22%3A%22xai%22%7D%2C%7B%22type%22%3A%22integration%22%2C%22protocol%22%3A%22ai%22%2C%22productSlug%22%3A%22api-key%22%2C%22integrationSlug%22%3A%22groq%22%7D%2C%7B%22type%22%3A%22integration%22%2C%22protocol%22%3A%22ai%22%2C%22productSlug%22%3A%22fal%22%2C%22integrationSlug%22%3A%22fal%22%7D%2C%7B%22type%22%3A%22integration%22%2C%22protocol%22%3A%22storage%22%2C%22productSlug%22%3A%22neon%22%2C%22integrationSlug%22%3A%22neon%22%7D%2C%7B%22type%22%3A%22blob%22%7D%5D"
6868
target="_blank"
6969
>
7070
<VercelIcon size={16} />

src/lib/server/ai/models.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
import { createXai } from '@ai-sdk/xai';
22
import { createGroq } from '@ai-sdk/groq';
3-
import { createFal } from '@ai-sdk/fal';
43
import { customProvider, extractReasoningMiddleware, wrapLanguageModel } from 'ai';
5-
import { XAI_API_KEY, GROQ_API_KEY, FAL_API_KEY } from '$env/static/private';
4+
import { XAI_API_KEY, GROQ_API_KEY } from '$env/static/private';
65

76
const xai = createXai({ apiKey: XAI_API_KEY });
87
const groq = createGroq({ apiKey: GROQ_API_KEY });
9-
const fal = createFal({ apiKey: FAL_API_KEY });
108

119
export const myProvider = customProvider({
1210
languageModels: {
@@ -19,6 +17,6 @@ export const myProvider = customProvider({
1917
'artifact-model': xai('grok-2-1212')
2018
},
2119
imageModels: {
22-
'small-model': fal.image('fal-ai/fast-sdxl')
20+
'small-model': xai.image('grok-2-image')
2321
}
2422
});

0 commit comments

Comments
 (0)