fix: switch default provider to OpenAI and increase test timeouts

Co-Authored-By: Han Xiao <han.xiao@jina.ai>
This commit is contained in:
Devin AI 2025-02-05 12:43:18 +00:00
parent 0ded17d735
commit 7612ccd1ab
3 changed files with 5 additions and 1 deletions

View File

@ -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);

View File

@ -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',

View File

@ -1,5 +1,7 @@
import { rewriteQuery } from '../query-rewriter';
jest.setTimeout(10000);
describe('rewriteQuery', () => {
it('should rewrite search query', async () => {
const { queries } = await rewriteQuery({