-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BIGTOP-4209: Add backend API for AI Chat functionality #55
Conversation
sorry |
...op-manager-dao/src/main/java/org/apache/bigtop/manager/dao/converter/JsonToMapConverter.java
Outdated
Show resolved
Hide resolved
...op-manager-dao/src/main/java/org/apache/bigtop/manager/dao/converter/JsonToMapConverter.java
Outdated
Show resolved
Hide resolved
bigtop-manager-server/src/main/resources/ddl/MySQL-DDL-CREATE.sql
Outdated
Show resolved
Hide resolved
...nager-ai-bigmodel/src/main/java/org/apache/bigtop/manager/ai/bigmodel/BigModelAssistant.java
Outdated
Show resolved
Hide resolved
...nager-ai-bigmodel/src/main/java/org/apache/bigtop/manager/ai/bigmodel/BigModelAssistant.java
Outdated
Show resolved
Hide resolved
bigtop-manager-server/src/main/resources/ddl/MySQL-DDL-CREATE.sql
Outdated
Show resolved
Hide resolved
bigtop-manager-server/src/main/resources/ddl/MySQL-DDL-CREATE.sql
Outdated
Show resolved
Hide resolved
PTAL @kevinw66 |
public class PlatformAuthorizedPO extends BasePO implements Serializable { | ||
|
||
@Id | ||
@GeneratedValue(strategy = GenerationType.TABLE, generator = "llm_platform_authorized_generator") |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Param should use camelcase
There was a problem hiding this 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
https://issues.apache.org/jira/projects/BIGTOP/issues/BIGTOP-4209
intern: https://gitee.com/openeuler/opensource-intern/issues/IAG904