Spaces:
Sleeping
Sleeping
Update ai-routes.js
Browse files- ai-routes.js +2 -2
ai-routes.js
CHANGED
|
@@ -180,7 +180,7 @@ async function callOpenRouterProvider(baseParams) {
|
|
| 180 |
async function callGemmaProvider(baseParams) {
|
| 181 |
const client = await getGeminiClient(); // AWAIT client
|
| 182 |
// Gemma via Gemini SDK usually shares quota, but using different models might help
|
| 183 |
-
const fallbackModels = ['gemma-
|
| 184 |
let lastError = null;
|
| 185 |
for (const modelName of fallbackModels) {
|
| 186 |
try {
|
|
@@ -298,7 +298,7 @@ async function streamOpenRouter(baseParams, res) {
|
|
| 298 |
|
| 299 |
async function streamGemma(baseParams, res) {
|
| 300 |
const client = await getGeminiClient(); // AWAIT client
|
| 301 |
-
const models = ['gemma-
|
| 302 |
let lastError = null;
|
| 303 |
for (const modelName of models) {
|
| 304 |
try {
|
|
|
|
| 180 |
async function callGemmaProvider(baseParams) {
|
| 181 |
const client = await getGeminiClient(); // AWAIT client
|
| 182 |
// Gemma via Gemini SDK usually shares quota, but using different models might help
|
| 183 |
+
const fallbackModels = ['gemma-3-27b-it', 'gemma-3-9b-it', 'gemma-3-4b-it'];
|
| 184 |
let lastError = null;
|
| 185 |
for (const modelName of fallbackModels) {
|
| 186 |
try {
|
|
|
|
| 298 |
|
| 299 |
async function streamGemma(baseParams, res) {
|
| 300 |
const client = await getGeminiClient(); // AWAIT client
|
| 301 |
+
const models = ['gemma-3-27b-it', 'gemma-3-9b-it', 'gemma-3-4b-it'];
|
| 302 |
let lastError = null;
|
| 303 |
for (const modelName of models) {
|
| 304 |
try {
|