Skip to content

Commit 9dbacf8

Browse files
committed
Removing SambaNova
1 parent 98707f2 commit 9dbacf8

File tree

3 files changed

+13
-86
lines changed

3 files changed

+13
-86
lines changed

README.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ It provides a unified platform for chatting and exploring multiple large languag
1010
- 🎯 Cohere (Command's models)
1111
- 🚀 Groq Inc. – Optimized for fast inference (open source models) ⚡️
1212
- ⚡️ Cerebras – Also optimized for fast inference 🚀
13-
- 💎 SambaNova - Fast inference
1413
- ♾️ OpenRouter - Gateway to all LLMs
1514
- ☁️ Together AI - The AI Acceleration Cloud
1615
- 📡 Deep Infra - Scalable AI backbone
@@ -60,7 +59,6 @@ Some companies offer free API access. Check their terms and conditions before yo
6059
- **Cerebras:** [Get your Cerebras API key](https://cloud.cerebras.ai/platform/) - 🟢 free
6160
- **Cohere:** [Get your Cohere API key](https://dashboard.cohere.com/api-keys) - 🟢 free
6261
- **Groq:** [Get your Groq API key](https://console.groq.com/keys) - 🟢 free
63-
- **SambaNova:** [Get your SambaNova API key](https://cloud.sambanova.ai/apis) - 🟢 free
6462
- **Together AI:** 🟢 Free for deepseek-ai/DeepSeek-R1-Distill-Llama-70B-free [Get your Together AI API key](https://api.together.ai/settings/api-keys)
6563
- **OpenAI:** [OpenAI key](https://platform.openai.com/api-keys)
6664
- **Anthropic:** [Anthropic API key](https://console.anthropic.com/settings/keys)
@@ -198,12 +196,6 @@ Now whenever you want the AI to do a search to answer your question, write at th
198196
"s:" + your question, e.g. "s: what's the news today?", The AI will search the web and respond based on the information found.
199197

200198

201-
# Cors
202-
To get around CORS errors when working with SambaNova the API request will pass through `cors-proxy.php`
203-
which will forward the request to the desired platform. This will not hide your IP address, just forward the request.
204-
205-
This is necessary because direct requests via JavaScript in the browser to these platform are not possible.
206-
207199
# YouTube Caption
208200
You can simply share the URL of a YouTube video in the chat to be able to ask something about the video content,
209201
or ask the AI to make a summary.

cors-proxy.php

Lines changed: 0 additions & 60 deletions
This file was deleted.

js/script.js

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ let pre_function_text = '';
2424
let all_chunks = [];
2525
let has_chunk_error = false;
2626
let grounding_rendered_cnt = '';
27-
let proxy_url = window.location.origin + window.location.pathname + "cors-proxy.php";
2827
let dispatcher = 'user';
2928
// Markdown to HTML
3029
showdown.setFlavor('github');
@@ -105,18 +104,20 @@ let PLATFORM_DATA = {
105104
name: "OpenRouter",
106105
endpoint: "https://openrouter.ai/api/v1/chat/completions"
107106
},
107+
/**
108108
sambanova: {
109-
models: [
110-
"DeepSeek-V3-0324",
111-
"Qwen2.5-Coder-32B-Instruct",
112-
"Meta-Llama-3.1-405B-Instruct",
113-
"Llama-3.2-90B-Vision-Instruct"
114-
],
115-
needProxy: true,
116-
name: "SambaNova",
117-
endpoint: "https://api.sambanova.ai/v1/chat/completions"
109+
models: [
110+
"DeepSeek-V3-0324",
111+
"Qwen2.5-Coder-32B-Instruct",
112+
"Meta-Llama-3.1-405B-Instruct",
113+
"Llama-3.2-90B-Vision-Instruct"
114+
],
115+
needProxy: true,
116+
name: "SambaNova",
117+
endpoint: "https://api.sambanova.ai/v1/chat/completions"
118118
119119
},
120+
**/
120121
cerebras: {
121122
models: [
122123
"llama-3.3-70b"
@@ -3429,15 +3430,9 @@ function loadUserAddedPrompts() {
34293430
loadUserAddedPrompts()
34303431

34313432

3432-
//Checks if it is necessary to pass the request via cors-proxy.php to get rid of cors and
3433-
// if so returns a new endpoint address
3433+
// returns endpoint address
34343434
function getEndpoint() {
3435-
let needProxy = PLATFORM_DATA[chosen_platform]?.needProxy ?? false;
3436-
let endpoint = PLATFORM_DATA[chosen_platform]?.endpoint;
3437-
if (needProxy) {
3438-
return `${proxy_url}?endpoint=${endpoint}`;
3439-
}
3440-
return endpoint;
3435+
return PLATFORM_DATA[chosen_platform]?.endpoint;
34413436
}
34423437

34433438

0 commit comments

Comments
 (0)