Skip to content

Commit fcfe16a

Browse files
committed
feat: update the ollama entry info
1 parent 5b1f87d commit fcfe16a

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

src/components/User/Dashboard/DatasetOrganizer/LLMPanel.tsx

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -63,25 +63,23 @@ interface LLMProvider {
6363
models: Array<{ id: string; name: string }>;
6464
noApiKey?: boolean;
6565
isAnthropic?: boolean;
66-
customUrl?: boolean;
66+
// customUrl?: boolean;
6767
}
6868

6969
const llmProviders: Record<string, LLMProvider> = {
7070
ollama: {
7171
name: "Ollama (Local Server)",
72-
baseUrl: "http://localhost:11434/v1/chat/completions",
72+
// baseUrl: "http://localhost:11434/v1/chat/completions",
73+
baseUrl: "",
7374
models: [
74-
{ id: "qwen3-coder-next:latest", name: "Qwen 3 Coder Next" }, // ← add
75-
{ id: "qwen3-coder-careful:latest", name: "Qwen 3 Coder Careful" }, // ← add
76-
// { id: "qwen3-coder:30b", name: "Qwen 3 Coder" },
77-
// { id: "qwen2.5-coder:latest", name: "Qwen 2.5 Coder" },
78-
// { id: "codellama:latest", name: "Code Llama" },
79-
// { id: "llama3.1:latest", name: "Llama 3.1" },
80-
// { id: "mistral:latest", name: "Mistral" },
81-
// { id: "deepseek-coder:latest", name: "DeepSeek Coder" },
75+
{ id: "qwen3-coder-next:latest", name: "Qwen 3 Coder Next" },
76+
{ id: "qwen3-coder-careful:latest", name: "Qwen 3 Coder Careful" },
77+
{ id: "qwen3.5:9b", name: "Qwen 3.5 9B" },
78+
{ id: "qwen2.5-coder:latest", name: "Qwen 2.5 Coder (7.6B)" },
79+
{ id: "qwen2.5-coder:7b", name: "Qwen 2.5 Coder 7B" },
8280
],
8381
noApiKey: true,
84-
customUrl: true,
82+
// customUrl: true,
8583
},
8684
groq: {
8785
name: "Groq (Free API Key - 14,400 req/day)",
@@ -135,7 +133,7 @@ const LLMPanel: React.FC<LLMPanelProps> = ({
135133
onClose,
136134
}) => {
137135
const [provider, setProvider] = useState<string>("ollama");
138-
const [model, setModel] = useState<string>("qwen3-coder:30b");
136+
const [model, setModel] = useState<string>("qwen3-coder-next:latest");
139137
// const [ollamaUrl, setOllamaUrl] = useState<string>(
140138
// "http://jin.neu.edu:11434"
141139
// );
@@ -238,6 +236,7 @@ const LLMPanel: React.FC<LLMPanelProps> = ({
238236
if (currentProvider.isAnthropic) {
239237
ddResponse = await fetch(currentProvider.baseUrl, {
240238
method: "POST",
239+
signal: controller.signal,
241240
headers: {
242241
"Content-Type": "application/json",
243242
"x-api-key": apiKey,

0 commit comments

Comments
 (0)