mirror of
https://github.com/jina-ai/node-DeepResearch.git
synced 2026-03-22 07:29:35 +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:
@@ -1,5 +1,7 @@
|
|||||||
import { getResponse } from '../agent';
|
import { getResponse } from '../agent';
|
||||||
|
|
||||||
|
jest.setTimeout(10000);
|
||||||
|
|
||||||
describe('getResponse', () => {
|
describe('getResponse', () => {
|
||||||
it('should handle search action', async () => {
|
it('should handle search action', async () => {
|
||||||
const result = await getResponse('What is TypeScript?', 1000);
|
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 SEARCH_PROVIDER: 'brave' | 'jina' | 'duck' = 'jina';
|
||||||
|
|
||||||
export const aiConfig: AIConfig = {
|
export const aiConfig: AIConfig = {
|
||||||
defaultProvider: 'gemini' as ProviderType,
|
defaultProvider: 'openai' as ProviderType,
|
||||||
providers: {
|
providers: {
|
||||||
gemini: {
|
gemini: {
|
||||||
type: 'gemini',
|
type: 'gemini',
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
import { rewriteQuery } from '../query-rewriter';
|
import { rewriteQuery } from '../query-rewriter';
|
||||||
|
|
||||||
|
jest.setTimeout(10000);
|
||||||
|
|
||||||
describe('rewriteQuery', () => {
|
describe('rewriteQuery', () => {
|
||||||
it('should rewrite search query', async () => {
|
it('should rewrite search query', async () => {
|
||||||
const { queries } = await rewriteQuery({
|
const { queries } = await rewriteQuery({
|
||||||
|
|||||||
Reference in New Issue
Block a user