mirror of
https://github.com/jina-ai/node-DeepResearch.git
synced 2025-12-26 06:28:56 +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';
|
import { llmConfig } from '../../config';
|
||||||
|
|
||||||
export const setupTestLLMConfig = () => {
|
export const setupTestLLMConfig = () => {
|
||||||
|
// Reset provider to gemini for tests
|
||||||
llmConfig.provider = 'gemini';
|
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