Update model references in ask command to use the latest version and clean up web search option handling

This commit is contained in:
2025-02-06 20:00:24 -05:00
parent a6eec68753
commit 566a6784c8
2 changed files with 6 additions and 8 deletions
+3 -3
View File
@@ -120,7 +120,7 @@ describe('Ask Command', () => {
expect(axios.post).toHaveBeenCalledWith(
'https://openrouter.ai/api/v1/chat/completions',
expect.objectContaining({
model: 'google/gemini-2.0-flash-exp:free',
model: 'google/gemini-2.0-flash-001',
plugins: undefined,
}),
expect.any(Object),
@@ -151,7 +151,7 @@ describe('Ask Command', () => {
expect(axios.post).toHaveBeenCalledWith(
'https://openrouter.ai/api/v1/chat/completions',
expect.objectContaining({
model: 'google/gemini-2.0-flash-exp:free:online',
model: 'google/gemini-2.0-flash-001:online',
plugins: expect.arrayContaining([
expect.objectContaining({
id: 'web',
@@ -185,7 +185,7 @@ describe('Ask Command', () => {
expect(axios.post).toHaveBeenCalledWith(
'https://openrouter.ai/api/v1/chat/completions',
expect.objectContaining({
model: 'google/gemini-2.0-flash-exp:free',
model: 'google/gemini-2.0-flash-001',
plugins: undefined,
}),
expect.any(Object),