-
Notifications
You must be signed in to change notification settings - Fork 209
Add DeepSeek Model Support via OpenRouter Integration #57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Integrate OpenRouter as a third-party provider to enable Deepseek models - Scale up OpenRouter logo to match other provider icons - Maintain consistent provider interface for seamless model switching
@yguo is attempting to deploy a commit to the julienthibeaut's projects Team on Vercel. A member of the Team first needs to authorize it. |
lib/chat-store/persist.ts
Outdated
@@ -14,7 +14,7 @@ let dbInitPromise: Promise<void> | null = null | |||
let stores: Record<string, any> = {} | |||
|
|||
const isClient = typeof window !== "undefined" | |||
const DB_NAME = "zola-db" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keep zola-db
please
README.md
Outdated
@@ -1,4 +1,4 @@ | |||
# Zola |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keep Zola
lib/config.ts
Outdated
@@ -22,8 +23,8 @@ import { | |||
Sparkle, | |||
} from "@phosphor-icons/react/dist/ssr" | |||
|
|||
export const NON_AUTH_DAILY_MESSAGE_LIMIT = 5 | |||
export const AUTH_DAILY_MESSAGE_LIMIT = 100 | |||
export const NON_AUTH_DAILY_MESSAGE_LIMIT = 500 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
lib/config.ts
Outdated
export const NON_AUTH_DAILY_MESSAGE_LIMIT = 5 | ||
export const AUTH_DAILY_MESSAGE_LIMIT = 100 | ||
export const NON_AUTH_DAILY_MESSAGE_LIMIT = 500 | ||
export const AUTH_DAILY_MESSAGE_LIMIT = 1000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
lib/config.ts
Outdated
@@ -273,12 +280,13 @@ export const PROVIDERS_OPTIONS = [ | |||
...PROVIDERS_NOT_AVAILABLE, | |||
] as Provider[] | |||
|
|||
export const MODEL_DEFAULT = "pixtral-large-latest" | |||
// export const MODEL_DEFAULT = "pixtral-large-latest" | |||
export const MODEL_DEFAULT = "deepseek-r1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
lib/config.ts
Outdated
|
||
export const APP_NAME = "Zola" | ||
export const APP_NAME = "Zola Chat" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
lib/config.ts
Outdated
export const APP_DOMAIN = "https://zola.chat" | ||
export const APP_DESCRIPTION = | ||
"Zola is a free, open-source AI chat app with multi-model support." | ||
"Zola Chat is a free, open-source AI chat app with multi-model support." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
package.json
Outdated
@@ -1,5 +1,5 @@ | |||
{ | |||
"name": "chat-ai", | |||
"name": "zola-chat", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice catch, can you update it to "zola"? thank you
@yguo thank you for the PR! can you update your branch with |
Hi @ibelick Thanks for your review. I address the review feedback and push it into the feat branch. and also update my branch with main. Cheers |
.gitignore
Outdated
# vscode | ||
.vscode/ | ||
|
||
# .idea |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
app/components/chat/chat.tsx
Outdated
@@ -111,11 +111,11 @@ export function Chat() { | |||
errorMsg = parsed.error || errorMsg |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove changes here too
@@ -205,6 +194,19 @@ export const MODELS = [ | |||
}, | |||
], | |||
api_sdk: mistral("mistral-large-latest"), | |||
icon: Mistral, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keep mistral-large-latest
description
description:
"Fine-tuned for chat. A lighter, faster option for everyday use.",
enabled: true, | ||
}, | ||
], | ||
api_sdk: "deepseek/deepseek-r1:free", // this is a special case for openrouter | ||
description: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add description for deepseek-r1
, like: A reasoning-first model trained with reinforcement learning, built for math, code, and complex problem solving.
@yguo just added a few new comments, then we're good, thank you! |
…pseek 以开始的行将被忽略,而空的提交说明将终止提交。
the review feedback is addressed. Thanks |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Add DeepSeek Model Support via OpenRouter Integration
Overview
This PR adds support for the DeepSeek model through OpenRouter integration, expanding the available AI model options in Zola.
Changes
Technical Details
Testing
Dependencies