mirror of
https://github.com/jina-ai/node-DeepResearch.git
synced 2025-12-25 22:16:49 +08:00
fix: switch default provider to OpenAI and increase test timeouts
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
This commit is contained in:
parent
0ded17d735
commit
7612ccd1ab
@ -1,5 +1,7 @@
|
||||
import { getResponse } from '../agent';
|
||||
|
||||
jest.setTimeout(10000);
|
||||
|
||||
describe('getResponse', () => {
|
||||
it('should handle search action', async () => {
|
||||
const result = await getResponse('What is TypeScript?', 1000);
|
||||
|
||||
@ -39,7 +39,7 @@ export const BRAVE_API_KEY = process.env.BRAVE_API_KEY as string;
|
||||
export const SEARCH_PROVIDER: 'brave' | 'jina' | 'duck' = 'jina';
|
||||
|
||||
export const aiConfig: AIConfig = {
|
||||
defaultProvider: 'gemini' as ProviderType,
|
||||
defaultProvider: 'openai' as ProviderType,
|
||||
providers: {
|
||||
gemini: {
|
||||
type: 'gemini',
|
||||
|
||||
@ -1,5 +1,7 @@
|
||||
import { rewriteQuery } from '../query-rewriter';
|
||||
|
||||
jest.setTimeout(10000);
|
||||
|
||||
describe('rewriteQuery', () => {
|
||||
it('should rewrite search query', async () => {
|
||||
const { queries } = await rewriteQuery({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user