Skip to content

Commit 67e11f7

Browse files
authored
Merge pull request #1530 from rocket-admin/backend_langchain
Update AI model version to gpt-5 and increase maxDepth to 10 in use cases
2 parents 5291568 + 6f0f916 commit 67e11f7

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

backend/src/ai-core/providers/langchain-openai.provider.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ import { getOptionalEnvVariable, getRequiredEnvVariable } from '../../helpers/ap
1818

1919
@Injectable()
2020
export class LangchainOpenAIProvider implements IAIProvider {
21-
private readonly defaultModelId = 'gpt-4o';
22-
private readonly responsesApiModel = 'gpt-4o';
21+
private readonly defaultModelId = 'gpt-5';
22+
private readonly responsesApiModel = 'gpt-5';
2323
private openaiClient: OpenAI;
2424

2525
constructor() {

backend/src/entities/ai/use-cases/request-info-from-table-with-ai-v5.use.case.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export class RequestInfoFromTableWithAIUseCaseV5
3333
extends AbstractUseCase<RequestInfoFromTableDSV2, void>
3434
implements IRequestInfoFromTableV2
3535
{
36-
private readonly maxDepth: number = 5;
36+
private readonly maxDepth: number = 10;
3737

3838
constructor(
3939
@Inject(BaseType.GLOBAL_DB_CONTEXT)

backend/src/entities/ai/use-cases/request-info-from-table-with-ai-v6.use.case.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export class RequestInfoFromTableWithAIUseCaseV6
3434
extends AbstractUseCase<RequestInfoFromTableDSV2, void>
3535
implements IRequestInfoFromTableV2
3636
{
37-
private readonly maxDepth: number = 5;
37+
private readonly maxDepth: number = 10;
3838
private readonly aiProvider: AIProviderType = AIProviderType.BEDROCK;
3939

4040
constructor(

0 commit comments

Comments
 (0)