Skip to content

BIGTOP-4209: Add backend API for AI Chat functionality#55

Merged
kevinw66 merged 37 commits intoapache:mainfrom
lhpqaq:bigtop-4209
Aug 30, 2024
Merged

BIGTOP-4209: Add backend API for AI Chat functionality#55
kevinw66 merged 37 commits intoapache:mainfrom
lhpqaq:bigtop-4209

Conversation

@lhpqaq
Copy link
Copy Markdown
Member

@lhpqaq lhpqaq commented Aug 27, 2024

@lhpqaq
Copy link
Copy Markdown
Member Author

lhpqaq commented Aug 27, 2024

sorry

@lhpqaq lhpqaq requested a review from kevinw66 August 28, 2024 02:54
@lhpqaq
Copy link
Copy Markdown
Member Author

lhpqaq commented Aug 28, 2024

@kevinw66 Some updates: diff

@lhpqaq lhpqaq requested a review from kevinw66 August 29, 2024 03:47
@lhpqaq lhpqaq closed this Aug 29, 2024
@lhpqaq lhpqaq reopened this Aug 29, 2024
@lhpqaq lhpqaq changed the title BIGTOP-4209: Add backend API for AI Chat functionality [WIP] BIGTOP-4209: Add backend API for AI Chat functionality Aug 29, 2024
@lhpqaq lhpqaq changed the title [WIP] BIGTOP-4209: Add backend API for AI Chat functionality BIGTOP-4209: Add backend API for AI Chat functionality Aug 29, 2024
@lhpqaq
Copy link
Copy Markdown
Member Author

lhpqaq commented Aug 29, 2024

PTAL @kevinw66

public class PlatformAuthorizedPO extends BasePO implements Serializable {

@Id
@GeneratedValue(strategy = GenerationType.TABLE, generator = "llm_platform_authorized_generator")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be removed

private Long userId;

@Column(name = "thread_id")
private Long chatThreadId;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use threadId instead

import java.util.List;

public interface ChatThreadDao extends BaseDao<ChatThreadPO> {
List<ChatThreadPO> findAllByUserId(@Param("user_id") Long userId);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Param should use camelcase

@lhpqaq lhpqaq requested a review from kevinw66 August 30, 2024 02:58
Copy link
Copy Markdown
Contributor

@kevinw66 kevinw66 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 LGTM, thanks @lhpqaq

@kevinw66 kevinw66 merged commit 492c11d into apache:main Aug 30, 2024
@lhpqaq lhpqaq deleted the bigtop-4209 branch December 20, 2024 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants