mirror of
https://github.com/jina-ai/node-DeepResearch.git
synced 2025-12-25 22:16:49 +08:00
fix: update test helper to handle simplified LLMConfig
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
This commit is contained in:
parent
2c11d21910
commit
0d01dce437
@ -1,7 +1,10 @@
|
||||
import { llmConfig } from '../../config';
|
||||
|
||||
export const setupTestLLMConfig = () => {
|
||||
// Reset provider to gemini for tests
|
||||
llmConfig.provider = 'gemini';
|
||||
delete llmConfig.baseURL;
|
||||
delete llmConfig.model;
|
||||
|
||||
// Clear any OpenAI-specific env vars that might affect tests
|
||||
delete process.env.OPENAI_API_KEY;
|
||||
delete process.env.OPENAI_BASE_URL;
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user