Skip to content
Open

9.6 #340

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions api/config/embedder.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
{
"embedder": {
"client_class": "OpenAIClient",
"batch_size": 500,
"client_class": "OllamaClient",
"model_kwargs": {
"model": "text-embedding-3-small",
"dimensions": 256,
"encoding_format": "float"
"model": "nomic-embed-text"
}
},
"retriever": {
Expand Down
25 changes: 24 additions & 1 deletion api/config/generator.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
}
},
"openai": {
"default_model": "gpt-4o",
"default_model": "qwen-turbo",
"supportsCustomModel": true,
"models": {
"gpt-4o": {
Expand All @@ -45,6 +45,22 @@
"o4-mini": {
"temperature": 0.7,
"top_p": 0.8
},
"qwen-turbo": {
"temperature": 0.7,
"top_p": 0.8
},
"qwen-plus": {
"temperature": 0.7,
"top_p": 0.8
},
"qwen-max": {
"temperature": 0.7,
"top_p": 0.8
},
"qwen-max-longcontext": {
"temperature": 0.7,
"top_p": 0.8
}
}
},
Expand Down Expand Up @@ -110,6 +126,13 @@
"top_p": 0.8,
"num_ctx": 32000
}
},
"nomic-embed-text": {
"options": {
"temperature": 0.7,
"top_p": 0.8,
"num_ctx": 8192
}
}
Comment on lines +129 to 136
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The model nomic-embed-text is an embedding model, not a text generation model. It is incorrectly configured here as a generator, which will likely cause errors when trying to use it for text generation. The embedder.json file is already correctly configured to use this model for embeddings. This block should be removed to fix the misconfiguration.

}
},
Expand Down
2 changes: 2 additions & 0 deletions next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ const nextConfig: NextConfig = {
};
return config;
},
// 字体配置
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This comment is in Chinese, while the rest of the codebase appears to be in English. For consistency and to make the code easier to understand for all contributors, it's best to write comments in English.

Suggested change
// 字体配置
// Font optimization configuration

optimizeFonts: true,
async rewrites() {
return [
{
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev --turbopack --port 3000",
"dev": "next dev --port 3000",
"build": "next build",
"start": "next start",
"lint": "next lint"
Expand Down
3 changes: 3 additions & 0 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,22 @@ const notoSansJP = Noto_Sans_JP({
variable: "--font-geist-sans",
subsets: ["latin"],
weight: ["400", "500", "700"],
preload: false,
display: "swap",
});

const notoSerifJP = Noto_Serif_JP({
variable: "--font-serif-jp",
subsets: ["latin"],
weight: ["400", "500", "700"],
preload: false,
display: "swap",
});

const geistMono = Geist_Mono({
variable: "--font-geist-mono",
subsets: ["latin"],
preload: false,
});

export const metadata: Metadata = {
Expand Down
Loading