SYMBOL INDEX (1780 symbols across 229 files) FILE: api/admin_handler.go type AdminHandler (line 12) | type AdminHandler struct method RegisterRoutes (line 22) | func (h *AdminHandler) RegisterRoutes(router *mux.Router) { method CreateUser (line 33) | func (h *AdminHandler) CreateUser(w http.ResponseWriter, r *http.Reque... method UpdateUser (line 48) | func (h *AdminHandler) UpdateUser(w http.ResponseWriter, r *http.Reque... method UserStatHandler (line 63) | func (h *AdminHandler) UserStatHandler(w http.ResponseWriter, r *http.... method UpdateRateLimit (line 110) | func (h *AdminHandler) UpdateRateLimit(w http.ResponseWriter, r *http.... method UserAnalysisHandler (line 133) | func (h *AdminHandler) UserAnalysisHandler(w http.ResponseWriter, r *h... method UserSessionHistoryHandler (line 159) | func (h *AdminHandler) UserSessionHistoryHandler(w http.ResponseWriter... method SessionMessagesHandler (line 204) | func (h *AdminHandler) SessionMessagesHandler(w http.ResponseWriter, r... function NewAdminHandler (line 16) | func NewAdminHandler(service *AuthUserService) *AdminHandler { type SessionHistoryResponse (line 152) | type SessionHistoryResponse struct FILE: api/ai/model.go type Role (line 8) | type Role method String (line 16) | func (r Role) String() string { method UnmarshalJSON (line 42) | func (r *Role) UnmarshalJSON(data []byte) error { method MarshalJSON (line 61) | func (r Role) MarshalJSON() ([]byte, error) { constant System (line 11) | System Role = iota constant User (line 12) | User constant Assistant (line 13) | Assistant function StringToRole (line 29) | func StringToRole(s string) (Role, error) { FILE: api/auth/auth.go constant iterations (line 16) | iterations = 260000 constant saltSize (line 17) | saltSize = 16 constant keySize (line 18) | keySize = 32 function generateSalt (line 21) | func generateSalt() ([]byte, error) { function GeneratePasswordHash (line 27) | func GeneratePasswordHash(password string) (string, error) { function ValidatePassword (line 42) | func ValidatePassword(password, hash string) bool { function GenerateRandomPassword (line 62) | func GenerateRandomPassword() (string, error) { FILE: api/auth/auth_test.go function TestGeneratePasswordHash (line 9) | func TestGeneratePasswordHash(t *testing.T) { function TestGeneratePasswordHash2 (line 30) | func TestGeneratePasswordHash2(t *testing.T) { function TestPass (line 51) | func TestPass(t *testing.T) { FILE: api/auth/token.go function NewUUID (line 16) | func NewUUID() string { constant TokenTypeAccess (line 27) | TokenTypeAccess = "access" constant TokenTypeRefresh (line 28) | TokenTypeRefresh = "refresh" function GenJwtSecretAndAudience (line 31) | func GenJwtSecretAndAudience() (string, string) { function GenerateToken (line 49) | func GenerateToken(userID int32, role string, secret, jwt_audience strin... function ValidateToken (line 79) | func ValidateToken(tokenString string, secret string, expectedTokenType ... function GetExpireSecureCookie (line 125) | func GetExpireSecureCookie(value string, isHttps bool) *http.Cookie { FILE: api/auth/token_test.go function TestGenerateToken (line 9) | func TestGenerateToken(t *testing.T) { FILE: api/bot_answer_history_handler.go type BotAnswerHistoryHandler (line 12) | type BotAnswerHistoryHandler struct method Register (line 21) | func (h *BotAnswerHistoryHandler) Register(router *mux.Router) { method CreateBotAnswerHistory (line 33) | func (h *BotAnswerHistoryHandler) CreateBotAnswerHistory(w http.Respon... method GetBotAnswerHistoryByID (line 59) | func (h *BotAnswerHistoryHandler) GetBotAnswerHistoryByID(w http.Respo... method GetBotAnswerHistoryByBotUUID (line 81) | func (h *BotAnswerHistoryHandler) GetBotAnswerHistoryByBotUUID(w http.... method GetBotAnswerHistoryByUserID (line 116) | func (h *BotAnswerHistoryHandler) GetBotAnswerHistoryByUserID(w http.R... method UpdateBotAnswerHistory (line 134) | func (h *BotAnswerHistoryHandler) UpdateBotAnswerHistory(w http.Respon... method DeleteBotAnswerHistory (line 156) | func (h *BotAnswerHistoryHandler) DeleteBotAnswerHistory(w http.Respon... method GetBotAnswerHistoryCountByBotUUID (line 177) | func (h *BotAnswerHistoryHandler) GetBotAnswerHistoryCountByBotUUID(w ... method GetBotAnswerHistoryCountByUserID (line 193) | func (h *BotAnswerHistoryHandler) GetBotAnswerHistoryCountByUserID(w h... method GetLatestBotAnswerHistoryByBotUUID (line 210) | func (h *BotAnswerHistoryHandler) GetLatestBotAnswerHistoryByBotUUID(w... function NewBotAnswerHistoryHandler (line 16) | func NewBotAnswerHistoryHandler(q *sqlc_queries.Queries) *BotAnswerHisto... FILE: api/bot_answer_history_service.go type BotAnswerHistoryService (line 10) | type BotAnswerHistoryService struct method CreateBotAnswerHistory (line 20) | func (s *BotAnswerHistoryService) CreateBotAnswerHistory(ctx context.C... method GetBotAnswerHistoryByID (line 29) | func (s *BotAnswerHistoryService) GetBotAnswerHistoryByID(ctx context.... method GetBotAnswerHistoryByBotUUID (line 38) | func (s *BotAnswerHistoryService) GetBotAnswerHistoryByBotUUID(ctx con... method GetBotAnswerHistoryByUserID (line 52) | func (s *BotAnswerHistoryService) GetBotAnswerHistoryByUserID(ctx cont... method UpdateBotAnswerHistory (line 66) | func (s *BotAnswerHistoryService) UpdateBotAnswerHistory(ctx context.C... method DeleteBotAnswerHistory (line 80) | func (s *BotAnswerHistoryService) DeleteBotAnswerHistory(ctx context.C... method GetBotAnswerHistoryCountByBotUUID (line 89) | func (s *BotAnswerHistoryService) GetBotAnswerHistoryCountByBotUUID(ct... method GetBotAnswerHistoryCountByUserID (line 98) | func (s *BotAnswerHistoryService) GetBotAnswerHistoryCountByUserID(ctx... method GetLatestBotAnswerHistoryByBotUUID (line 107) | func (s *BotAnswerHistoryService) GetLatestBotAnswerHistoryByBotUUID(c... function NewBotAnswerHistoryService (line 15) | func NewBotAnswerHistoryService(q *sqlc_queries.Queries) *BotAnswerHisto... FILE: api/chat_artifact.go function extractArtifacts (line 9) | func extractArtifacts(content string) []Artifact { function isExecutableLanguage (line 161) | func isExecutableLanguage(language string) bool { function containsExecutablePatterns (line 177) | func containsExecutablePatterns(content string) bool { FILE: api/chat_auth_user_handler.go constant AccessTokenLifetime (line 20) | AccessTokenLifetime = 30 * time.Minute constant RefreshTokenLifetime (line 21) | RefreshTokenLifetime = 7 * 24 * time.Hour constant RefreshTokenName (line 22) | RefreshTokenName = "refresh_token" type AuthUserHandler (line 25) | type AuthUserHandler struct method Register (line 100) | func (h *AuthUserHandler) Register(router *mux.Router) { method RegisterPublicRoutes (line 107) | func (h *AuthUserHandler) RegisterPublicRoutes(router *mux.Router) { method CreateUser (line 115) | func (h *AuthUserHandler) CreateUser(w http.ResponseWriter, r *http.Re... method GetUserByID (line 130) | func (h *AuthUserHandler) GetUserByID(w http.ResponseWriter, r *http.R... method UpdateSelf (line 144) | func (h *AuthUserHandler) UpdateSelf(w http.ResponseWriter, r *http.Re... method UpdateUser (line 167) | func (h *AuthUserHandler) UpdateUser(w http.ResponseWriter, r *http.Re... method SignUp (line 189) | func (h *AuthUserHandler) SignUp(w http.ResponseWriter, r *http.Reques... method Login (line 271) | func (h *AuthUserHandler) Login(w http.ResponseWriter, r *http.Request) { method ForeverToken (line 351) | func (h *AuthUserHandler) ForeverToken(w http.ResponseWriter, r *http.... method RefreshToken (line 369) | func (h *AuthUserHandler) RefreshToken(w http.ResponseWriter, r *http.... method Logout (line 450) | func (h *AuthUserHandler) Logout(w http.ResponseWriter, r *http.Reques... method ResetPasswordHandler (line 476) | func (h *AuthUserHandler) ResetPasswordHandler(w http.ResponseWriter, ... method ChangePasswordHandler (line 542) | func (h *AuthUserHandler) ChangePasswordHandler(w http.ResponseWriter,... method UserStatHandler (line 587) | func (h *AuthUserHandler) UserStatHandler(w http.ResponseWriter, r *ht... method UpdateRateLimit (line 639) | func (h *AuthUserHandler) UpdateRateLimit(w http.ResponseWriter, r *ht... method GetRateLimit (line 661) | func (h *AuthUserHandler) GetRateLimit(w http.ResponseWriter, r *http.... function isHTTPS (line 30) | func isHTTPS(r *http.Request) bool { function createSecureRefreshCookie (line 58) | func createSecureRefreshCookie(name, value string, maxAge int, r *http.R... function NewAuthUserHandler (line 95) | func NewAuthUserHandler(sqlc_q *sqlc_queries.Queries) *AuthUserHandler { type LoginParams (line 184) | type LoginParams struct type TokenRequest (line 468) | type TokenRequest struct type ResetPasswordRequest (line 472) | type ResetPasswordRequest struct function SendPasswordResetEmail (line 533) | func SendPasswordResetEmail(email, tempPassword string) error { type ChangePasswordRequest (line 537) | type ChangePasswordRequest struct type UserStat (line 575) | type UserStat struct type RateLimitRequest (line 634) | type RateLimitRequest struct FILE: api/chat_auth_user_service.go type AuthUserService (line 16) | type AuthUserService struct method CreateAuthUser (line 26) | func (s *AuthUserService) CreateAuthUser(ctx context.Context, auth_use... method GetAuthUserByID (line 43) | func (s *AuthUserService) GetAuthUserByID(ctx context.Context, id int3... method GetAllAuthUsers (line 52) | func (s *AuthUserService) GetAllAuthUsers(ctx context.Context) ([]sqlc... method Authenticate (line 60) | func (s *AuthUserService) Authenticate(ctx context.Context, email, pas... method Logout (line 71) | func (s *AuthUserService) Logout(tokenString string) (*http.Cookie, er... method GetUserStats (line 86) | func (s *AuthUserService) GetUserStats(ctx context.Context, p Paginati... method UpdateRateLimit (line 104) | func (s *AuthUserService) UpdateRateLimit(ctx context.Context, user_em... method GetRateLimit (line 117) | func (s *AuthUserService) GetRateLimit(ctx context.Context, user_id in... method GetUserAnalysis (line 168) | func (s *AuthUserService) GetUserAnalysis(ctx context.Context, email s... method GetUserSessionHistory (line 259) | func (s *AuthUserService) GetUserSessionHistory(ctx context.Context, e... function NewAuthUserService (line 21) | func NewAuthUserService(q *sqlc_queries.Queries) *AuthUserService { type UserAnalysisData (line 127) | type UserAnalysisData struct type UserAnalysisInfo (line 133) | type UserAnalysisInfo struct type ModelUsageInfo (line 143) | type ModelUsageInfo struct type ActivityInfo (line 151) | type ActivityInfo struct type SessionHistoryInfo (line 158) | type SessionHistoryInfo struct FILE: api/chat_comment_handler.go type ChatCommentHandler (line 12) | type ChatCommentHandler struct method Register (line 23) | func (h *ChatCommentHandler) Register(router *mux.Router) { method CreateChatComment (line 29) | func (h *ChatCommentHandler) CreateChatComment(w http.ResponseWriter, ... method GetCommentsBySessionUUID (line 64) | func (h *ChatCommentHandler) GetCommentsBySessionUUID(w http.ResponseW... method GetCommentsByMessageUUID (line 76) | func (h *ChatCommentHandler) GetCommentsByMessageUUID(w http.ResponseW... function NewChatCommentHandler (line 16) | func NewChatCommentHandler(sqlc_q *sqlc_queries.Queries) *ChatCommentHan... FILE: api/chat_comment_service.go type ChatCommentService (line 11) | type ChatCommentService struct method CreateChatComment (line 20) | func (s *ChatCommentService) CreateChatComment(ctx context.Context, pa... method GetCommentsBySessionUUID (line 29) | func (s *ChatCommentService) GetCommentsBySessionUUID(ctx context.Cont... method GetCommentsByMessageUUID (line 38) | func (s *ChatCommentService) GetCommentsByMessageUUID(ctx context.Cont... method GetCommentsBySession (line 56) | func (s *ChatCommentService) GetCommentsBySession(ctx context.Context,... method GetCommentsByMessage (line 76) | func (s *ChatCommentService) GetCommentsByMessage(ctx context.Context,... function NewChatCommentService (line 15) | func NewChatCommentService(q *sqlc_queries.Queries) *ChatCommentService { type CommentWithAuthor (line 47) | type CommentWithAuthor struct FILE: api/chat_main_handler.go type ChatHandler (line 23) | type ChatHandler struct method Register (line 42) | func (h *ChatHandler) Register(router *mux.Router) { method GetChatInstructions (line 93) | func (h *ChatHandler) GetChatInstructions(w http.ResponseWriter, r *ht... method ChatBotCompletionHandler (line 106) | func (h *ChatHandler) ChatBotCompletionHandler(w http.ResponseWriter, ... method ChatCompletionHandler (line 169) | func (h *ChatHandler) ChatCompletionHandler(w http.ResponseWriter, r *... method validateChatSession (line 213) | func (h *ChatHandler) validateChatSession(ctx context.Context, w http.... method handlePromptCreation (line 244) | func (h *ChatHandler) handlePromptCreation(ctx context.Context, w http... method generateAndSaveAnswer (line 308) | func (h *ChatHandler) generateAndSaveAnswer(ctx context.Context, w htt... method generateSessionTitle (line 357) | func (h *ChatHandler) generateSessionTitle(chatSession *sqlc_queries.C... method sendSuggestedQuestionsStream (line 420) | func (h *ChatHandler) sendSuggestedQuestionsStream(w http.ResponseWrit... method GetRequestContext (line 607) | func (h *ChatHandler) GetRequestContext() context.Context { method chooseChatModel (line 611) | func (h *ChatHandler) chooseChatModel(chat_session sqlc_queries.ChatSe... method CheckModelAccess (line 671) | func (h *ChatHandler) CheckModelAccess(w http.ResponseWriter, chatSess... constant sessionTitleGenerationTimeout (line 29) | sessionTitleGenerationTimeout = 30 * time.Second function NewChatHandler (line 31) | func NewChatHandler(sqlc_q *sqlc_queries.Queries) *ChatHandler { type ChatRequest (line 51) | type ChatRequest struct type ChatCompletionResponse (line 59) | type ChatCompletionResponse struct type Choice (line 72) | type Choice struct type OpenaiChatRequest (line 78) | type OpenaiChatRequest struct type BotRequest (line 83) | type BotRequest struct type ChatInstructionResponse (line 89) | type ChatInstructionResponse struct function genAnswer (line 472) | func genAnswer(h *ChatHandler, w http.ResponseWriter, ctx context.Contex... function genBotAnswer (line 490) | func genBotAnswer(h *ChatHandler, w http.ResponseWriter, session sqlc_qu... function simpleChatMessagesToMessages (line 534) | func simpleChatMessagesToMessages(simpleChatMessages []SimpleChatMessage... function regenerateAnswer (line 552) | func regenerateAnswer(h *ChatHandler, w http.ResponseWriter, ctx context... function isTest (line 658) | func isTest(msgs []models.Message) bool { FILE: api/chat_main_service.go type ChatService (line 23) | type ChatService struct method getAskMessages (line 73) | func (s *ChatService) getAskMessages(chatSession sqlc_queries.ChatSess... method CreateChatPromptSimple (line 135) | func (s *ChatService) CreateChatPromptSimple(ctx context.Context, chat... method CreateChatMessageSimple (line 168) | func (s *ChatService) CreateChatMessageSimple(ctx context.Context, ses... method CreateChatMessageWithSuggestedQuestions (line 215) | func (s *ChatService) CreateChatMessageWithSuggestedQuestions(ctx cont... method generateSuggestedQuestions (line 272) | func (s *ChatService) generateSuggestedQuestions(content string, messa... method callLLMForSuggestions (line 314) | func (s *ChatService) callLLMForSuggestions(prompt string) string { method callGeminiForSuggestions (line 378) | func (s *ChatService) callGeminiForSuggestions(ctx context.Context, mo... method callOpenAICompatibleForSuggestions (line 429) | func (s *ChatService) callOpenAICompatibleForSuggestions(ctx context.C... method UpdateChatMessageContent (line 472) | func (s *ChatService) UpdateChatMessageContent(ctx context.Context, uu... method UpdateChatMessageSuggestions (line 490) | func (s *ChatService) UpdateChatMessageSuggestions(ctx context.Context... method logChat (line 500) | func (s *ChatService) logChat(chatSession sqlc_queries.ChatSession, ms... function NewChatService (line 31) | func NewChatService(q *sqlc_queries.Queries) *ChatService { function loadArtifactInstruction (line 37) | func loadArtifactInstruction() (string, error) { function appendInstructionToSystemMessage (line 44) | func appendInstructionToSystemMessage(msgs []models.Message, instruction... FILE: api/chat_message_handler.go type ChatMessageHandler (line 17) | type ChatMessageHandler struct method Register (line 28) | func (h *ChatMessageHandler) Register(router *mux.Router) { method CreateChatMessage (line 47) | func (h *ChatMessageHandler) CreateChatMessage(w http.ResponseWriter, ... method GetChatMessageByID (line 62) | func (h *ChatMessageHandler) GetChatMessageByID(w http.ResponseWriter,... method UpdateChatMessage (line 77) | func (h *ChatMessageHandler) UpdateChatMessage(w http.ResponseWriter, ... method DeleteChatMessage (line 99) | func (h *ChatMessageHandler) DeleteChatMessage(w http.ResponseWriter, ... method GetAllChatMessages (line 114) | func (h *ChatMessageHandler) GetAllChatMessages(w http.ResponseWriter,... method GetChatMessageByUUID (line 124) | func (h *ChatMessageHandler) GetChatMessageByUUID(w http.ResponseWrite... method UpdateChatMessageByUUID (line 136) | func (h *ChatMessageHandler) UpdateChatMessageByUUID(w http.ResponseWr... method DeleteChatMessageByUUID (line 158) | func (h *ChatMessageHandler) DeleteChatMessageByUUID(w http.ResponseWr... method GetChatMessagesBySessionUUID (line 169) | func (h *ChatMessageHandler) GetChatMessagesBySessionUUID(w http.Respo... method GetChatHistoryBySessionUUID (line 210) | func (h *ChatMessageHandler) GetChatHistoryBySessionUUID(w http.Respon... method DeleteChatMessagesBySesionUUID (line 229) | func (h *ChatMessageHandler) DeleteChatMessagesBySesionUUID(w http.Res... method GenerateMoreSuggestions (line 240) | func (h *ChatMessageHandler) GenerateMoreSuggestions(w http.ResponseWr... function NewChatMessageHandler (line 21) | func NewChatMessageHandler(sqlc_q *sqlc_queries.Queries) *ChatMessageHan... FILE: api/chat_message_service.go type ChatMessageService (line 13) | type ChatMessageService struct method CreateChatMessage (line 23) | func (s *ChatMessageService) CreateChatMessage(ctx context.Context, me... method GetChatMessageByID (line 32) | func (s *ChatMessageService) GetChatMessageByID(ctx context.Context, i... method UpdateChatMessage (line 41) | func (s *ChatMessageService) UpdateChatMessage(ctx context.Context, me... method DeleteChatMessage (line 50) | func (s *ChatMessageService) DeleteChatMessage(ctx context.Context, id... method DeleteChatMessageByUUID (line 59) | func (s *ChatMessageService) DeleteChatMessageByUUID(ctx context.Conte... method GetAllChatMessages (line 68) | func (s *ChatMessageService) GetAllChatMessages(ctx context.Context) (... method GetLatestMessagesBySessionID (line 76) | func (s *ChatMessageService) GetLatestMessagesBySessionID(ctx context.... method GetFirstMessageBySessionUUID (line 85) | func (s *ChatMessageService) GetFirstMessageBySessionUUID(ctx context.... method AddMessage (line 93) | func (s *ChatMessageService) AddMessage(ctx context.Context, chatSessi... method GetChatMessageByUUID (line 109) | func (s *ChatMessageService) GetChatMessageByUUID(ctx context.Context,... method UpdateChatMessageByUUID (line 118) | func (s *ChatMessageService) UpdateChatMessageByUUID(ctx context.Conte... method GetChatMessagesBySessionUUID (line 127) | func (s *ChatMessageService) GetChatMessagesBySessionUUID(ctx context.... method DeleteChatMessagesBySesionUUID (line 141) | func (s *ChatMessageService) DeleteChatMessagesBySesionUUID(ctx contex... method GetChatMessagesCount (line 146) | func (s *ChatMessageService) GetChatMessagesCount(ctx context.Context,... function NewChatMessageService (line 18) | func NewChatMessageService(q *sqlc_queries.Queries) *ChatMessageService { FILE: api/chat_message_service_test.go function TestChatMessageService (line 13) | func TestChatMessageService(t *testing.T) { function TestGetChatMessagesBySessionID (line 63) | func TestGetChatMessagesBySessionID(t *testing.T) { FILE: api/chat_model_handler.go type ChatModelHandler (line 14) | type ChatModelHandler struct method Register (line 24) | func (h *ChatModelHandler) Register(r *mux.Router) { method ListSystemChatModels (line 40) | func (h *ChatModelHandler) ListSystemChatModels(w http.ResponseWriter,... method ChatModelByID (line 86) | func (h *ChatModelHandler) ChatModelByID(w http.ResponseWriter, r *htt... method CreateChatModel (line 109) | func (h *ChatModelHandler) CreateChatModel(w http.ResponseWriter, r *h... method UpdateChatModel (line 186) | func (h *ChatModelHandler) UpdateChatModel(w http.ResponseWriter, r *h... method DeleteChatModel (line 278) | func (h *ChatModelHandler) DeleteChatModel(w http.ResponseWriter, r *h... method GetDefaultChatModel (line 312) | func (h *ChatModelHandler) GetDefaultChatModel(w http.ResponseWriter, ... function NewChatModelHandler (line 18) | func NewChatModelHandler(db *sqlc_queries.Queries) *ChatModelHandler { FILE: api/chat_model_handler_test.go function createTwoChatModel (line 19) | func createTwoChatModel(q *sqlc_queries.Queries) (sqlc_queries.AuthUser,... function clearChatModelsIfExists (line 68) | func clearChatModelsIfExists(q *sqlc_queries.Queries) { function unmarshalResponseToChatModel (line 80) | func unmarshalResponseToChatModel(t *testing.T, rr *httptest.ResponseRec... function TestChatModelTest (line 91) | func TestChatModelTest(t *testing.T) { function checkGetModels (line 146) | func checkGetModels(t *testing.T, router *mux.Router, expectedResults []... function updateFirstRecord (line 162) | func updateFirstRecord(t *testing.T, router *mux.Router, chatModelID int... FILE: api/chat_model_privilege_handler.go type UserChatModelPrivilegeHandler (line 18) | type UserChatModelPrivilegeHandler struct method Register (line 30) | func (h *UserChatModelPrivilegeHandler) Register(r *mux.Router) { method ListUserChatModelPrivileges (line 46) | func (h *UserChatModelPrivilegeHandler) ListUserChatModelPrivileges(w ... method UserChatModelPrivilegeByID (line 69) | func (h *UserChatModelPrivilegeHandler) UserChatModelPrivilegeByID(w h... method CreateUserChatModelPrivilege (line 87) | func (h *UserChatModelPrivilegeHandler) CreateUserChatModelPrivilege(w... method UpdateUserChatModelPrivilege (line 162) | func (h *UserChatModelPrivilegeHandler) UpdateUserChatModelPrivilege(w... method DeleteUserChatModelPrivilege (line 215) | func (h *UserChatModelPrivilegeHandler) DeleteUserChatModelPrivilege(w... method UserChatModelPrivilegeByUserAndModelID (line 236) | func (h *UserChatModelPrivilegeHandler) UserChatModelPrivilegeByUserAn... method ListUserChatModelPrivilegesByUserID (line 268) | func (h *UserChatModelPrivilegeHandler) ListUserChatModelPrivilegesByU... function NewUserChatModelPrivilegeHandler (line 23) | func NewUserChatModelPrivilegeHandler(db *sqlc_queries.Queries) *UserCha... type ChatModelPrivilege (line 37) | type ChatModelPrivilege struct FILE: api/chat_prompt_hander.go type ChatPromptHandler (line 15) | type ChatPromptHandler struct method Register (line 26) | func (h *ChatPromptHandler) Register(router *mux.Router) { method CreateChatPrompt (line 37) | func (h *ChatPromptHandler) CreateChatPrompt(w http.ResponseWriter, r ... method GetChatPromptByID (line 91) | func (h *ChatPromptHandler) GetChatPromptByID(w http.ResponseWriter, r... method UpdateChatPrompt (line 106) | func (h *ChatPromptHandler) UpdateChatPrompt(w http.ResponseWriter, r ... method DeleteChatPrompt (line 128) | func (h *ChatPromptHandler) DeleteChatPrompt(w http.ResponseWriter, r ... method GetAllChatPrompts (line 143) | func (h *ChatPromptHandler) GetAllChatPrompts(w http.ResponseWriter, r... method GetChatPromptsByUserID (line 152) | func (h *ChatPromptHandler) GetChatPromptsByUserID(w http.ResponseWrit... method DeleteChatPromptByUUID (line 167) | func (h *ChatPromptHandler) DeleteChatPromptByUUID(w http.ResponseWrit... method UpdateChatPromptByUUID (line 177) | func (h *ChatPromptHandler) UpdateChatPromptByUUID(w http.ResponseWrit... function NewChatPromptHandler (line 19) | func NewChatPromptHandler(sqlc_q *sqlc_queries.Queries) *ChatPromptHandl... FILE: api/chat_prompt_service.go type ChatPromptService (line 11) | type ChatPromptService struct method CreateChatPrompt (line 21) | func (s *ChatPromptService) CreateChatPrompt(ctx context.Context, prom... method CreateChatPromptWithUUID (line 29) | func (s *ChatPromptService) CreateChatPromptWithUUID(ctx context.Conte... method GetChatPromptByID (line 40) | func (s *ChatPromptService) GetChatPromptByID(ctx context.Context, id ... method UpdateChatPrompt (line 49) | func (s *ChatPromptService) UpdateChatPrompt(ctx context.Context, prom... method DeleteChatPrompt (line 58) | func (s *ChatPromptService) DeleteChatPrompt(ctx context.Context, id i... method GetAllChatPrompts (line 67) | func (s *ChatPromptService) GetAllChatPrompts(ctx context.Context) ([]... method GetChatPromptsByUserID (line 75) | func (s *ChatPromptService) GetChatPromptsByUserID(ctx context.Context... method GetChatPromptsBySessionUUID (line 83) | func (s *ChatPromptService) GetChatPromptsBySessionUUID(ctx context.Co... method DeleteChatPromptByUUID (line 92) | func (s *ChatPromptService) DeleteChatPromptByUUID(ctx context.Context... method UpdateChatPromptByUUID (line 101) | func (s *ChatPromptService) UpdateChatPromptByUUID(ctx context.Context... function NewChatPromptService (line 16) | func NewChatPromptService(q *sqlc_queries.Queries) *ChatPromptService { FILE: api/chat_prompt_service_test.go function TestChatPromptService (line 14) | func TestChatPromptService(t *testing.T) { function TestGetAllChatPrompts (line 67) | func TestGetAllChatPrompts(t *testing.T) { function TestGetChatPromptsByTopic (line 113) | func TestGetChatPromptsByTopic(t *testing.T) { function TestGetChatPromptsByUserID (line 161) | func TestGetChatPromptsByUserID(t *testing.T) { FILE: api/chat_session_handler.go type ChatSessionHandler (line 15) | type ChatSessionHandler struct method Register (line 27) | func (h *ChatSessionHandler) Register(router *mux.Router) { method getChatSessionByUUID (line 40) | func (h *ChatSessionHandler) getChatSessionByUUID(w http.ResponseWrite... method createChatSessionByUUID (line 68) | func (h *ChatSessionHandler) createChatSessionByUUID(w http.ResponseWr... method createOrUpdateChatSessionByUUID (line 164) | func (h *ChatSessionHandler) createOrUpdateChatSessionByUUID(w http.Re... method deleteChatSessionByUUID (line 234) | func (h *ChatSessionHandler) deleteChatSessionByUUID(w http.ResponseWr... method getSimpleChatSessionsByUserID (line 248) | func (h *ChatSessionHandler) getSimpleChatSessionsByUserID(w http.Resp... method updateChatSessionTopicByUUID (line 270) | func (h *ChatSessionHandler) updateChatSessionTopicByUUID(w http.Respo... method updateSessionMaxLength (line 305) | func (h *ChatSessionHandler) updateSessionMaxLength(w http.ResponseWri... method createChatSessionFromSnapshot (line 334) | func (h *ChatSessionHandler) createChatSessionFromSnapshot(w http.Resp... function NewChatSessionHandler (line 19) | func NewChatSessionHandler(sqlc_q *sqlc_queries.Queries) *ChatSessionHan... type UpdateChatSessionRequest (line 147) | type UpdateChatSessionRequest struct FILE: api/chat_session_service.go type ChatSessionService (line 15) | type ChatSessionService struct method CreateChatSession (line 25) | func (s *ChatSessionService) CreateChatSession(ctx context.Context, se... method GetChatSessionByID (line 34) | func (s *ChatSessionService) GetChatSessionByID(ctx context.Context, i... method UpdateChatSession (line 43) | func (s *ChatSessionService) UpdateChatSession(ctx context.Context, se... method DeleteChatSession (line 52) | func (s *ChatSessionService) DeleteChatSession(ctx context.Context, id... method GetAllChatSessions (line 61) | func (s *ChatSessionService) GetAllChatSessions(ctx context.Context) (... method GetChatSessionsByUserID (line 69) | func (s *ChatSessionService) GetChatSessionsByUserID(ctx context.Conte... method GetSimpleChatSessionsByUserID (line 77) | func (s *ChatSessionService) GetSimpleChatSessionsByUserID(ctx context... method GetChatSessionByUUID (line 109) | func (s *ChatSessionService) GetChatSessionByUUID(ctx context.Context,... method UpdateChatSessionByUUID (line 118) | func (s *ChatSessionService) UpdateChatSessionByUUID(ctx context.Conte... method UpdateChatSessionTopicByUUID (line 127) | func (s *ChatSessionService) UpdateChatSessionTopicByUUID(ctx context.... method CreateOrUpdateChatSessionByUUID (line 136) | func (s *ChatSessionService) CreateOrUpdateChatSessionByUUID(ctx conte... method DeleteChatSessionByUUID (line 145) | func (s *ChatSessionService) DeleteChatSessionByUUID(ctx context.Conte... method UpdateSessionMaxLength (line 155) | func (s *ChatSessionService) UpdateSessionMaxLength(ctx context.Contex... method EnsureDefaultSystemPrompt (line 165) | func (s *ChatSessionService) EnsureDefaultSystemPrompt(ctx context.Con... function NewChatSessionService (line 20) | func NewChatSessionService(q *sqlc_queries.Queries) *ChatSessionService { FILE: api/chat_session_service_test.go function TestChatSessionService (line 14) | func TestChatSessionService(t *testing.T) { function TestGetChatSessionsByUserID (line 67) | func TestGetChatSessionsByUserID(t *testing.T) { function TestGetAllChatSessions (line 103) | func TestGetAllChatSessions(t *testing.T) { FILE: api/chat_snapshot_handler.go type ChatSnapshotHandler (line 13) | type ChatSnapshotHandler struct method Register (line 24) | func (h *ChatSnapshotHandler) Register(router *mux.Router) { method CreateChatSnapshot (line 34) | func (h *ChatSnapshotHandler) CreateChatSnapshot(w http.ResponseWriter... method CreateChatBot (line 56) | func (h *ChatSnapshotHandler) CreateChatBot(w http.ResponseWriter, r *... method GetChatSnapshot (line 80) | func (h *ChatSnapshotHandler) GetChatSnapshot(w http.ResponseWriter, r... method ChatSnapshotMetaByUserID (line 92) | func (h *ChatSnapshotHandler) ChatSnapshotMetaByUserID(w http.Response... method UpdateChatSnapshotMetaByUUID (line 162) | func (h *ChatSnapshotHandler) UpdateChatSnapshotMetaByUUID(w http.Resp... method DeleteChatSnapshot (line 208) | func (h *ChatSnapshotHandler) DeleteChatSnapshot(w http.ResponseWriter... method ChatSnapshotSearch (line 233) | func (h *ChatSnapshotHandler) ChatSnapshotSearch(w http.ResponseWriter... function NewChatSnapshotHandler (line 18) | func NewChatSnapshotHandler(sqlc_q *sqlc_queries.Queries) *ChatSnapshotH... FILE: api/chat_snapshot_handler_test.go function TestChatSnapshot (line 19) | func TestChatSnapshot(t *testing.T) { FILE: api/chat_snapshot_service.go type ChatSnapshotService (line 14) | type ChatSnapshotService struct method CreateChatSnapshot (line 23) | func (s *ChatSnapshotService) CreateChatSnapshot(ctx context.Context, ... method CreateChatBot (line 83) | func (s *ChatSnapshotService) CreateChatBot(ctx context.Context, chatS... function NewChatSnapshotService (line 19) | func NewChatSnapshotService(q *sqlc_queries.Queries) *ChatSnapshotService { function GenTitle (line 66) | func GenTitle(q *sqlc_queries.Queries, ctx context.Context, chatSession ... FILE: api/chat_user_active_chat_session_handler.go type UserActiveChatSessionHandler (line 17) | type UserActiveChatSessionHandler struct method Register (line 30) | func (h *UserActiveChatSessionHandler) Register(router *mux.Router) { method GetUserActiveChatSessionHandler (line 42) | func (h *UserActiveChatSessionHandler) GetUserActiveChatSessionHandler... method CreateOrUpdateUserActiveChatSessionHandler (line 75) | func (h *UserActiveChatSessionHandler) CreateOrUpdateUserActiveChatSes... method GetWorkspaceActiveSessionHandler (line 119) | func (h *UserActiveChatSessionHandler) GetWorkspaceActiveSessionHandle... method SetWorkspaceActiveSessionHandler (line 165) | func (h *UserActiveChatSessionHandler) SetWorkspaceActiveSessionHandle... method GetAllWorkspaceActiveSessionsHandler (line 237) | func (h *UserActiveChatSessionHandler) GetAllWorkspaceActiveSessionsHa... function NewUserActiveChatSessionHandler (line 22) | func NewUserActiveChatSessionHandler(sqlc_q *sqlc.Queries) *UserActiveCh... FILE: api/chat_user_active_chat_session_sevice.go type UserActiveChatSessionService (line 10) | type UserActiveChatSessionService struct method UpsertActiveSession (line 21) | func (s *UserActiveChatSessionService) UpsertActiveSession(ctx context... method GetActiveSession (line 39) | func (s *UserActiveChatSessionService) GetActiveSession(ctx context.Co... method GetAllActiveSessions (line 56) | func (s *UserActiveChatSessionService) GetAllActiveSessions(ctx contex... method DeleteActiveSession (line 65) | func (s *UserActiveChatSessionService) DeleteActiveSession(ctx context... function NewUserActiveChatSessionService (line 14) | func NewUserActiveChatSessionService(q *sqlc.Queries) *UserActiveChatSes... FILE: api/chat_workspace_handler.go type ChatWorkspaceHandler (line 16) | type ChatWorkspaceHandler struct method Register (line 27) | func (h *ChatWorkspaceHandler) Register(router *mux.Router) { method createWorkspace (line 74) | func (h *ChatWorkspaceHandler) createWorkspace(w http.ResponseWriter, ... method getWorkspaceByUUID (line 154) | func (h *ChatWorkspaceHandler) getWorkspaceByUUID(w http.ResponseWrite... method getWorkspacesByUserID (line 212) | func (h *ChatWorkspaceHandler) getWorkspacesByUserID(w http.ResponseWr... method updateWorkspace (line 250) | func (h *ChatWorkspaceHandler) updateWorkspace(w http.ResponseWriter, ... method updateWorkspaceOrder (line 316) | func (h *ChatWorkspaceHandler) updateWorkspaceOrder(w http.ResponseWri... method deleteWorkspace (line 379) | func (h *ChatWorkspaceHandler) deleteWorkspace(w http.ResponseWriter, ... method setDefaultWorkspace (line 432) | func (h *ChatWorkspaceHandler) setDefaultWorkspace(w http.ResponseWrit... method setWorkspaceAsDefaultForUser (line 480) | func (h *ChatWorkspaceHandler) setWorkspaceAsDefaultForUser(ctx contex... method ensureDefaultWorkspace (line 505) | func (h *ChatWorkspaceHandler) ensureDefaultWorkspace(w http.ResponseW... method createSessionInWorkspace (line 544) | func (h *ChatWorkspaceHandler) createSessionInWorkspace(w http.Respons... method getSessionsByWorkspace (line 636) | func (h *ChatWorkspaceHandler) getSessionsByWorkspace(w http.ResponseW... method autoMigrateLegacySessions (line 706) | func (h *ChatWorkspaceHandler) autoMigrateLegacySessions(w http.Respon... function NewChatWorkspaceHandler (line 20) | func NewChatWorkspaceHandler(sqlc_q *sqlc_queries.Queries) *ChatWorkspac... type CreateWorkspaceRequest (line 41) | type CreateWorkspaceRequest struct type UpdateWorkspaceRequest (line 49) | type UpdateWorkspaceRequest struct type UpdateWorkspaceOrderRequest (line 56) | type UpdateWorkspaceOrderRequest struct type WorkspaceResponse (line 60) | type WorkspaceResponse struct type CreateSessionInWorkspaceRequest (line 537) | type CreateSessionInWorkspaceRequest struct FILE: api/chat_workspace_service.go type ChatWorkspaceService (line 15) | type ChatWorkspaceService struct method CreateWorkspace (line 25) | func (s *ChatWorkspaceService) CreateWorkspace(ctx context.Context, pa... method GetWorkspaceByUUID (line 34) | func (s *ChatWorkspaceService) GetWorkspaceByUUID(ctx context.Context,... method GetWorkspacesByUserID (line 43) | func (s *ChatWorkspaceService) GetWorkspacesByUserID(ctx context.Conte... method GetWorkspaceWithSessionCount (line 52) | func (s *ChatWorkspaceService) GetWorkspaceWithSessionCount(ctx contex... method UpdateWorkspace (line 61) | func (s *ChatWorkspaceService) UpdateWorkspace(ctx context.Context, pa... method UpdateWorkspaceOrder (line 70) | func (s *ChatWorkspaceService) UpdateWorkspaceOrder(ctx context.Contex... method DeleteWorkspace (line 79) | func (s *ChatWorkspaceService) DeleteWorkspace(ctx context.Context, wo... method GetDefaultWorkspaceByUserID (line 88) | func (s *ChatWorkspaceService) GetDefaultWorkspaceByUserID(ctx context... method SetDefaultWorkspace (line 97) | func (s *ChatWorkspaceService) SetDefaultWorkspace(ctx context.Context... method CreateDefaultWorkspace (line 106) | func (s *ChatWorkspaceService) CreateDefaultWorkspace(ctx context.Cont... method EnsureDefaultWorkspaceExists (line 120) | func (s *ChatWorkspaceService) EnsureDefaultWorkspaceExists(ctx contex... method HasWorkspacePermission (line 134) | func (s *ChatWorkspaceService) HasWorkspacePermission(ctx context.Cont... method MigrateSessionsToDefaultWorkspace (line 151) | func (s *ChatWorkspaceService) MigrateSessionsToDefaultWorkspace(ctx c... function NewChatWorkspaceService (line 20) | func NewChatWorkspaceService(q *sqlc_queries.Queries) *ChatWorkspaceServ... FILE: api/constants.go constant DefaultRequestTimeout (line 11) | DefaultRequestTimeout = 5 * time.Minute constant MaxStreamingLoopIterations (line 14) | MaxStreamingLoopIterations = 10000 constant SmallAnswerThreshold (line 17) | SmallAnswerThreshold = 200 constant FlushCharacterThreshold (line 18) | FlushCharacterThreshold = 500 constant TestPrefixLength (line 19) | TestPrefixLength = 16 constant DefaultPageSize (line 22) | DefaultPageSize = 200 constant MaxHistoryItems (line 23) | MaxHistoryItems = 10000 constant DefaultPageLimit (line 26) | DefaultPageLimit = 30 constant TestDemoPrefix (line 29) | TestDemoPrefix = "test_demo_bestqa" constant DefaultMaxLength (line 32) | DefaultMaxLength = 10 constant DefaultTemperature (line 33) | DefaultTemperature = 0.7 constant DefaultMaxTokens (line 34) | DefaultMaxTokens = 4096 constant DefaultTopP (line 35) | DefaultTopP = 1.0 constant DefaultN (line 36) | DefaultN = 1 constant RequestTimeoutSeconds (line 37) | RequestTimeoutSeconds = 10 constant TokenEstimateRatio (line 38) | TokenEstimateRatio = 4 constant SummarizeThreshold (line 39) | SummarizeThreshold = 300 constant DefaultSystemPromptText (line 40) | DefaultSystemPromptText = "You are a helpful, concise assistant. Ask cla... constant ErrorStreamUnsupported (line 45) | ErrorStreamUnsupported = "Streaming unsupported by client" constant ErrorNoContent (line 46) | ErrorNoContent = "no content in answer" constant ErrorEndOfStream (line 47) | ErrorEndOfStream = "End of stream reached" constant ErrorDoneBreak (line 48) | ErrorDoneBreak = "DONE break" constant ContentTypeJSON (line 53) | ContentTypeJSON = "application/json" constant AcceptEventStream (line 54) | AcceptEventStream = "text/event-stream" constant CacheControlNoCache (line 55) | CacheControlNoCache = "no-cache" constant ConnectionKeepAlive (line 56) | ConnectionKeepAlive = "keep-alive" FILE: api/embed_debug_test.go function TestEmbedInstructions (line 5) | func TestEmbedInstructions(t *testing.T) { FILE: api/errors.go type APIError (line 19) | type APIError struct method WithMessage (line 37) | func (e APIError) WithMessage(message string) APIError { method WithDetail (line 43) | func (e APIError) WithDetail(detail string) APIError { method WithDebugInfo (line 49) | func (e APIError) WithDebugInfo(debugInfo string) APIError { method Error (line 54) | func (e APIError) Error() string { function NewAPIError (line 28) | func NewAPIError(httpCode int, code, message string) APIError { constant ErrAuth (line 60) | ErrAuth = "AUTH" constant ErrValidation (line 61) | ErrValidation = "VALD" constant ErrResource (line 62) | ErrResource = "RES" constant ErrDatabase (line 63) | ErrDatabase = "DB" constant ErrExternal (line 64) | ErrExternal = "EXT" constant ErrInternal (line 65) | ErrInternal = "INTN" constant ErrModel (line 66) | ErrModel = "MODEL" function ErrResourceNotFound (line 265) | func ErrResourceNotFound(resource string) APIError { function ErrResourceAlreadyExists (line 271) | func ErrResourceAlreadyExists(resource string) APIError { function ErrValidationInvalidInput (line 277) | func ErrValidationInvalidInput(detail string) APIError { function RespondWithAPIError (line 288) | func RespondWithAPIError(w http.ResponseWriter, err APIError) { function MapDatabaseError (line 314) | func MapDatabaseError(err error) error { function WrapError (line 428) | func WrapError(err error, detail string) APIError { function IsErrorCode (line 475) | func IsErrorCode(err error, code string) bool { function ErrorCatalogHandler (line 483) | func ErrorCatalogHandler(w http.ResponseWriter, r *http.Request) { function createAPIError (line 510) | func createAPIError(baseErr APIError, detail string, debugInfo string) A... FILE: api/file_upload_handler.go type ChatFileHandler (line 19) | type ChatFileHandler struct method Register (line 30) | func (h *ChatFileHandler) Register(router *mux.Router) { method ReceiveFile (line 61) | func (h *ChatFileHandler) ReceiveFile(w http.ResponseWriter, r *http.R... method DownloadFile (line 153) | func (h *ChatFileHandler) DownloadFile(w http.ResponseWriter, r *http.... method DeleteFile (line 180) | func (h *ChatFileHandler) DeleteFile(w http.ResponseWriter, r *http.Re... method ChatFilesBySessionUUID (line 191) | func (h *ChatFileHandler) ChatFilesBySessionUUID(w http.ResponseWriter... function NewChatFileHandler (line 23) | func NewChatFileHandler(sqlc_q *sqlc_queries.Queries) *ChatFileHandler { constant maxUploadSize (line 38) | maxUploadSize = 32 << 20 function isValidFileType (line 50) | func isValidFileType(mimeType, fileName string) bool { FILE: api/file_upload_service.go type ChatFileService (line 11) | type ChatFileService struct method CreateChatUpload (line 21) | func (s *ChatFileService) CreateChatUpload(ctx context.Context, params... method GetChatFile (line 49) | func (s *ChatFileService) GetChatFile(ctx context.Context, id int32) (... method DeleteChatFile (line 65) | func (s *ChatFileService) DeleteChatFile(ctx context.Context, id int32... method ListChatFilesBySession (line 81) | func (s *ChatFileService) ListChatFilesBySession(ctx context.Context, ... function NewChatFileService (line 16) | func NewChatFileService(q *sqlc_queries.Queries) *ChatFileService { FILE: api/handle_tts.go function handleTTSRequest (line 10) | func handleTTSRequest(w http.ResponseWriter, r *http.Request) { FILE: api/jwt_secret_service.go type JWTSecretService (line 16) | type JWTSecretService struct method GetJwtSecret (line 26) | func (s *JWTSecretService) GetJwtSecret(ctx context.Context, name stri... method GetOrCreateJwtSecret (line 36) | func (s *JWTSecretService) GetOrCreateJwtSecret(ctx context.Context, n... function NewJWTSecretService (line 21) | func NewJWTSecretService(q *sqlc_queries.Queries) *JWTSecretService { FILE: api/llm/claude/claude.go type Delta (line 11) | type Delta struct type ContentBlockDelta (line 16) | type ContentBlockDelta struct type ContentBlock (line 22) | type ContentBlock struct type StartBlock (line 27) | type StartBlock struct function AnswerFromBlockDelta (line 33) | func AnswerFromBlockDelta(line []byte) string { function AnswerFromBlockStart (line 39) | func AnswerFromBlockStart(line []byte) string { function FormatClaudePrompt (line 45) | func FormatClaudePrompt(chat_compeletion_messages []models.Message) stri... type Response (line 63) | type Response struct type Content (line 74) | type Content struct type Usage (line 79) | type Usage struct FILE: api/llm/gemini/gemini.go type Part (line 19) | type Part interface type PartString (line 23) | type PartString struct method toPart (line 33) | func (p *PartString) toPart() string { function TextData (line 27) | func TextData(text string) PartString { type PartBlob (line 37) | type PartBlob struct method toPart (line 41) | func (p PartBlob) toPart() string { type Blob (line 50) | type Blob struct function ImageData (line 64) | func ImageData(mimeType string, data []byte) Blob { type GeminiMessage (line 71) | type GeminiMessage struct type GeminPayload (line 76) | type GeminPayload struct type Content (line 80) | type Content struct type SafetyRating (line 88) | type SafetyRating struct type Candidate (line 93) | type Candidate struct type PromptFeedback (line 100) | type PromptFeedback struct type ResponseBody (line 104) | type ResponseBody struct function ParseRespLine (line 109) | func ParseRespLine(line []byte, answer string) string { function ParseRespLineDelta (line 132) | func ParseRespLineDelta(line []byte) string { function SupportedMimeTypes (line 155) | func SupportedMimeTypes() mapset.Set[string] { function GenGemminPayload (line 180) | func GenGemminPayload(chat_compeletion_messages []models.Message, chatFi... type ErrorResponse (line 222) | type ErrorResponse struct function HandleRegularResponse (line 230) | func HandleRegularResponse(client http.Client, req *http.Request) (*mode... function BuildAPIURL (line 288) | func BuildAPIURL(model string, stream bool) string { type GoogleApiError (line 298) | type GoogleApiError struct method String (line 307) | func (gae *GoogleApiError) String() string { FILE: api/llm/gemini/gemini_test.go function TestBuildAPIURL (line 8) | func TestBuildAPIURL(t *testing.T) { FILE: api/llm/openai/chat.go constant ChatMessageRoleSystem (line 10) | ChatMessageRoleSystem = "system" constant ChatMessageRoleUser (line 11) | ChatMessageRoleUser = "user" constant ChatMessageRoleAssistant (line 12) | ChatMessageRoleAssistant = "assistant" constant ChatMessageRoleFunction (line 13) | ChatMessageRoleFunction = "function" constant ChatMessageRoleTool (line 14) | ChatMessageRoleTool = "tool" constant chatCompletionsSuffix (line 17) | chatCompletionsSuffix = "/chat/completions" type Hate (line 25) | type Hate struct type SelfHarm (line 29) | type SelfHarm struct type Sexual (line 33) | type Sexual struct type Violence (line 37) | type Violence struct type JailBreak (line 42) | type JailBreak struct type Profanity (line 47) | type Profanity struct type ContentFilterResults (line 52) | type ContentFilterResults struct type PromptAnnotation (line 61) | type PromptAnnotation struct type ImageURLDetail (line 66) | type ImageURLDetail constant ImageURLDetailHigh (line 69) | ImageURLDetailHigh ImageURLDetail = "high" constant ImageURLDetailLow (line 70) | ImageURLDetailLow ImageURLDetail = "low" constant ImageURLDetailAuto (line 71) | ImageURLDetailAuto ImageURLDetail = "auto" type ChatMessageImageURL (line 74) | type ChatMessageImageURL struct type ChatMessagePartType (line 79) | type ChatMessagePartType constant ChatMessagePartTypeText (line 82) | ChatMessagePartTypeText ChatMessagePartType = "text" constant ChatMessagePartTypeImageURL (line 83) | ChatMessagePartTypeImageURL ChatMessagePartType = "image_url" type ChatMessagePart (line 86) | type ChatMessagePart struct type ChatCompletionMessage (line 92) | type ChatCompletionMessage struct method MarshalJSON (line 113) | func (m ChatCompletionMessage) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 144) | func (m *ChatCompletionMessage) UnmarshalJSON(bs []byte) error { type ToolCall (line 177) | type ToolCall struct type FunctionCall (line 185) | type FunctionCall struct type ChatCompletionResponseFormatType (line 191) | type ChatCompletionResponseFormatType constant ChatCompletionResponseFormatTypeJSONObject (line 194) | ChatCompletionResponseFormatTypeJSONObject ChatCompletionResponseFormatT... constant ChatCompletionResponseFormatTypeJSONSchema (line 195) | ChatCompletionResponseFormatTypeJSONSchema ChatCompletionResponseFormatT... constant ChatCompletionResponseFormatTypeText (line 196) | ChatCompletionResponseFormatTypeText ChatCompletionResponseFormatT... type ChatCompletionResponseFormat (line 199) | type ChatCompletionResponseFormat struct type ChatCompletionResponseFormatJSONSchema (line 204) | type ChatCompletionResponseFormatJSONSchema struct type ChatCompletionRequest (line 212) | type ChatCompletionRequest struct type StreamOptions (line 263) | type StreamOptions struct type ToolType (line 271) | type ToolType constant ToolTypeFunction (line 274) | ToolTypeFunction ToolType = "function" type Tool (line 277) | type Tool struct type ToolChoice (line 282) | type ToolChoice struct type ToolFunction (line 287) | type ToolFunction struct type FunctionDefinition (line 291) | type FunctionDefinition struct type TopLogProbs (line 306) | type TopLogProbs struct type LogProb (line 313) | type LogProb struct type LogProbs (line 323) | type LogProbs struct type FinishReason (line 328) | type FinishReason method MarshalJSON (line 339) | func (r FinishReason) MarshalJSON() ([]byte, error) { constant FinishReasonStop (line 331) | FinishReasonStop FinishReason = "stop" constant FinishReasonLength (line 332) | FinishReasonLength FinishReason = "length" constant FinishReasonFunctionCall (line 333) | FinishReasonFunctionCall FinishReason = "function_call" constant FinishReasonToolCalls (line 334) | FinishReasonToolCalls FinishReason = "tool_calls" constant FinishReasonContentFilter (line 335) | FinishReasonContentFilter FinishReason = "content_filter" constant FinishReasonNull (line 336) | FinishReasonNull FinishReason = "null" type ChatCompletionChoice (line 346) | type ChatCompletionChoice struct type ChatCompletionResponse (line 362) | type ChatCompletionResponse struct FILE: api/llm/openai/client.go type httpHeader (line 5) | type httpHeader method SetHeader (line 7) | func (h *httpHeader) SetHeader(header http.Header) { method Header (line 11) | func (h *httpHeader) Header() http.Header { FILE: api/llm/openai/common.go type Usage (line 6) | type Usage struct type CompletionTokensDetails (line 15) | type CompletionTokensDetails struct type PromptTokensDetails (line 21) | type PromptTokensDetails struct FILE: api/llm/openai/openai.go type ChatCompletionStreamChoiceDelta (line 4) | type ChatCompletionStreamChoiceDelta struct type ChatCompletionStreamChoiceLogprobs (line 13) | type ChatCompletionStreamChoiceLogprobs struct type ChatCompletionTokenLogprob (line 18) | type ChatCompletionTokenLogprob struct type ChatCompletionTokenLogprobTopLogprob (line 25) | type ChatCompletionTokenLogprobTopLogprob struct type ChatCompletionStreamChoice (line 31) | type ChatCompletionStreamChoice struct type PromptFilterResult (line 39) | type PromptFilterResult struct type ChatCompletionStreamResponse (line 44) | type ChatCompletionStreamResponse struct FILE: api/llm_openai.go function SupportedMimeTypes (line 20) | func SupportedMimeTypes() mapset.Set[string] { function messagesToOpenAIMesages (line 45) | func messagesToOpenAIMesages(messages []models.Message, chatFiles []sqlc... function byteToImageURL (line 84) | func byteToImageURL(mimeType string, data []byte) string { function getModelBaseUrl (line 90) | func getModelBaseUrl(apiUrl string) (string, error) { function configOpenAIProxy (line 117) | func configOpenAIProxy(config *openai.ClientConfig) { function genOpenAIConfig (line 134) | func genOpenAIConfig(chatModel sqlc_queries.ChatModel) (openai.ClientCon... FILE: api/llm_summary.go function llm_summarize_with_timeout (line 15) | func llm_summarize_with_timeout(baseURL, content string) string { function llm_summarize (line 26) | func llm_summarize(ctx context.Context, baseURL string, doc string) stri... FILE: api/main.go type AppConfig (line 27) | type AppConfig struct function getFlattenKeys (line 48) | func getFlattenKeys(prefix string, v reflect.Value) (keys []string) { function bindEnvironmentVariables (line 62) | func bindEnvironmentVariables() { function main (line 80) | func main() { FILE: api/main_test.go function TestMain (line 19) | func TestMain(m *testing.M) { FILE: api/middleware_authenticate.go function CheckPermission (line 13) | func CheckPermission(userID int, ctx context.Context) bool { type AuthTokenResult (line 33) | type AuthTokenResult struct function extractBearerToken (line 43) | func extractBearerToken(r *http.Request) string { function createUserContext (line 53) | func createUserContext(r *http.Request, userID, role string) *http.Reque... function parseAndValidateJWT (line 59) | func parseAndValidateJWT(bearerToken string, expectedTokenType string) *... type contextKey (line 145) | type contextKey constant roleContextKey (line 148) | roleContextKey contextKey = "role" constant userContextKey (line 149) | userContextKey contextKey = "user" constant guidContextKey (line 150) | guidContextKey contextKey = "guid" constant snapshotPrefix (line 152) | snapshotPrefix = "/api/uuid/chat_snapshot/" function IsChatSnapshotUUID (line 154) | func IsChatSnapshotUUID(r *http.Request) bool { function AdminOnlyHandler (line 166) | func AdminOnlyHandler(h http.Handler) http.Handler { function AdminOnlyHandlerFunc (line 186) | func AdminOnlyHandlerFunc(handlerFunc http.HandlerFunc) http.HandlerFunc { function AdminRouteMiddleware (line 207) | func AdminRouteMiddleware(next http.Handler) http.Handler { function AdminAuthMiddleware (line 228) | func AdminAuthMiddleware(handler http.Handler) http.Handler { function UserAuthMiddleware (line 252) | func UserAuthMiddleware(handler http.Handler) http.Handler { function IsAuthorizedMiddleware (line 267) | func IsAuthorizedMiddleware(handler http.Handler) http.Handler { FILE: api/middleware_gzip.go type gzipResponseWriter (line 10) | type gzipResponseWriter struct method Write (line 17) | func (w gzipResponseWriter) Write(b []byte) (int, error) { function makeGzipHandler (line 21) | func makeGzipHandler(fn http.HandlerFunc) http.HandlerFunc { FILE: api/middleware_lastRequestTime.go function UpdateLastRequestTime (line 9) | func UpdateLastRequestTime(next http.Handler) http.Handler { FILE: api/middleware_rateLimit.go function RateLimitByUserID (line 12) | func RateLimitByUserID(q *sqlc_queries.Queries) func(http.Handler) http.... FILE: api/middleware_validation.go type ValidationConfig (line 24) | type ValidationConfig struct type FieldValidator (line 33) | type FieldValidator function ValidateEmail (line 36) | func ValidateEmail(value interface{}) error { function ValidateUUID (line 50) | func ValidateUUID(value interface{}) error { function ValidateStringLength (line 61) | func ValidateStringLength(min, max int) FieldValidator { function ValidateNonEmpty (line 80) | func ValidateNonEmpty(value interface{}) error { function ValidationMiddleware (line 92) | func ValidationMiddleware(config ValidationConfig) func(http.Handler) ht... FILE: api/model_claude3_service.go type ClaudeResponse (line 23) | type ClaudeResponse struct type Claude3ChatModel (line 34) | type Claude3ChatModel struct method Stream (line 38) | func (m *Claude3ChatModel) Stream(w http.ResponseWriter, chatSession s... function doGenerateClaude3 (line 150) | func doGenerateClaude3(ctx context.Context, client http.Client, req *htt... method chatStreamClaude3 (line 173) | func (h *ChatHandler) chatStreamClaude3(ctx context.Context, w http.Resp... FILE: api/model_completion_service.go type CompletionChatModel (line 20) | type CompletionChatModel struct method Stream (line 25) | func (m *CompletionChatModel) Stream(w http.ResponseWriter, chatSessio... method completionStream (line 32) | func (m *CompletionChatModel) completionStream(ctx context.Context, w ... FILE: api/model_custom_service.go type CustomModelResponse (line 22) | type CustomModelResponse struct type CustomChatModel (line 33) | type CustomChatModel struct method Stream (line 38) | func (m *CustomChatModel) Stream(w http.ResponseWriter, chatSession sq... method customChatStream (line 45) | func (m *CustomChatModel) customChatStream(ctx context.Context, w http... FILE: api/model_gemini_service.go type GeminiClient (line 33) | type GeminiClient struct function NewGeminiClient (line 38) | func NewGeminiClient() *GeminiClient { type GeminiChatModel (line 45) | type GeminiChatModel struct method Stream (line 57) | func (m *GeminiChatModel) Stream(w http.ResponseWriter, chatSession sq... method handleStreamResponse (line 169) | func (m *GeminiChatModel) handleStreamResponse(ctx context.Context, w ... function NewGeminiChatModel (line 50) | func NewGeminiChatModel(h *ChatHandler) *GeminiChatModel { function GenerateChatTitle (line 99) | func GenerateChatTitle(ctx context.Context, model, chatText string) (str... FILE: api/model_ollama_service.go type OllamaResponse (line 22) | type OllamaResponse struct type OllamaChatModel (line 36) | type OllamaChatModel struct method Stream (line 40) | func (m *OllamaChatModel) Stream(w http.ResponseWriter, chatSession sq... method chatOllamStream (line 46) | func (h *ChatHandler) chatOllamStream(ctx context.Context, w http.Respon... FILE: api/model_openai_service.go type OpenAIChatModel (line 22) | type OpenAIChatModel struct method Stream (line 26) | func (m *OpenAIChatModel) Stream(w http.ResponseWriter, chatSession sq... function handleRegularResponse (line 66) | func handleRegularResponse(w http.ResponseWriter, client *openai.Client,... function doChatStream (line 84) | func doChatStream(w http.ResponseWriter, client *openai.Client, req open... function processDelta (line 206) | func processDelta(delta llm_openai.ChatCompletionStreamChoiceDelta, reas... function NewUserMessage (line 233) | func NewUserMessage(content string) openai.ChatCompletionMessage { function NewChatCompletionRequest (line 238) | func NewChatCompletionRequest(chatSession sqlc_queries.ChatSession, chat... FILE: api/model_test_service.go type TestChatModel (line 13) | type TestChatModel struct method Stream (line 18) | func (m *TestChatModel) Stream(w http.ResponseWriter, chatSession sqlc... method chatStreamTest (line 23) | func (m *TestChatModel) chatStreamTest(w http.ResponseWriter, chatSess... FILE: api/models.go type TokenResult (line 11) | type TokenResult struct type ConversationRequest (line 16) | type ConversationRequest struct type RequestOption (line 22) | type RequestOption struct type Artifact (line 27) | type Artifact struct type SimpleChatMessage (line 35) | type SimpleChatMessage struct method GetRole (line 47) | func (msg SimpleChatMessage) GetRole() string { type SimpleChatSession (line 58) | type SimpleChatSession struct type ChatMessageResponse (line 74) | type ChatMessageResponse struct type ChatSessionResponse (line 88) | type ChatSessionResponse struct type Pagination (line 97) | type Pagination struct method Offset (line 104) | func (p *Pagination) Offset() int32 { type ChatModel (line 109) | type ChatModel interface FILE: api/models/models.go function getTokenCount (line 9) | func getTokenCount(content string) (int, error) { type Message (line 20) | type Message struct method TokenCount (line 26) | func (m Message) TokenCount() int32 { method SetTokenCount (line 38) | func (m *Message) SetTokenCount(tokenCount int32) *Message { type LLMAnswer (line 43) | type LLMAnswer struct FILE: api/openai_test.go function Test_getModelBaseUrl (line 5) | func Test_getModelBaseUrl(t *testing.T) { FILE: api/sqlc/schema.sql type jwt_secrets (line 1) | CREATE TABLE IF NOT EXISTS jwt_secrets ( type chat_model (line 13) | CREATE TABLE IF NOT EXISTS chat_model ( type jwt_secrets_name_idx (line 71) | CREATE INDEX IF NOT EXISTS jwt_secrets_name_idx ON jwt_secrets (name) type auth_user (line 74) | CREATE TABLE IF NOT EXISTS auth_user ( type auth_user_email_idx (line 89) | CREATE INDEX IF NOT EXISTS auth_user_email_idx ON auth_user (email) type auth_user_management (line 91) | CREATE TABLE IF NOT EXISTS auth_user_management ( type auth_user_management_user_id_idx (line 100) | CREATE INDEX IF NOT EXISTS auth_user_management_user_id_idx ON auth_user... type user_chat_model_privilege (line 107) | CREATE TABLE IF NOT EXISTS user_chat_model_privilege( type chat_workspace (line 119) | CREATE TABLE IF NOT EXISTS chat_workspace ( type chat_workspace_user_id_idx (line 134) | CREATE INDEX IF NOT EXISTS chat_workspace_user_id_idx ON chat_workspace ... type chat_workspace_uuid_idx (line 137) | CREATE INDEX IF NOT EXISTS chat_workspace_uuid_idx ON chat_workspace usi... type chat_workspace_single_default_per_user_idx (line 153) | CREATE UNIQUE INDEX IF NOT EXISTS chat_workspace_single_default_per_user... type chat_session (line 157) | CREATE TABLE IF NOT EXISTS chat_session ( type chat_session_uuid_idx (line 193) | CREATE INDEX IF NOT EXISTS chat_session_uuid_idx ON chat_session using h... type chat_session_user_id_idx (line 196) | CREATE INDEX IF NOT EXISTS chat_session_user_id_idx ON chat_session (use... type chat_session_workspace_id_idx (line 199) | CREATE INDEX IF NOT EXISTS chat_session_workspace_id_idx ON chat_session... type chat_message (line 201) | CREATE TABLE IF NOT EXISTS chat_message ( type chat_message_uuid_idx (line 234) | CREATE INDEX IF NOT EXISTS chat_message_uuid_idx ON chat_message using h... type chat_message_chat_session_uuid_idx (line 237) | CREATE INDEX IF NOT EXISTS chat_message_chat_session_uuid_idx ON chat_me... type chat_message_user_id_idx (line 240) | CREATE INDEX IF NOT EXISTS chat_message_user_id_idx ON chat_message (use... type chat_message_created_at_idx (line 243) | CREATE INDEX IF NOT EXISTS chat_message_created_at_idx ON chat_message u... type chat_prompt (line 245) | CREATE TABLE IF NOT EXISTS chat_prompt ( type chat_prompt_uuid_idx (line 266) | CREATE INDEX IF NOT EXISTS chat_prompt_uuid_idx ON chat_prompt using has... type chat_prompt_chat_session_uuid_idx (line 269) | CREATE INDEX IF NOT EXISTS chat_prompt_chat_session_uuid_idx ON chat_pro... type chat_prompt_user_id_idx (line 272) | CREATE INDEX IF NOT EXISTS chat_prompt_user_id_idx ON chat_prompt (user_id) type chat_prompt_unique_active_system_per_session_idx (line 289) | CREATE UNIQUE INDEX IF NOT EXISTS chat_prompt_unique_active_system_per_s... type chat_logs (line 293) | CREATE TABLE IF NOT EXISTS chat_logs ( type chat_logs_created_at_idx (line 302) | CREATE INDEX IF NOT EXISTS chat_logs_created_at_idx ON chat_logs using b... type user_active_chat_session (line 307) | CREATE TABLE IF NOT EXISTS user_active_chat_session ( type user_active_chat_session_user_id_idx (line 316) | CREATE INDEX IF NOT EXISTS user_active_chat_session_user_id_idx ON user_... type unique_user_workspace_active_session_coalesce_idx (line 340) | CREATE UNIQUE INDEX unique_user_workspace_active_session_coalesce_idx type user_active_chat_session_workspace_id_idx (line 344) | CREATE INDEX IF NOT EXISTS user_active_chat_session_workspace_id_idx ON ... type chat_snapshot (line 348) | CREATE TABLE IF NOT EXISTS chat_snapshot ( type search_vector_gin_idx (line 372) | CREATE INDEX IF NOT EXISTS search_vector_gin_idx on chat_snapshot using ... type chat_snapshot_user_id_idx (line 375) | CREATE INDEX IF NOT EXISTS chat_snapshot_user_id_idx ON chat_snapshot (u... type chat_snapshot_created_at_idx (line 378) | CREATE INDEX IF NOT EXISTS chat_snapshot_created_at_idx ON chat_snapshot... type chat_file (line 383) | CREATE TABLE IF NOT EXISTS chat_file ( type bot_answer_history (line 394) | CREATE TABLE IF NOT EXISTS bot_answer_history ( type bot_answer_history_bot_uuid_idx (line 407) | CREATE INDEX IF NOT EXISTS bot_answer_history_bot_uuid_idx ON bot_answer... type bot_answer_history_user_id_idx (line 408) | CREATE INDEX IF NOT EXISTS bot_answer_history_user_id_idx ON bot_answer_... type bot_answer_history_created_at_idx (line 409) | CREATE INDEX IF NOT EXISTS bot_answer_history_created_at_idx ON bot_answ... type chat_comment (line 411) | CREATE TABLE IF NOT EXISTS chat_comment ( type chat_comment_chat_session_uuid_idx (line 424) | CREATE INDEX IF NOT EXISTS chat_comment_chat_session_uuid_idx ON chat_co... type chat_comment_created_by_idx (line 425) | CREATE INDEX IF NOT EXISTS chat_comment_created_by_idx ON chat_comment (... FILE: api/sqlc_queries/auth_user.sql.go constant createAuthUser (line 13) | createAuthUser = `-- name: CreateAuthUser :one type CreateAuthUserParams (line 19) | type CreateAuthUserParams struct method CreateAuthUser (line 29) | func (q *Queries) CreateAuthUser(ctx context.Context, arg CreateAuthUser... constant deleteAuthUser (line 56) | deleteAuthUser = `-- name: DeleteAuthUser :exec method DeleteAuthUser (line 60) | func (q *Queries) DeleteAuthUser(ctx context.Context, email string) error { constant getAllAuthUsers (line 65) | getAllAuthUsers = `-- name: GetAllAuthUsers :many method GetAllAuthUsers (line 69) | func (q *Queries) GetAllAuthUsers(ctx context.Context) ([]AuthUser, erro... constant getAuthUserByEmail (line 104) | getAuthUserByEmail = `-- name: GetAuthUserByEmail :one method GetAuthUserByEmail (line 108) | func (q *Queries) GetAuthUserByEmail(ctx context.Context, email string) ... constant getAuthUserByID (line 127) | getAuthUserByID = `-- name: GetAuthUserByID :one method GetAuthUserByID (line 131) | func (q *Queries) GetAuthUserByID(ctx context.Context, id int32) (AuthUs... constant getTotalActiveUserCount (line 150) | getTotalActiveUserCount = `-- name: GetTotalActiveUserCount :one method GetTotalActiveUserCount (line 154) | func (q *Queries) GetTotalActiveUserCount(ctx context.Context) (int64, e... constant getUserAnalysisByEmail (line 161) | getUserAnalysisByEmail = `-- name: GetUserAnalysisByEmail :one type GetUserAnalysisByEmailParams (line 193) | type GetUserAnalysisByEmailParams struct type GetUserAnalysisByEmailRow (line 198) | type GetUserAnalysisByEmailRow struct method GetUserAnalysisByEmail (line 210) | func (q *Queries) GetUserAnalysisByEmail(ctx context.Context, arg GetUse... constant getUserByEmail (line 227) | getUserByEmail = `-- name: GetUserByEmail :one method GetUserByEmail (line 231) | func (q *Queries) GetUserByEmail(ctx context.Context, email string) (Aut... constant getUserModelUsageByEmail (line 250) | getUserModelUsageByEmail = `-- name: GetUserModelUsageByEmail :many type GetUserModelUsageByEmailRow (line 267) | type GetUserModelUsageByEmailRow struct method GetUserModelUsageByEmail (line 274) | func (q *Queries) GetUserModelUsageByEmail(ctx context.Context, email st... constant getUserRecentActivityByEmail (line 302) | getUserRecentActivityByEmail = `-- name: GetUserRecentActivityByEmail :many type GetUserRecentActivityByEmailRow (line 318) | type GetUserRecentActivityByEmailRow struct method GetUserRecentActivityByEmail (line 325) | func (q *Queries) GetUserRecentActivityByEmail(ctx context.Context, emai... constant getUserSessionHistoryByEmail (line 353) | getUserSessionHistoryByEmail = `-- name: GetUserSessionHistoryByEmail :many type GetUserSessionHistoryByEmailParams (line 370) | type GetUserSessionHistoryByEmailParams struct type GetUserSessionHistoryByEmailRow (line 376) | type GetUserSessionHistoryByEmailRow struct method GetUserSessionHistoryByEmail (line 385) | func (q *Queries) GetUserSessionHistoryByEmail(ctx context.Context, arg ... constant getUserSessionHistoryCountByEmail (line 415) | getUserSessionHistoryCountByEmail = `-- name: GetUserSessionHistoryCount... method GetUserSessionHistoryCountByEmail (line 422) | func (q *Queries) GetUserSessionHistoryCountByEmail(ctx context.Context,... constant getUserStats (line 429) | getUserStats = `-- name: GetUserStats :many type GetUserStatsParams (line 459) | type GetUserStatsParams struct type GetUserStatsRow (line 465) | type GetUserStatsRow struct method GetUserStats (line 476) | func (q *Queries) GetUserStats(ctx context.Context, arg GetUserStatsPara... constant listAuthUsers (line 508) | listAuthUsers = `-- name: ListAuthUsers :many type ListAuthUsersParams (line 512) | type ListAuthUsersParams struct method ListAuthUsers (line 517) | func (q *Queries) ListAuthUsers(ctx context.Context, arg ListAuthUsersPa... constant updateAuthUser (line 552) | updateAuthUser = `-- name: UpdateAuthUser :one type UpdateAuthUserParams (line 558) | type UpdateAuthUserParams struct type UpdateAuthUserRow (line 564) | type UpdateAuthUserRow struct method UpdateAuthUser (line 570) | func (q *Queries) UpdateAuthUser(ctx context.Context, arg UpdateAuthUser... constant updateAuthUserByEmail (line 577) | updateAuthUserByEmail = `-- name: UpdateAuthUserByEmail :one type UpdateAuthUserByEmailParams (line 583) | type UpdateAuthUserByEmailParams struct type UpdateAuthUserByEmailRow (line 589) | type UpdateAuthUserByEmailRow struct method UpdateAuthUserByEmail (line 595) | func (q *Queries) UpdateAuthUserByEmail(ctx context.Context, arg UpdateA... constant updateAuthUserRateLimitByEmail (line 602) | updateAuthUserRateLimitByEmail = `-- name: UpdateAuthUserRateLimitByEmai... type UpdateAuthUserRateLimitByEmailParams (line 609) | type UpdateAuthUserRateLimitByEmailParams struct method UpdateAuthUserRateLimitByEmail (line 614) | func (q *Queries) UpdateAuthUserRateLimitByEmail(ctx context.Context, ar... constant updateUserPassword (line 621) | updateUserPassword = `-- name: UpdateUserPassword :exec type UpdateUserPasswordParams (line 625) | type UpdateUserPasswordParams struct method UpdateUserPassword (line 630) | func (q *Queries) UpdateUserPassword(ctx context.Context, arg UpdateUser... FILE: api/sqlc_queries/auth_user_management.sql.go constant getRateLimit (line 12) | getRateLimit = `-- name: GetRateLimit :one method GetRateLimit (line 20) | func (q *Queries) GetRateLimit(ctx context.Context, userID int32) (int32... FILE: api/sqlc_queries/bot_answer_history.sql.go constant createBotAnswerHistory (line 13) | createBotAnswerHistory = `-- name: CreateBotAnswerHistory :one type CreateBotAnswerHistoryParams (line 27) | type CreateBotAnswerHistoryParams struct method CreateBotAnswerHistory (line 37) | func (q *Queries) CreateBotAnswerHistory(ctx context.Context, arg Create... constant deleteBotAnswerHistory (line 61) | deleteBotAnswerHistory = `-- name: DeleteBotAnswerHistory :exec method DeleteBotAnswerHistory (line 65) | func (q *Queries) DeleteBotAnswerHistory(ctx context.Context, id int32) ... constant getBotAnswerHistoryByBotUUID (line 70) | getBotAnswerHistoryByBotUUID = `-- name: GetBotAnswerHistoryByBotUUID :many type GetBotAnswerHistoryByBotUUIDParams (line 90) | type GetBotAnswerHistoryByBotUUIDParams struct type GetBotAnswerHistoryByBotUUIDRow (line 96) | type GetBotAnswerHistoryByBotUUIDRow struct method GetBotAnswerHistoryByBotUUID (line 110) | func (q *Queries) GetBotAnswerHistoryByBotUUID(ctx context.Context, arg ... constant getBotAnswerHistoryByID (line 145) | getBotAnswerHistoryByID = `-- name: GetBotAnswerHistoryByID :one type GetBotAnswerHistoryByIDRow (line 163) | type GetBotAnswerHistoryByIDRow struct method GetBotAnswerHistoryByID (line 177) | func (q *Queries) GetBotAnswerHistoryByID(ctx context.Context, id int32)... constant getBotAnswerHistoryByUserID (line 196) | getBotAnswerHistoryByUserID = `-- name: GetBotAnswerHistoryByUserID :many type GetBotAnswerHistoryByUserIDParams (line 216) | type GetBotAnswerHistoryByUserIDParams struct type GetBotAnswerHistoryByUserIDRow (line 222) | type GetBotAnswerHistoryByUserIDRow struct method GetBotAnswerHistoryByUserID (line 236) | func (q *Queries) GetBotAnswerHistoryByUserID(ctx context.Context, arg G... constant getBotAnswerHistoryCountByBotUUID (line 271) | getBotAnswerHistoryCountByBotUUID = `-- name: GetBotAnswerHistoryCountBy... method GetBotAnswerHistoryCountByBotUUID (line 275) | func (q *Queries) GetBotAnswerHistoryCountByBotUUID(ctx context.Context,... constant getBotAnswerHistoryCountByUserID (line 282) | getBotAnswerHistoryCountByUserID = `-- name: GetBotAnswerHistoryCountByU... method GetBotAnswerHistoryCountByUserID (line 286) | func (q *Queries) GetBotAnswerHistoryCountByUserID(ctx context.Context, ... constant getLatestBotAnswerHistoryByBotUUID (line 293) | getLatestBotAnswerHistoryByBotUUID = `-- name: GetLatestBotAnswerHistory... type GetLatestBotAnswerHistoryByBotUUIDParams (line 313) | type GetLatestBotAnswerHistoryByBotUUIDParams struct type GetLatestBotAnswerHistoryByBotUUIDRow (line 318) | type GetLatestBotAnswerHistoryByBotUUIDRow struct method GetLatestBotAnswerHistoryByBotUUID (line 332) | func (q *Queries) GetLatestBotAnswerHistoryByBotUUID(ctx context.Context... constant updateBotAnswerHistory (line 367) | updateBotAnswerHistory = `-- name: UpdateBotAnswerHistory :one type UpdateBotAnswerHistoryParams (line 377) | type UpdateBotAnswerHistoryParams struct method UpdateBotAnswerHistory (line 383) | func (q *Queries) UpdateBotAnswerHistory(ctx context.Context, arg Update... FILE: api/sqlc_queries/chat_comment.sql.go constant createChatComment (line 13) | createChatComment = `-- name: CreateChatComment :one type CreateChatCommentParams (line 26) | type CreateChatCommentParams struct method CreateChatComment (line 34) | func (q *Queries) CreateChatComment(ctx context.Context, arg CreateChatC... constant getCommentsByMessageUUID (line 57) | getCommentsByMessageUUID = `-- name: GetCommentsByMessageUUID :many type GetCommentsByMessageUUIDRow (line 70) | type GetCommentsByMessageUUIDRow struct method GetCommentsByMessageUUID (line 78) | func (q *Queries) GetCommentsByMessageUUID(ctx context.Context, chatMess... constant getCommentsBySessionUUID (line 107) | getCommentsBySessionUUID = `-- name: GetCommentsBySessionUUID :many type GetCommentsBySessionUUIDRow (line 121) | type GetCommentsBySessionUUIDRow struct method GetCommentsBySessionUUID (line 130) | func (q *Queries) GetCommentsBySessionUUID(ctx context.Context, chatSess... FILE: api/sqlc_queries/chat_file.sql.go constant createChatFile (line 13) | createChatFile = `-- name: CreateChatFile :one type CreateChatFileParams (line 19) | type CreateChatFileParams struct method CreateChatFile (line 27) | func (q *Queries) CreateChatFile(ctx context.Context, arg CreateChatFile... constant deleteChatFile (line 48) | deleteChatFile = `-- name: DeleteChatFile :one method DeleteChatFile (line 54) | func (q *Queries) DeleteChatFile(ctx context.Context, id int32) (ChatFil... constant getChatFileByID (line 69) | getChatFileByID = `-- name: GetChatFileByID :one type GetChatFileByIDRow (line 75) | type GetChatFileByIDRow struct method GetChatFileByID (line 84) | func (q *Queries) GetChatFileByID(ctx context.Context, id int32) (GetCha... constant listChatFilesBySessionUUID (line 98) | listChatFilesBySessionUUID = `-- name: ListChatFilesBySessionUUID :many type ListChatFilesBySessionUUIDParams (line 105) | type ListChatFilesBySessionUUIDParams struct type ListChatFilesBySessionUUIDRow (line 110) | type ListChatFilesBySessionUUIDRow struct method ListChatFilesBySessionUUID (line 115) | func (q *Queries) ListChatFilesBySessionUUID(ctx context.Context, arg Li... constant listChatFilesWithContentBySessionUUID (line 138) | listChatFilesWithContentBySessionUUID = `-- name: ListChatFilesWithConte... method ListChatFilesWithContentBySessionUUID (line 145) | func (q *Queries) ListChatFilesWithContentBySessionUUID(ctx context.Cont... FILE: api/sqlc_queries/chat_log.sql.go constant chatLogByID (line 13) | chatLogByID = `-- name: ChatLogByID :one method ChatLogByID (line 17) | func (q *Queries) ChatLogByID(ctx context.Context, id int32) (ChatLog, e... constant createChatLog (line 30) | createChatLog = `-- name: CreateChatLog :one type CreateChatLogParams (line 36) | type CreateChatLogParams struct method CreateChatLog (line 42) | func (q *Queries) CreateChatLog(ctx context.Context, arg CreateChatLogPa... constant deleteChatLog (line 55) | deleteChatLog = `-- name: DeleteChatLog :exec method DeleteChatLog (line 59) | func (q *Queries) DeleteChatLog(ctx context.Context, id int32) error { constant listChatLogs (line 64) | listChatLogs = `-- name: ListChatLogs :many method ListChatLogs (line 68) | func (q *Queries) ListChatLogs(ctx context.Context) ([]ChatLog, error) { constant updateChatLog (line 97) | updateChatLog = `-- name: UpdateChatLog :one type UpdateChatLogParams (line 103) | type UpdateChatLogParams struct method UpdateChatLog (line 110) | func (q *Queries) UpdateChatLog(ctx context.Context, arg UpdateChatLogPa... FILE: api/sqlc_queries/chat_message.sql.go constant createChatMessage (line 14) | createChatMessage = `-- name: CreateChatMessage :one type CreateChatMessageParams (line 20) | type CreateChatMessageParams struct method CreateChatMessage (line 38) | func (q *Queries) CreateChatMessage(ctx context.Context, arg CreateChatM... constant deleteChatMessage (line 82) | deleteChatMessage = `-- name: DeleteChatMessage :exec method DeleteChatMessage (line 87) | func (q *Queries) DeleteChatMessage(ctx context.Context, id int32) error { constant deleteChatMessageByUUID (line 92) | deleteChatMessageByUUID = `-- name: DeleteChatMessageByUUID :exec method DeleteChatMessageByUUID (line 97) | func (q *Queries) DeleteChatMessageByUUID(ctx context.Context, uuid stri... constant deleteChatMessagesBySesionUUID (line 102) | deleteChatMessagesBySesionUUID = `-- name: DeleteChatMessagesBySesionUUI... method DeleteChatMessagesBySesionUUID (line 108) | func (q *Queries) DeleteChatMessagesBySesionUUID(ctx context.Context, ch... constant getAllChatMessages (line 113) | getAllChatMessages = `-- name: GetAllChatMessages :many method GetAllChatMessages (line 119) | func (q *Queries) GetAllChatMessages(ctx context.Context) ([]ChatMessage... constant getChatMessageByID (line 163) | getChatMessageByID = `-- name: GetChatMessageByID :one method GetChatMessageByID (line 168) | func (q *Queries) GetChatMessageByID(ctx context.Context, id int32) (Cha... constant getChatMessageBySessionUUID (line 196) | getChatMessageBySessionUUID = `-- name: GetChatMessageBySessionUUID :one type GetChatMessageBySessionUUIDParams (line 206) | type GetChatMessageBySessionUUIDParams struct method GetChatMessageBySessionUUID (line 211) | func (q *Queries) GetChatMessageBySessionUUID(ctx context.Context, arg G... constant getChatMessageByUUID (line 239) | getChatMessageByUUID = `-- name: GetChatMessageByUUID :one method GetChatMessageByUUID (line 246) | func (q *Queries) GetChatMessageByUUID(ctx context.Context, uuid string)... constant getChatMessagesBySessionUUID (line 274) | getChatMessagesBySessionUUID = `-- name: GetChatMessagesBySessionUUID :many type GetChatMessagesBySessionUUIDParams (line 284) | type GetChatMessagesBySessionUUIDParams struct method GetChatMessagesBySessionUUID (line 290) | func (q *Queries) GetChatMessagesBySessionUUID(ctx context.Context, arg ... constant getChatMessagesBySessionUUIDForAdmin (line 334) | getChatMessagesBySessionUUIDForAdmin = `-- name: GetChatMessagesBySessio... type GetChatMessagesBySessionUUIDForAdminRow (line 386) | type GetChatMessagesBySessionUUIDForAdminRow struct method GetChatMessagesBySessionUUIDForAdmin (line 399) | func (q *Queries) GetChatMessagesBySessionUUIDForAdmin(ctx context.Conte... constant getChatMessagesCount (line 433) | getChatMessagesCount = `-- name: GetChatMessagesCount :one method GetChatMessagesCount (line 441) | func (q *Queries) GetChatMessagesCount(ctx context.Context, userID int32... constant getChatMessagesCountByUserAndModel (line 448) | getChatMessagesCountByUserAndModel = `-- name: GetChatMessagesCountByUse... type GetChatMessagesCountByUserAndModelParams (line 457) | type GetChatMessagesCountByUserAndModelParams struct method GetChatMessagesCountByUserAndModel (line 463) | func (q *Queries) GetChatMessagesCountByUserAndModel(ctx context.Context... constant getFirstMessageBySessionUUID (line 470) | getFirstMessageBySessionUUID = `-- name: GetFirstMessageBySessionUUID :one method GetFirstMessageBySessionUUID (line 478) | func (q *Queries) GetFirstMessageBySessionUUID(ctx context.Context, chat... constant getLastNChatMessages (line 506) | getLastNChatMessages = `-- name: GetLastNChatMessages :many type GetLastNChatMessagesParams (line 527) | type GetLastNChatMessagesParams struct method GetLastNChatMessages (line 533) | func (q *Queries) GetLastNChatMessages(ctx context.Context, arg GetLastN... constant getLatestMessagesBySessionUUID (line 577) | getLatestMessagesBySessionUUID = `-- name: GetLatestMessagesBySessionUUI... type GetLatestMessagesBySessionUUIDParams (line 597) | type GetLatestMessagesBySessionUUIDParams struct method GetLatestMessagesBySessionUUID (line 602) | func (q *Queries) GetLatestMessagesBySessionUUID(ctx context.Context, ar... constant getLatestUsageTimeOfModel (line 646) | getLatestUsageTimeOfModel = `-- name: GetLatestUsageTimeOfModel :many type GetLatestUsageTimeOfModelRow (line 661) | type GetLatestUsageTimeOfModelRow struct method GetLatestUsageTimeOfModel (line 667) | func (q *Queries) GetLatestUsageTimeOfModel(ctx context.Context, timeInt... constant hasChatMessagePermission (line 690) | hasChatMessagePermission = `-- name: HasChatMessagePermission :one type HasChatMessagePermissionParams (line 698) | type HasChatMessagePermissionParams struct method HasChatMessagePermission (line 703) | func (q *Queries) HasChatMessagePermission(ctx context.Context, arg HasC... constant updateChatMessage (line 710) | updateChatMessage = `-- name: UpdateChatMessage :one type UpdateChatMessageParams (line 716) | type UpdateChatMessageParams struct method UpdateChatMessage (line 727) | func (q *Queries) UpdateChatMessage(ctx context.Context, arg UpdateChatM... constant updateChatMessageByUUID (line 764) | updateChatMessageByUUID = `-- name: UpdateChatMessageByUUID :one type UpdateChatMessageByUUIDParams (line 770) | type UpdateChatMessageByUUIDParams struct method UpdateChatMessageByUUID (line 779) | func (q *Queries) UpdateChatMessageByUUID(ctx context.Context, arg Updat... constant updateChatMessageContent (line 814) | updateChatMessageContent = `-- name: UpdateChatMessageContent :exec type UpdateChatMessageContentParams (line 820) | type UpdateChatMessageContentParams struct method UpdateChatMessageContent (line 826) | func (q *Queries) UpdateChatMessageContent(ctx context.Context, arg Upda... constant updateChatMessageSuggestions (line 831) | updateChatMessageSuggestions = `-- name: UpdateChatMessageSuggestions :one type UpdateChatMessageSuggestionsParams (line 838) | type UpdateChatMessageSuggestionsParams struct method UpdateChatMessageSuggestions (line 843) | func (q *Queries) UpdateChatMessageSuggestions(ctx context.Context, arg ... FILE: api/sqlc_queries/chat_model.sql.go constant chatModelByID (line 12) | chatModelByID = `-- name: ChatModelByID :one method ChatModelByID (line 16) | func (q *Queries) ChatModelByID(ctx context.Context, id int32) (ChatMode... constant chatModelByName (line 39) | chatModelByName = `-- name: ChatModelByName :one method ChatModelByName (line 43) | func (q *Queries) ChatModelByName(ctx context.Context, name string) (Cha... constant createChatModel (line 66) | createChatModel = `-- name: CreateChatModel :one type CreateChatModelParams (line 72) | type CreateChatModelParams struct method CreateChatModel (line 88) | func (q *Queries) CreateChatModel(ctx context.Context, arg CreateChatMod... constant deleteChatModel (line 125) | deleteChatModel = `-- name: DeleteChatModel :exec type DeleteChatModelParams (line 129) | type DeleteChatModelParams struct method DeleteChatModel (line 134) | func (q *Queries) DeleteChatModel(ctx context.Context, arg DeleteChatMod... constant getDefaultChatModel (line 139) | getDefaultChatModel = `-- name: GetDefaultChatModel :one method GetDefaultChatModel (line 146) | func (q *Queries) GetDefaultChatModel(ctx context.Context) (ChatModel, e... constant listChatModels (line 169) | listChatModels = `-- name: ListChatModels :many method ListChatModels (line 173) | func (q *Queries) ListChatModels(ctx context.Context) ([]ChatModel, erro... constant listSystemChatModels (line 212) | listSystemChatModels = `-- name: ListSystemChatModels :many method ListSystemChatModels (line 218) | func (q *Queries) ListSystemChatModels(ctx context.Context) ([]ChatModel... constant updateChatModel (line 257) | updateChatModel = `-- name: UpdateChatModel :one type UpdateChatModelParams (line 264) | type UpdateChatModelParams struct method UpdateChatModel (line 282) | func (q *Queries) UpdateChatModel(ctx context.Context, arg UpdateChatMod... constant updateChatModelKey (line 321) | updateChatModelKey = `-- name: UpdateChatModelKey :one type UpdateChatModelKeyParams (line 327) | type UpdateChatModelKeyParams struct method UpdateChatModelKey (line 332) | func (q *Queries) UpdateChatModelKey(ctx context.Context, arg UpdateChat... FILE: api/sqlc_queries/chat_prompt.sql.go constant createChatPrompt (line 12) | createChatPrompt = `-- name: CreateChatPrompt :one type CreateChatPromptParams (line 18) | type CreateChatPromptParams struct method CreateChatPrompt (line 29) | func (q *Queries) CreateChatPrompt(ctx context.Context, arg CreateChatPr... constant deleteChatPrompt (line 59) | deleteChatPrompt = `-- name: DeleteChatPrompt :exec method DeleteChatPrompt (line 65) | func (q *Queries) DeleteChatPrompt(ctx context.Context, id int32) error { constant deleteChatPromptByUUID (line 70) | deleteChatPromptByUUID = `-- name: DeleteChatPromptByUUID :exec method DeleteChatPromptByUUID (line 76) | func (q *Queries) DeleteChatPromptByUUID(ctx context.Context, uuid strin... constant getAllChatPrompts (line 81) | getAllChatPrompts = `-- name: GetAllChatPrompts :many method GetAllChatPrompts (line 87) | func (q *Queries) GetAllChatPrompts(ctx context.Context) ([]ChatPrompt, ... constant getChatPromptByID (line 124) | getChatPromptByID = `-- name: GetChatPromptByID :one method GetChatPromptByID (line 129) | func (q *Queries) GetChatPromptByID(ctx context.Context, id int32) (Chat... constant getChatPromptByUUID (line 150) | getChatPromptByUUID = `-- name: GetChatPromptByUUID :one method GetChatPromptByUUID (line 155) | func (q *Queries) GetChatPromptByUUID(ctx context.Context, uuid string) ... constant getChatPromptsBySessionUUID (line 176) | getChatPromptsBySessionUUID = `-- name: GetChatPromptsBySessionUUID :many method GetChatPromptsBySessionUUID (line 183) | func (q *Queries) GetChatPromptsBySessionUUID(ctx context.Context, chatS... constant getChatPromptsByUserID (line 220) | getChatPromptsByUserID = `-- name: GetChatPromptsByUserID :many method GetChatPromptsByUserID (line 227) | func (q *Queries) GetChatPromptsByUserID(ctx context.Context, userID int... constant getChatPromptsBysession_uuid (line 264) | getChatPromptsBysession_uuid = `-- name: GetChatPromptsBysession_uuid :many method GetChatPromptsBysession_uuid (line 271) | func (q *Queries) GetChatPromptsBysession_uuid(ctx context.Context, chat... constant getOneChatPromptBySessionUUID (line 308) | getOneChatPromptBySessionUUID = `-- name: GetOneChatPromptBySessionUUID ... method GetOneChatPromptBySessionUUID (line 316) | func (q *Queries) GetOneChatPromptBySessionUUID(ctx context.Context, cha... constant hasChatPromptPermission (line 337) | hasChatPromptPermission = `-- name: HasChatPromptPermission :one type HasChatPromptPermissionParams (line 344) | type HasChatPromptPermissionParams struct method HasChatPromptPermission (line 349) | func (q *Queries) HasChatPromptPermission(ctx context.Context, arg HasCh... constant updateChatPrompt (line 356) | updateChatPrompt = `-- name: UpdateChatPrompt :one type UpdateChatPromptParams (line 362) | type UpdateChatPromptParams struct method UpdateChatPrompt (line 372) | func (q *Queries) UpdateChatPrompt(ctx context.Context, arg UpdateChatPr... constant updateChatPromptByUUID (line 401) | updateChatPromptByUUID = `-- name: UpdateChatPromptByUUID :one type UpdateChatPromptByUUIDParams (line 407) | type UpdateChatPromptByUUIDParams struct method UpdateChatPromptByUUID (line 413) | func (q *Queries) UpdateChatPromptByUUID(ctx context.Context, arg Update... FILE: api/sqlc_queries/chat_session.sql.go constant createChatSession (line 14) | createChatSession = `-- name: CreateChatSession :one type CreateChatSessionParams (line 20) | type CreateChatSessionParams struct method CreateChatSession (line 28) | func (q *Queries) CreateChatSession(ctx context.Context, arg CreateChatS... constant createChatSessionByUUID (line 60) | createChatSessionByUUID = `-- name: CreateChatSessionByUUID :one type CreateChatSessionByUUIDParams (line 66) | type CreateChatSessionByUUIDParams struct method CreateChatSessionByUUID (line 76) | func (q *Queries) CreateChatSessionByUUID(ctx context.Context, arg Creat... constant createChatSessionInWorkspace (line 110) | createChatSessionInWorkspace = `-- name: CreateChatSessionInWorkspace :one type CreateChatSessionInWorkspaceParams (line 116) | type CreateChatSessionInWorkspaceParams struct method CreateChatSessionInWorkspace (line 127) | func (q *Queries) CreateChatSessionInWorkspace(ctx context.Context, arg ... constant createOrUpdateChatSessionByUUID (line 162) | createOrUpdateChatSessionByUUID = `-- name: CreateOrUpdateChatSessionByU... type CreateOrUpdateChatSessionByUUIDParams (line 183) | type CreateOrUpdateChatSessionByUUIDParams struct method CreateOrUpdateChatSessionByUUID (line 200) | func (q *Queries) CreateOrUpdateChatSessionByUUID(ctx context.Context, a... constant deleteChatSession (line 241) | deleteChatSession = `-- name: DeleteChatSession :exec method DeleteChatSession (line 246) | func (q *Queries) DeleteChatSession(ctx context.Context, id int32) error { constant deleteChatSessionByUUID (line 251) | deleteChatSessionByUUID = `-- name: DeleteChatSessionByUUID :exec method DeleteChatSessionByUUID (line 257) | func (q *Queries) DeleteChatSessionByUUID(ctx context.Context, uuid stri... constant getAllChatSessions (line 262) | getAllChatSessions = `-- name: GetAllChatSessions :many method GetAllChatSessions (line 268) | func (q *Queries) GetAllChatSessions(ctx context.Context) ([]ChatSession... constant getChatSessionByID (line 310) | getChatSessionByID = `-- name: GetChatSessionByID :one method GetChatSessionByID (line 314) | func (q *Queries) GetChatSessionByID(ctx context.Context, id int32) (Cha... constant getChatSessionByUUID (line 340) | getChatSessionByUUID = `-- name: GetChatSessionByUUID :one method GetChatSessionByUUID (line 346) | func (q *Queries) GetChatSessionByUUID(ctx context.Context, uuid string)... constant getChatSessionByUUIDWithInActive (line 372) | getChatSessionByUUIDWithInActive = `-- name: GetChatSessionByUUIDWithInA... method GetChatSessionByUUIDWithInActive (line 378) | func (q *Queries) GetChatSessionByUUIDWithInActive(ctx context.Context, ... constant getChatSessionsByUserID (line 404) | getChatSessionsByUserID = `-- name: GetChatSessionsByUserID :many method GetChatSessionsByUserID (line 418) | func (q *Queries) GetChatSessionsByUserID(ctx context.Context, userID in... constant getSessionsByWorkspaceID (line 460) | getSessionsByWorkspaceID = `-- name: GetSessionsByWorkspaceID :many method GetSessionsByWorkspaceID (line 474) | func (q *Queries) GetSessionsByWorkspaceID(ctx context.Context, workspac... constant getSessionsGroupedByWorkspace (line 516) | getSessionsGroupedByWorkspace = `-- name: GetSessionsGroupedByWorkspace ... type GetSessionsGroupedByWorkspaceRow (line 537) | type GetSessionsGroupedByWorkspaceRow struct method GetSessionsGroupedByWorkspace (line 562) | func (q *Queries) GetSessionsGroupedByWorkspace(ctx context.Context, use... constant getSessionsWithoutWorkspace (line 608) | getSessionsWithoutWorkspace = `-- name: GetSessionsWithoutWorkspace :many method GetSessionsWithoutWorkspace (line 613) | func (q *Queries) GetSessionsWithoutWorkspace(ctx context.Context, userI... constant hasChatSessionPermission (line 655) | hasChatSessionPermission = `-- name: HasChatSessionPermission :one type HasChatSessionPermissionParams (line 663) | type HasChatSessionPermissionParams struct method HasChatSessionPermission (line 672) | func (q *Queries) HasChatSessionPermission(ctx context.Context, arg HasC... constant migrateSessionsToDefaultWorkspace (line 679) | migrateSessionsToDefaultWorkspace = `-- name: MigrateSessionsToDefaultWo... type MigrateSessionsToDefaultWorkspaceParams (line 685) | type MigrateSessionsToDefaultWorkspaceParams struct method MigrateSessionsToDefaultWorkspace (line 690) | func (q *Queries) MigrateSessionsToDefaultWorkspace(ctx context.Context,... constant updateChatSession (line 695) | updateChatSession = `-- name: UpdateChatSession :one type UpdateChatSessionParams (line 701) | type UpdateChatSessionParams struct method UpdateChatSession (line 708) | func (q *Queries) UpdateChatSession(ctx context.Context, arg UpdateChatS... constant updateChatSessionByUUID (line 739) | updateChatSessionByUUID = `-- name: UpdateChatSessionByUUID :one type UpdateChatSessionByUUIDParams (line 745) | type UpdateChatSessionByUUIDParams struct method UpdateChatSessionByUUID (line 751) | func (q *Queries) UpdateChatSessionByUUID(ctx context.Context, arg Updat... constant updateChatSessionTopicByUUID (line 777) | updateChatSessionTopicByUUID = `-- name: UpdateChatSessionTopicByUUID :one type UpdateChatSessionTopicByUUIDParams (line 787) | type UpdateChatSessionTopicByUUIDParams struct method UpdateChatSessionTopicByUUID (line 793) | func (q *Queries) UpdateChatSessionTopicByUUID(ctx context.Context, arg ... constant updateSessionMaxLength (line 819) | updateSessionMaxLength = `-- name: UpdateSessionMaxLength :one type UpdateSessionMaxLengthParams (line 827) | type UpdateSessionMaxLengthParams struct method UpdateSessionMaxLength (line 832) | func (q *Queries) UpdateSessionMaxLength(ctx context.Context, arg Update... constant updateSessionWorkspace (line 858) | updateSessionWorkspace = `-- name: UpdateSessionWorkspace :one type UpdateSessionWorkspaceParams (line 865) | type UpdateSessionWorkspaceParams struct method UpdateSessionWorkspace (line 870) | func (q *Queries) UpdateSessionWorkspace(ctx context.Context, arg Update... FILE: api/sqlc_queries/chat_snapshot.sql.go constant chatSnapshotByID (line 14) | chatSnapshotByID = `-- name: ChatSnapshotByID :one method ChatSnapshotByID (line 18) | func (q *Queries) ChatSnapshotByID(ctx context.Context, id int32) (ChatS... constant chatSnapshotByUUID (line 39) | chatSnapshotByUUID = `-- name: ChatSnapshotByUUID :one method ChatSnapshotByUUID (line 43) | func (q *Queries) ChatSnapshotByUUID(ctx context.Context, uuid string) (... constant chatSnapshotByUserIdAndUuid (line 64) | chatSnapshotByUserIdAndUuid = `-- name: ChatSnapshotByUserIdAndUuid :one type ChatSnapshotByUserIdAndUuidParams (line 68) | type ChatSnapshotByUserIdAndUuidParams struct method ChatSnapshotByUserIdAndUuid (line 73) | func (q *Queries) ChatSnapshotByUserIdAndUuid(ctx context.Context, arg C... constant chatSnapshotCountByUserIDAndType (line 94) | chatSnapshotCountByUserIDAndType = `-- name: ChatSnapshotCountByUserIDAn... type ChatSnapshotCountByUserIDAndTypeParams (line 100) | type ChatSnapshotCountByUserIDAndTypeParams struct method ChatSnapshotCountByUserIDAndType (line 105) | func (q *Queries) ChatSnapshotCountByUserIDAndType(ctx context.Context, ... constant chatSnapshotMetaByUserID (line 112) | chatSnapshotMetaByUserID = `-- name: ChatSnapshotMetaByUserID :many type ChatSnapshotMetaByUserIDParams (line 119) | type ChatSnapshotMetaByUserIDParams struct type ChatSnapshotMetaByUserIDRow (line 126) | type ChatSnapshotMetaByUserIDRow struct method ChatSnapshotMetaByUserID (line 135) | func (q *Queries) ChatSnapshotMetaByUserID(ctx context.Context, arg Chat... constant chatSnapshotSearch (line 170) | chatSnapshotSearch = `-- name: ChatSnapshotSearch :many type ChatSnapshotSearchParams (line 178) | type ChatSnapshotSearchParams struct type ChatSnapshotSearchRow (line 183) | type ChatSnapshotSearchRow struct method ChatSnapshotSearch (line 189) | func (q *Queries) ChatSnapshotSearch(ctx context.Context, arg ChatSnapsh... constant createChatBot (line 212) | createChatBot = `-- name: CreateChatBot :one type CreateChatBotParams (line 218) | type CreateChatBotParams struct method CreateChatBot (line 231) | func (q *Queries) CreateChatBot(ctx context.Context, arg CreateChatBotPa... constant createChatSnapshot (line 263) | createChatSnapshot = `-- name: CreateChatSnapshot :one type CreateChatSnapshotParams (line 269) | type CreateChatSnapshotParams struct method CreateChatSnapshot (line 281) | func (q *Queries) CreateChatSnapshot(ctx context.Context, arg CreateChat... constant deleteChatSnapshot (line 312) | deleteChatSnapshot = `-- name: DeleteChatSnapshot :one type DeleteChatSnapshotParams (line 318) | type DeleteChatSnapshotParams struct method DeleteChatSnapshot (line 323) | func (q *Queries) DeleteChatSnapshot(ctx context.Context, arg DeleteChat... constant listChatSnapshots (line 344) | listChatSnapshots = `-- name: ListChatSnapshots :many method ListChatSnapshots (line 348) | func (q *Queries) ListChatSnapshots(ctx context.Context) ([]ChatSnapshot... constant updateChatSnapshot (line 385) | updateChatSnapshot = `-- name: UpdateChatSnapshot :one type UpdateChatSnapshotParams (line 392) | type UpdateChatSnapshotParams struct method UpdateChatSnapshot (line 403) | func (q *Queries) UpdateChatSnapshot(ctx context.Context, arg UpdateChat... constant updateChatSnapshotMetaByUUID (line 433) | updateChatSnapshotMetaByUUID = `-- name: UpdateChatSnapshotMetaByUUID :exec type UpdateChatSnapshotMetaByUUIDParams (line 439) | type UpdateChatSnapshotMetaByUUIDParams struct method UpdateChatSnapshotMetaByUUID (line 446) | func (q *Queries) UpdateChatSnapshotMetaByUUID(ctx context.Context, arg ... FILE: api/sqlc_queries/chat_workspace.sql.go constant createDefaultWorkspace (line 13) | createDefaultWorkspace = `-- name: CreateDefaultWorkspace :one type CreateDefaultWorkspaceParams (line 19) | type CreateDefaultWorkspaceParams struct method CreateDefaultWorkspace (line 24) | func (q *Queries) CreateDefaultWorkspace(ctx context.Context, arg Create... constant createWorkspace (line 43) | createWorkspace = `-- name: CreateWorkspace :one type CreateWorkspaceParams (line 49) | type CreateWorkspaceParams struct method CreateWorkspace (line 60) | func (q *Queries) CreateWorkspace(ctx context.Context, arg CreateWorkspa... constant deleteWorkspace (line 88) | deleteWorkspace = `-- name: DeleteWorkspace :exec method DeleteWorkspace (line 93) | func (q *Queries) DeleteWorkspace(ctx context.Context, uuid string) error { constant getDefaultWorkspaceByUserID (line 98) | getDefaultWorkspaceByUserID = `-- name: GetDefaultWorkspaceByUserID :one method GetDefaultWorkspaceByUserID (line 104) | func (q *Queries) GetDefaultWorkspaceByUserID(ctx context.Context, userI... constant getWorkspaceByUUID (line 123) | getWorkspaceByUUID = `-- name: GetWorkspaceByUUID :one method GetWorkspaceByUUID (line 128) | func (q *Queries) GetWorkspaceByUUID(ctx context.Context, uuid string) (... constant getWorkspaceWithSessionCount (line 147) | getWorkspaceWithSessionCount = `-- name: GetWorkspaceWithSessionCount :many type GetWorkspaceWithSessionCountRow (line 158) | type GetWorkspaceWithSessionCountRow struct method GetWorkspaceWithSessionCount (line 173) | func (q *Queries) GetWorkspaceWithSessionCount(ctx context.Context, user... constant getWorkspacesByUserID (line 209) | getWorkspacesByUserID = `-- name: GetWorkspacesByUserID :many method GetWorkspacesByUserID (line 215) | func (q *Queries) GetWorkspacesByUserID(ctx context.Context, userID int3... constant hasWorkspacePermission (line 250) | hasWorkspacePermission = `-- name: HasWorkspacePermission :one type HasWorkspacePermissionParams (line 264) | type HasWorkspacePermissionParams struct method HasWorkspacePermission (line 269) | func (q *Queries) HasWorkspacePermission(ctx context.Context, arg HasWor... constant setDefaultWorkspace (line 276) | setDefaultWorkspace = `-- name: SetDefaultWorkspace :one type SetDefaultWorkspaceParams (line 283) | type SetDefaultWorkspaceParams struct method SetDefaultWorkspace (line 288) | func (q *Queries) SetDefaultWorkspace(ctx context.Context, arg SetDefaul... constant updateWorkspace (line 307) | updateWorkspace = `-- name: UpdateWorkspace :one type UpdateWorkspaceParams (line 314) | type UpdateWorkspaceParams struct method UpdateWorkspace (line 322) | func (q *Queries) UpdateWorkspace(ctx context.Context, arg UpdateWorkspa... constant updateWorkspaceOrder (line 347) | updateWorkspaceOrder = `-- name: UpdateWorkspaceOrder :one type UpdateWorkspaceOrderParams (line 354) | type UpdateWorkspaceOrderParams struct method UpdateWorkspaceOrder (line 359) | func (q *Queries) UpdateWorkspaceOrder(ctx context.Context, arg UpdateWo... FILE: api/sqlc_queries/db.go type DBTX (line 12) | type DBTX interface function New (line 19) | func New(db DBTX) *Queries { type Queries (line 23) | type Queries struct method WithTx (line 27) | func (q *Queries) WithTx(tx *sql.Tx) *Queries { FILE: api/sqlc_queries/jwt_secrets.sql.go constant createJwtSecret (line 12) | createJwtSecret = `-- name: CreateJwtSecret :one type CreateJwtSecretParams (line 17) | type CreateJwtSecretParams struct method CreateJwtSecret (line 23) | func (q *Queries) CreateJwtSecret(ctx context.Context, arg CreateJwtSecr... constant deleteAllJwtSecrets (line 36) | deleteAllJwtSecrets = `-- name: DeleteAllJwtSecrets :execrows method DeleteAllJwtSecrets (line 40) | func (q *Queries) DeleteAllJwtSecrets(ctx context.Context) (int64, error) { constant getJwtSecret (line 48) | getJwtSecret = `-- name: GetJwtSecret :one method GetJwtSecret (line 52) | func (q *Queries) GetJwtSecret(ctx context.Context, name string) (JwtSec... FILE: api/sqlc_queries/models.go type AuthUser (line 13) | type AuthUser struct type AuthUserManagement (line 27) | type AuthUserManagement struct type BotAnswerHistory (line 35) | type BotAnswerHistory struct type ChatComment (line 47) | type ChatComment struct type ChatFile (line 59) | type ChatFile struct type ChatLog (line 69) | type ChatLog struct type ChatMessage (line 77) | type ChatMessage struct type ChatModel (line 100) | type ChatModel struct type ChatPrompt (line 118) | type ChatPrompt struct type ChatSession (line 134) | type ChatSession struct type ChatSnapshot (line 155) | type ChatSnapshot struct type ChatWorkspace (line 171) | type ChatWorkspace struct type JwtSecret (line 185) | type JwtSecret struct type UserActiveChatSession (line 193) | type UserActiveChatSession struct type UserChatModelPrivilege (line 202) | type UserChatModelPrivilege struct FILE: api/sqlc_queries/user_active_chat_session.sql.go constant deleteUserActiveSession (line 13) | deleteUserActiveSession = `-- name: DeleteUserActiveSession :exec type DeleteUserActiveSessionParams (line 21) | type DeleteUserActiveSessionParams struct method DeleteUserActiveSession (line 26) | func (q *Queries) DeleteUserActiveSession(ctx context.Context, arg Delet... constant deleteUserActiveSessionBySession (line 31) | deleteUserActiveSessionBySession = `-- name: DeleteUserActiveSessionBySe... type DeleteUserActiveSessionBySessionParams (line 36) | type DeleteUserActiveSessionBySessionParams struct method DeleteUserActiveSessionBySession (line 41) | func (q *Queries) DeleteUserActiveSessionBySession(ctx context.Context, ... constant getAllUserActiveSessions (line 46) | getAllUserActiveSessions = `-- name: GetAllUserActiveSessions :many method GetAllUserActiveSessions (line 52) | func (q *Queries) GetAllUserActiveSessions(ctx context.Context, userID i... constant getUserActiveSession (line 82) | getUserActiveSession = `-- name: GetUserActiveSession :one type GetUserActiveSessionParams (line 90) | type GetUserActiveSessionParams struct method GetUserActiveSession (line 95) | func (q *Queries) GetUserActiveSession(ctx context.Context, arg GetUserA... constant upsertUserActiveSession (line 109) | upsertUserActiveSession = `-- name: UpsertUserActiveSession :one type UpsertUserActiveSessionParams (line 120) | type UpsertUserActiveSessionParams struct method UpsertUserActiveSession (line 127) | func (q *Queries) UpsertUserActiveSession(ctx context.Context, arg Upser... FILE: api/sqlc_queries/user_chat_model_privilege.sql.go constant createUserChatModelPrivilege (line 12) | createUserChatModelPrivilege = `-- name: CreateUserChatModelPrivilege :one type CreateUserChatModelPrivilegeParams (line 18) | type CreateUserChatModelPrivilegeParams struct method CreateUserChatModelPrivilege (line 26) | func (q *Queries) CreateUserChatModelPrivilege(ctx context.Context, arg ... constant deleteUserChatModelPrivilege (line 48) | deleteUserChatModelPrivilege = `-- name: DeleteUserChatModelPrivilege :exec method DeleteUserChatModelPrivilege (line 52) | func (q *Queries) DeleteUserChatModelPrivilege(ctx context.Context, id i... constant listUserChatModelPrivileges (line 57) | listUserChatModelPrivileges = `-- name: ListUserChatModelPrivileges :many method ListUserChatModelPrivileges (line 61) | func (q *Queries) ListUserChatModelPrivileges(ctx context.Context) ([]Us... constant listUserChatModelPrivilegesByUserID (line 93) | listUserChatModelPrivilegesByUserID = `-- name: ListUserChatModelPrivile... method ListUserChatModelPrivilegesByUserID (line 102) | func (q *Queries) ListUserChatModelPrivilegesByUserID(ctx context.Contex... constant listUserChatModelPrivilegesRateLimit (line 134) | listUserChatModelPrivilegesRateLimit = `-- name: ListUserChatModelPrivil... type ListUserChatModelPrivilegesRateLimitRow (line 142) | type ListUserChatModelPrivilegesRateLimitRow struct method ListUserChatModelPrivilegesRateLimit (line 150) | func (q *Queries) ListUserChatModelPrivilegesRateLimit(ctx context.Conte... constant rateLimiteByUserAndSessionUUID (line 179) | rateLimiteByUserAndSessionUUID = `-- name: RateLimiteByUserAndSessionUUI... type RateLimiteByUserAndSessionUUIDParams (line 188) | type RateLimiteByUserAndSessionUUIDParams struct type RateLimiteByUserAndSessionUUIDRow (line 193) | type RateLimiteByUserAndSessionUUIDRow struct method RateLimiteByUserAndSessionUUID (line 198) | func (q *Queries) RateLimiteByUserAndSessionUUID(ctx context.Context, ar... constant updateUserChatModelPrivilege (line 205) | updateUserChatModelPrivilege = `-- name: UpdateUserChatModelPrivilege :one type UpdateUserChatModelPrivilegeParams (line 211) | type UpdateUserChatModelPrivilegeParams struct method UpdateUserChatModelPrivilege (line 217) | func (q *Queries) UpdateUserChatModelPrivilege(ctx context.Context, arg ... constant userChatModelPrivilegeByID (line 233) | userChatModelPrivilegeByID = `-- name: UserChatModelPrivilegeByID :one method UserChatModelPrivilegeByID (line 237) | func (q *Queries) UserChatModelPrivilegeByID(ctx context.Context, id int... constant userChatModelPrivilegeByUserAndModelID (line 253) | userChatModelPrivilegeByUserAndModelID = `-- name: UserChatModelPrivileg... type UserChatModelPrivilegeByUserAndModelIDParams (line 257) | type UserChatModelPrivilegeByUserAndModelIDParams struct method UserChatModelPrivilegeByUserAndModelID (line 262) | func (q *Queries) UserChatModelPrivilegeByUserAndModelID(ctx context.Con... FILE: api/sqlc_queries/zz_custom_method.go method Role (line 11) | func (user *AuthUser) Role() string { method Authenticate (line 19) | func (m *ChatMessage) Authenticate(q Queries, userID int32) (bool, error) { method Authenticate (line 26) | func (s *ChatSession) Authenticate(q Queries, userID int32) (bool, error) { method Authenticate (line 33) | func (p *ChatPrompt) Authenticate(q Queries, userID int32) (bool, error) { method ToRawMessage (line 41) | func (cs *ChatSession) ToRawMessage() *json.RawMessage { type MessageWithRoleAndContent (line 51) | type MessageWithRoleAndContent interface method GetRole (line 56) | func (m ChatMessage) GetRole() string { method GetContent (line 60) | func (m ChatMessage) GetContent() string { method GetRole (line 64) | func (m ChatPrompt) GetRole() string { method GetContent (line 68) | func (m ChatPrompt) GetContent() string { function SqlChatsToOpenAIMesages (line 72) | func SqlChatsToOpenAIMesages(messages []MessageWithRoleAndContent) []ope... function SqlChatsToOpenAIMessagesGenerics (line 79) | func SqlChatsToOpenAIMessagesGenerics[T MessageWithRoleAndContent](messa... FILE: api/sqlc_queries/zz_custom_query.go type SimpleChatMessage (line 12) | type SimpleChatMessage struct type Artifact (line 26) | type Artifact struct method GetChatHistoryBySessionUUID (line 34) | func (q *Queries) GetChatHistoryBySessionUUID(ctx context.Context, uuid ... FILE: api/streaming_helpers.go function constructChatCompletionStreamResponse (line 18) | func constructChatCompletionStreamResponse(answerID string, content stri... type StreamingResponse (line 34) | type StreamingResponse struct function FlushResponse (line 41) | func FlushResponse(w http.ResponseWriter, flusher http.Flusher, response... function ShouldFlushContent (line 58) | func ShouldFlushContent(content string, lastFlushLength int, isSmallCont... function SetStreamingHeaders (line 65) | func SetStreamingHeaders(req *http.Request) { function GenerateAnswerID (line 73) | func GenerateAnswerID(chatUuid string, regenerate bool) string { function GetChatModel (line 81) | func GetChatModel(queries *sqlc_queries.Queries, modelName string) (*sql... function GetChatFiles (line 90) | func GetChatFiles(queries *sqlc_queries.Queries, sessionUUID string) ([]... FILE: api/text_buffer.go type textBuffer (line 8) | type textBuffer struct method appendByIndex (line 23) | func (tb *textBuffer) appendByIndex(index int, text string) { method String (line 29) | func (tb *textBuffer) String(separator string) string { function newTextBuffer (line 14) | func newTextBuffer(n int32, prefix, suffix string) *textBuffer { FILE: api/tools/apply_a_similar_change/parse_diff2.py function apply_diff_file (line 5) | def apply_diff_file(diff_file): FILE: api/tools/fix_eris.py function search_files (line 5) | def search_files(dir_name, pattern): function replace_error_handling (line 14) | def replace_error_handling(file_path): function main (line 31) | def main(): FILE: api/util.go function NewUUID (line 18) | func NewUUID() string { function getTokenCount (line 25) | func getTokenCount(content string) (int, error) { function firstN (line 37) | func firstN(s string, n int) string { function firstNWords (line 49) | func firstNWords(s string, n int) string { function getUserID (line 62) | func getUserID(ctx context.Context) (int32, error) { function getContextWithUser (line 76) | func getContextWithUser(userID int) context.Context { function setSSEHeader (line 80) | func setSSEHeader(w http.ResponseWriter) { function setupSSEStream (line 93) | func setupSSEStream(w http.ResponseWriter) (http.Flusher, error) { function getPerWordStreamLimit (line 102) | func getPerWordStreamLimit() int { function RespondWithJSON (line 118) | func RespondWithJSON(w http.ResponseWriter, status int, payload interfac... function getPaginationParams (line 129) | func getPaginationParams(r *http.Request) (limit int32, offset int32) { function getLimitParam (line 150) | func getLimitParam(r *http.Request, defaultLimit int32) int32 { function DecodeJSON (line 164) | func DecodeJSON(r *http.Request, target interface{}) error { FILE: api/util_test.go function Test_firstN (line 5) | func Test_firstN(t *testing.T) { FILE: api/util_words_test.go function Test_firstNWords (line 7) | func Test_firstNWords(t *testing.T) { FILE: e2e/lib/button-helpers.ts function getClearConversationButton (line 12) | async function getClearConversationButton(page: Page) { function getSnapshotButton (line 22) | async function getSnapshotButton(page: Page) { function getVFSUploadButton (line 32) | async function getVFSUploadButton(page: Page) { function getArtifactGalleryButton (line 42) | async function getArtifactGalleryButton(page: Page) { constant FOOTER_BUTTON_POSITIONS (line 51) | const FOOTER_BUTTON_POSITIONS = { FILE: e2e/lib/chat-test-setup.ts constant DEFAULT_PASSWORD (line 4) | const DEFAULT_PASSWORD = '@ThisIsATestPass5' function setupDebugChatSession (line 6) | async function setupDebugChatSession(page: Page, email: string) { function sendMessageAndWaitAssistantCount (line 24) | async function sendMessageAndWaitAssistantCount( FILE: e2e/lib/db/chat_message/index.ts function selectChatMessagesBySessionUUID (line 1) | async function selectChatMessagesBySessionUUID(pool, sessionUUID: string) { FILE: e2e/lib/db/chat_model/index.ts function selectModels (line 1) | async function selectModels(pool) { FILE: e2e/lib/db/chat_prompt/index.ts function selectChatPromptsBySessionUUID (line 1) | async function selectChatPromptsBySessionUUID(pool, sessionUUID: string) { FILE: e2e/lib/db/chat_session/index.ts function selectChatSessionByUserId (line 1) | async function selectChatSessionByUserId(pool, userId: number) { FILE: e2e/lib/db/chat_workspace/index.ts type ChatWorkspace (line 3) | interface ChatWorkspace { function selectWorkspacesByUserId (line 17) | async function selectWorkspacesByUserId(pool: Pool, userId: number): Pro... function selectWorkspaceByUuid (line 30) | async function selectWorkspaceByUuid(pool: Pool, uuid: string): Promise<... function insertWorkspace (line 43) | async function insertWorkspace(pool: Pool, workspace: Omit { method getMessageByIndex (line 26) | async getMessageByIndex(index: number): Promise { method getMessageText (line 37) | async getMessageText(index: number): Promise { method waitForMessageTextContains (line 47) | async waitForMessageTextContains(index: number, expectedText: string, ... method getAssistantMessages (line 64) | async getAssistantMessages(): Promise { method getAssistantMessageByContent (line 80) | async getAssistantMessageByContent(partialText: string): Promise { method clickAssistantRegenerate (line 168) | async clickAssistantRegenerate(index: number): Promise { method clickAssistantRegenerateByContent (line 181) | async clickAssistantRegenerateByContent(partialText: string): Promise<... method isAssistantRegenerateButtonVisible (line 193) | async isAssistantRegenerateButtonVisible(index: number): Promise { method clickRegenerate (line 230) | async clickRegenerate(index: number): Promise { method waitForMessageWithText (line 239) | async waitForMessageWithText(text: string, timeout: number = 10000): P... method getLastMessageText (line 253) | async getLastMessageText(): Promise { method waitForMessageCount (line 263) | async waitForMessageCount(count: number, timeout: number = 10000): Pro... method isRegenerateButtonVisible (line 274) | async isRegenerateButtonVisible(index: number): Promise { method getMessageByContent (line 286) | async getMessageByContent(partialText: string): Promise { method getMessageIndexByContent (line 308) | async getMessageIndexByContent(partialText: string): Promise { class AuthHelpers (line 331) | class AuthHelpers { method constructor (line 334) | constructor(page: Page) { method signupAndWaitForAuth (line 341) | async signupAndWaitForAuth(email: string, password: string): Promise { class InputHelpers (line 383) | class InputHelpers { method constructor (line 386) | constructor(page: Page) { method getInputArea (line 393) | async getInputArea(): Promise { method sendMessage (line 400) | async sendMessage(text: string, waitForResponse: boolean = true): Prom... FILE: e2e/lib/sample.ts function randomEmail (line 2) | function randomEmail() { FILE: e2e/tests-examples/demo-todo-app.spec.ts constant TODO_ITEMS (line 7) | const TODO_ITEMS = [ function createDefaultTodos (line 411) | async function createDefaultTodos(page: Page) { function checkNumberOfTodosInLocalStorage (line 421) | async function checkNumberOfTodosInLocalStorage(page: Page, expected: nu... function checkNumberOfCompletedTodosInLocalStorage (line 427) | async function checkNumberOfCompletedTodosInLocalStorage(page: Page, exp... function checkTodosInLocalStorage (line 433) | async function checkTodosInLocalStorage(page: Page, title: string) { FILE: e2e/tests/01_register.spec.ts function randomEmail (line 4) | function randomEmail() { FILE: e2e/tests/04_simpe_prompt_and_message.spec.ts function waitForMessageCount (line 17) | async function waitForMessageCount(pool: Pool, sessionUuid: string, expe... FILE: e2e/tests/06_clear_messages.spec.ts function waitForMessageCount (line 15) | async function waitForMessageCount(pool: Pool, sessionUuid: string, expe... FILE: e2e/tests/07_set_session_max_len.spec.ts function randomEmail (line 4) | function randomEmail() { FILE: mobile/lib/api/api_exception.dart class ApiException (line 1) | class ApiException implements Exception { method userMessage (line 16) | String userMessage({bool includeDetail = true}) method toString (line 24) | String toString() FILE: mobile/lib/api/chat_api.dart class ChatApi (line 15) | class ChatApi { method login (line 28) | Future login({ method fetchWorkspaces (line 60) | Future> fetchWorkspaces() method fetchSessions (line 75) | Future> fetchSessions({ method fetchSessionById (line 92) | Future fetchSessionById(String sessionId) method fetchMessages (line 109) | Future> fetchMessages({ method createChatPrompt (line 132) | Future createChatPrompt({ method deleteChatPrompt (line 182) | Future deleteChatPrompt(String promptId) method streamChatResponse (line 193) | Future streamChatResponse({ method fetchChatModels (line 237) | Future> fetchChatModels() method updateSession (line 252) | Future updateSession({ method generateMoreSuggestions (line 293) | Future generateMoreSuggestions({ method clearSessionMessages (line 313) | Future clearSessionMessages(String sessionId) method createChatSnapshot (line 324) | Future createChatSnapshot(String sessionId) method fetchSnapshots (line 341) | Future> fetchSnapshots({ method fetchSnapshot (line 364) | Future fetchSnapshot(String snapshotId) method deleteSession (line 381) | Future deleteSession(String sessionId) method deleteMessage (line 392) | Future deleteMessage(String messageId) method updateMessage (line 403) | Future updateMessage({ method createSession (line 423) | Future createSession({ method _defaultHeaders (line 455) | Map _defaultHeaders() method _extractList (line 479) | List> _extractList(dynamic payload) method _parseApiError (line 499) | ApiException _parseApiError(int status, String body) method _extractRefreshCookie (line 531) | String? _extractRefreshCookie(http.Response response) method _asInt (line 557) | int? _asInt(dynamic value) method _asString (line 573) | String? _asString(dynamic value) method _asDateTime (line 583) | DateTime? _asDateTime(dynamic value) method refreshToken (line 599) | Future refreshToken() FILE: mobile/lib/constants/chat.dart function defaultSystemPromptForLocale (line 14) | String defaultSystemPromptForLocale([Locale? locale]) FILE: mobile/lib/main.dart function main (line 7) | void main() class ChatMobileApp (line 11) | class ChatMobileApp extends StatelessWidget { method build (line 15) | Widget build(BuildContext context) FILE: mobile/lib/models/auth_token_result.dart class AuthTokenResult (line 1) | class AuthTokenResult { FILE: mobile/lib/models/chat_message.dart type MessageRole (line 1) | enum MessageRole { class ChatMessage (line 7) | class ChatMessage { method copyWith (line 36) | ChatMessage copyWith({ function _asString (line 102) | String? _asString(dynamic value) function _asBool (line 112) | bool _asBool(dynamic value) function _asDateTime (line 128) | DateTime? _asDateTime(dynamic value) function _asStringList (line 144) | List? _asStringList(dynamic value) FILE: mobile/lib/models/chat_model.dart class ChatModel (line 1) | class ChatModel { function _asString (line 37) | String? _asString(dynamic value) function _asInt (line 47) | int? _asInt(dynamic value) function _asBool (line 63) | bool _asBool(dynamic value) FILE: mobile/lib/models/chat_session.dart class ChatSession (line 1) | class ChatSession { function _asString (line 87) | String? _asString(dynamic value) function _asDateTime (line 97) | DateTime? _asDateTime(dynamic value) function _asInt (line 113) | int? _asInt(dynamic value) function _asDouble (line 129) | double? _asDouble(dynamic value) function _asBool (line 145) | bool _asBool(dynamic value) FILE: mobile/lib/models/chat_snapshot.dart class ChatSnapshotMeta (line 3) | class ChatSnapshotMeta { class ChatSnapshotDetail (line 26) | class ChatSnapshotDetail { function _asString (line 68) | String? _asString(dynamic value) function _asDateTime (line 78) | DateTime? _asDateTime(dynamic value) FILE: mobile/lib/models/suggestions_response.dart class SuggestionsResponse (line 1) | class SuggestionsResponse { function _asStringList (line 18) | List? _asStringList(dynamic value) FILE: mobile/lib/models/workspace.dart class Workspace (line 1) | class Workspace { function _readString (line 32) | String _readString( function _readBool (line 46) | bool _readBool(Map json, List keys) FILE: mobile/lib/screens/auth_gate.dart class AuthGate (line 9) | class AuthGate extends HookConsumerWidget { method build (line 13) | Widget build(BuildContext context, WidgetRef ref) FILE: mobile/lib/screens/chat_screen.dart class ChatScreen (line 16) | class ChatScreen extends HookConsumerWidget { method build (line 22) | Widget build(BuildContext context, WidgetRef ref) method _buildMessageList (line 153) | Widget _buildMessageList( method _sendMessage (line 261) | Future _sendMessage( method _openModelSheet (line 287) | void _openModelSheet( method _confirmClearConversation (line 361) | Future _confirmClearConversation( method _createSnapshot (line 395) | Future _createSnapshot( method _deleteMessage (line 431) | Future _deleteMessage( method _toggleMessagePin (line 451) | Future _toggleMessagePin( method _regenerateMessage (line 464) | Future _regenerateMessage( method _getDisplayTitle (line 479) | String _getDisplayTitle(String title) method _showEditTitleDialog (line 486) | void _showEditTitleDialog( FILE: mobile/lib/screens/home_screen.dart class HomeScreen (line 16) | class HomeScreen extends HookConsumerWidget { method build (line 20) | Widget build(BuildContext context, WidgetRef ref) method _buildBody (line 96) | Widget _buildBody( method _buildSessions (line 166) | Widget _buildSessions( method _confirmDeleteSession (line 257) | Future _confirmDeleteSession(BuildContext context) method _createSession (line 278) | Future _createSession(BuildContext context, WidgetRef ref) FILE: mobile/lib/screens/login_screen.dart class LoginScreen (line 7) | class LoginScreen extends HookConsumerWidget { method build (line 11) | Widget build(BuildContext context, WidgetRef ref) method _submit (line 78) | void _submit( FILE: mobile/lib/screens/snapshot_list_screen.dart class SnapshotListScreen (line 10) | class SnapshotListScreen extends HookConsumerWidget { method build (line 14) | Widget build(BuildContext context, WidgetRef ref) method loadSnapshots (line 23) | Future loadSnapshots({bool loadMore = false}) method _buildEmptyState (line 150) | Widget _buildEmptyState( method _formatDate (line 174) | String _formatDate(DateTime dateTime) method _two (line 182) | String _two(int value) FILE: mobile/lib/screens/snapshot_screen.dart class SnapshotScreen (line 10) | class SnapshotScreen extends HookConsumerWidget { method build (line 16) | Widget build(BuildContext context, WidgetRef ref) method loadSnapshot (line 21) | Future loadSnapshot() method _buildBody (line 61) | Widget _buildBody( FILE: mobile/lib/state/auth_provider.dart class AuthState (line 8) | class AuthState { method copyWith (line 35) | AuthState copyWith({ class AuthNotifier (line 57) | class AuthNotifier extends StateNotifier { method loadToken (line 71) | Future loadToken() method login (line 96) | Future login({ method refreshToken (line 124) | Future refreshToken() method ensureFreshToken (line 151) | Future ensureFreshToken() method logout (line 178) | Future logout() function _needsRefresh (line 196) | bool _needsRefresh(int? expiresIn) FILE: mobile/lib/state/message_provider.dart class MessageState (line 11) | class MessageState { method copyWith (line 24) | MessageState copyWith({ class MessageNotifier (line 39) | class MessageNotifier extends StateNotifier { method _ensureAuth (line 50) | Future _ensureAuth() method loadMessages (line 61) | Future loadMessages(String sessionId) method sendMessage (line 102) | Future sendMessage({ method regenerateMessage (line 179) | Future regenerateMessage({ method addMessage (line 276) | void addMessage(ChatMessage message) method _handleStreamChunk (line 280) | void _handleStreamChunk(String sessionId, String tempId, String chunk) method _replaceMessageContent (line 362) | void _replaceMessageContent(String messageId, String content) method _clearSuggestedQuestionsLoading (line 387) | void _clearSuggestedQuestionsLoading(String sessionId) method generateMoreSuggestions (line 416) | Future generateMoreSuggestions(String messageId) method setSuggestedQuestionBatch (line 505) | void setSuggestedQuestionBatch({ method clearSessionMessages (line 537) | Future clearSessionMessages(String sessionId) method deleteMessage (line 556) | Future deleteMessage(String messageId) method toggleMessagePin (line 588) | Future toggleMessagePin(String messageId) method _setLatestAssistantLoading (line 622) | void _setLatestAssistantLoading(String sessionId, bool loading) function _extractStreamingData (line 657) | String _extractStreamingData(String chunk) function _mergeSessionMessages (line 668) | List _mergeSessionMessages({ FILE: mobile/lib/state/model_provider.dart class ModelState (line 8) | class ModelState { method copyWith (line 38) | ModelState copyWith({ class ModelNotifier (line 57) | class ModelNotifier extends StateNotifier { method _ensureAuth (line 68) | Future _ensureAuth() method loadModels (line 79) | Future loadModels() method setActiveModel (line 103) | void setActiveModel(String modelName) method _resolveActiveModelName (line 107) | String? _resolveActiveModelName(List models) FILE: mobile/lib/state/session_provider.dart class SessionState (line 8) | class SessionState { method copyWith (line 19) | SessionState copyWith({ class SessionNotifier (line 32) | class SessionNotifier extends StateNotifier { method _ensureAuth (line 42) | Future _ensureAuth() method loadSessions (line 53) | Future loadSessions(String? workspaceId) method createSession (line 79) | Future createSession({ method addSession (line 113) | void addSession(ChatSession session) method updateSession (line 117) | void updateSession(ChatSession updated) method deleteSession (line 125) | Future deleteSession(String sessionId) method updateSessionModel (line 148) | Future updateSessionModel({ method refreshSession (line 203) | Future refreshSession(String sessionId) method updateSessionExploreMode (line 244) | Future updateSessionExploreMode({ method updateSessionTitle (line 299) | Future updateSessionTitle({ FILE: mobile/lib/state/workspace_provider.dart class WorkspaceState (line 8) | class WorkspaceState { method copyWith (line 34) | WorkspaceState copyWith({ class WorkspaceNotifier (line 53) | class WorkspaceNotifier extends StateNotifier { method _ensureAuth (line 64) | Future _ensureAuth() method loadWorkspaces (line 75) | Future loadWorkspaces() method setActiveWorkspace (line 97) | void setActiveWorkspace(String workspaceId) method addWorkspace (line 101) | void addWorkspace(Workspace workspace) method _resolveActiveWorkspaceId (line 110) | String? _resolveActiveWorkspaceId(List workspaces) FILE: mobile/lib/theme/app_theme.dart class AppTheme (line 3) | class AppTheme { method light (line 7) | ThemeData light() FILE: mobile/lib/theme/color_utils.dart function colorFromHex (line 3) | Color colorFromHex(String hex) FILE: mobile/lib/utils/api_error.dart function formatApiError (line 3) | String formatApiError(Object error) FILE: mobile/lib/utils/thinking_parser.dart class ThinkingParseResult (line 1) | class ThinkingParseResult { function parseThinkingContent (line 15) | ThinkingParseResult parseThinkingContent(String text) FILE: mobile/lib/widgets/icon_map.dart function iconForName (line 3) | IconData iconForName(String iconName) FILE: mobile/lib/widgets/message_bubble.dart class MessageBubble (line 10) | class MessageBubble extends StatelessWidget { method build (line 25) | Widget build(BuildContext context) method _formatTimestamp (line 231) | String _formatTimestamp(DateTime timestamp) method _showMessageMenu (line 248) | void _showMessageMenu(BuildContext context) method _copyMessage (line 301) | void _copyMessage(BuildContext context) method _confirmDelete (line 316) | void _confirmDelete(BuildContext context) FILE: mobile/lib/widgets/message_composer.dart class MessageComposer (line 4) | class MessageComposer extends HookWidget { method build (line 15) | Widget build(BuildContext context) FILE: mobile/lib/widgets/session_tile.dart class SessionTile (line 5) | class SessionTile extends StatelessWidget { method build (line 16) | Widget build(BuildContext context) method _getDisplayTitle (line 30) | String _getDisplayTitle() FILE: mobile/lib/widgets/suggested_questions.dart class SuggestedQuestions (line 3) | class SuggestedQuestions extends StatelessWidget { method build (line 28) | Widget build(BuildContext context) FILE: mobile/lib/widgets/thinking_section.dart class ThinkingSection (line 5) | class ThinkingSection extends StatefulWidget { method createState (line 20) | State createState() class _ThinkingSectionState (line 23) | class _ThinkingSectionState extends State { method initState (line 28) | void initState() method _copyContent (line 41) | Future _copyContent() method build (line 59) | Widget build(BuildContext context) FILE: mobile/lib/widgets/workspace_selector.dart class WorkspaceSelector (line 8) | class WorkspaceSelector extends HookConsumerWidget { method build (line 12) | Widget build(BuildContext context, WidgetRef ref) method _openWorkspaceSheet (line 61) | void _openWorkspaceSheet(BuildContext context, WidgetRef ref) FILE: mobile/linux/flutter/generated_plugin_registrant.cc function fl_register_plugins (line 10) | void fl_register_plugins(FlPluginRegistry* registry) { FILE: mobile/linux/runner/main.cc function main (line 3) | int main(int argc, char** argv) { FILE: mobile/linux/runner/my_application.cc type _MyApplication (line 10) | struct _MyApplication { function first_frame_cb (line 18) | static void first_frame_cb(MyApplication* self, FlView *view) function my_application_activate (line 24) | static void my_application_activate(GApplication* application) { function gboolean (line 80) | static gboolean my_application_local_command_line(GApplication* applicat... function my_application_startup (line 99) | static void my_application_startup(GApplication* application) { function my_application_shutdown (line 108) | static void my_application_shutdown(GApplication* application) { function my_application_dispose (line 117) | static void my_application_dispose(GObject* object) { function my_application_class_init (line 123) | static void my_application_class_init(MyApplicationClass* klass) { function my_application_init (line 131) | static void my_application_init(MyApplication* self) {} function MyApplication (line 133) | MyApplication* my_application_new() { FILE: mobile/test/widget_test.dart function main (line 13) | void main() FILE: mobile/windows/flutter/generated_plugin_registrant.cc function RegisterPlugins (line 10) | void RegisterPlugins(flutter::PluginRegistry* registry) { FILE: mobile/windows/runner/flutter_window.cpp function LRESULT (line 50) | LRESULT FILE: mobile/windows/runner/flutter_window.h function class (line 12) | class FlutterWindow : public Win32Window { FILE: mobile/windows/runner/main.cpp function wWinMain (line 8) | int APIENTRY wWinMain(_In_ HINSTANCE instance, _In_opt_ HINSTANCE prev, FILE: mobile/windows/runner/utils.cpp function CreateAndAttachConsole (line 10) | void CreateAndAttachConsole() { function GetCommandLineArguments (line 24) | std::vector GetCommandLineArguments() { function Utf8FromUtf16 (line 44) | std::string Utf8FromUtf16(const wchar_t* utf16_string) { FILE: mobile/windows/runner/win32_window.cpp function Scale (line 36) | int Scale(int source, double scale_factor) { function EnableFullDpiSupportIfAvailable (line 42) | void EnableFullDpiSupportIfAvailable(HWND hwnd) { class WindowClassRegistrar (line 59) | class WindowClassRegistrar { method WindowClassRegistrar (line 64) | static WindowClassRegistrar* GetInstance() { method WindowClassRegistrar (line 80) | WindowClassRegistrar() = default; function wchar_t (line 89) | const wchar_t* WindowClassRegistrar::GetWindowClass() { function LRESULT (line 157) | LRESULT CALLBACK Win32Window::WndProc(HWND const window, function LRESULT (line 176) | LRESULT function Win32Window (line 236) | Win32Window* Win32Window::GetThisFromHandle(HWND const window) noexcept { function RECT (line 252) | RECT Win32Window::GetClientArea() { function HWND (line 258) | HWND Win32Window::GetHandle() { FILE: mobile/windows/runner/win32_window.h type Size (line 21) | struct Size { FILE: scripts/branch_clean.py function get_local_branches (line 4) | def get_local_branches(): function get_branch_last_commit_date (line 12) | def get_branch_last_commit_date(branch): function delete_branch (line 18) | def delete_branch(branch): function confirm_deletion (line 22) | def confirm_deletion(branch): function main (line 27) | def main(): FILE: scripts/locale_missing_key.py function find_missing_keys (line 6) | def find_missing_keys(base_dict, other_dict): function check_locales (line 19) | def check_locales(dir_name: str, base_locale: str = 'zh-CN'): FILE: scripts/merge_keys.py function merge_dicts (line 5) | def merge_dicts(d1, d2): function merge_json_files (line 21) | def merge_json_files(file1, file2): FILE: web/src/api/bot_answer_history.ts function fetchBotAnswerHistory (line 3) | async function fetchBotAnswerHistory(botUuid: string, page: number, page... function fetchBotRunCount (line 17) | async function fetchBotRunCount(botUuid: string) { FILE: web/src/api/chat_file.ts function getChatFilesList (line 9) | async function getChatFilesList(uuid: string) { FILE: web/src/api/chat_instructions.ts type ChatInstructions (line 3) | interface ChatInstructions { FILE: web/src/api/chat_prompt.ts type CreateChatPromptPayload (line 3) | interface CreateChatPromptPayload { FILE: web/src/api/chat_workspace.ts type CreateWorkspaceRequest (line 3) | interface CreateWorkspaceRequest { type UpdateWorkspaceRequest (line 11) | interface UpdateWorkspaceRequest { type CreateSessionInWorkspaceRequest (line 18) | interface CreateSessionInWorkspaceRequest { FILE: web/src/api/export.ts function format_chat_md (line 3) | function format_chat_md(chat: Chat.Message): string { FILE: web/src/api/token.ts function fetchAPIToken (line 3) | async function fetchAPIToken() { FILE: web/src/api/user.ts function fetchLogin (line 2) | async function fetchLogin(email: string, password: string) { function fetchSignUp (line 13) | async function fetchSignUp(email: string, password: string) { FILE: web/src/config/api.ts type ApiConfig (line 1) | interface ApiConfig { function getApiConfig (line 9) | function getApiConfig(): ApiConfig { function getStreamingUrl (line 43) | function getStreamingUrl(endpoint: string): string { function getApiUrl (line 51) | function getApiUrl(endpoint: string): string { FILE: web/src/constants/apiTypes.ts constant API_TYPES (line 1) | const API_TYPES = { type ApiType (line 9) | type ApiType = typeof API_TYPES[keyof typeof API_TYPES] constant API_TYPE_OPTIONS (line 11) | const API_TYPE_OPTIONS = [ constant API_TYPE_DISPLAY_NAMES (line 19) | const API_TYPE_DISPLAY_NAMES = { FILE: web/src/hooks/useBasicLayout.ts function useBasicLayout (line 3) | function useBasicLayout() { FILE: web/src/hooks/useCopyCode.ts function useCopyCode (line 4) | function useCopyCode() { FILE: web/src/hooks/useIconRender.ts type IconConfig (line 5) | interface IconConfig { type IconStyle (line 11) | interface IconStyle { FILE: web/src/hooks/useLanguage.ts function useLanguage (line 6) | function useLanguage() { FILE: web/src/hooks/useOnlineStatus.ts function useOnlineStatus (line 4) | function useOnlineStatus() { FILE: web/src/hooks/useTheme.ts function useTheme (line 6) | function useTheme() { FILE: web/src/hooks/useWorkspaceRouting.ts function useWorkspaceRouting (line 5) | function useWorkspaceRouting() { FILE: web/src/locales/index.ts function t (line 20) | function t(key: string, values?: Record) { function setLocale (line 28) | function setLocale(locale: Language) { function setupI18n (line 32) | function setupI18n(app: App) { FILE: web/src/main.ts function bootstrap (line 9) | async function bootstrap() { FILE: web/src/plugins/assets.ts function naiveStyleOverride (line 8) | function naiveStyleOverride() { function setupAssets (line 14) | function setupAssets() { FILE: web/src/router/index.ts function setupRouter (line 130) | async function setupRouter(app: App) { FILE: web/src/router/permission.ts constant FIVE_MINUTES_IN_SECONDS (line 7) | const FIVE_MINUTES_IN_SECONDS = 5 * 60 function ensureFreshToken (line 10) | async function ensureFreshToken(authStore: any) { function setupPageGuard (line 32) | function setupPageGuard(router: Router) { FILE: web/src/service/snapshot.ts function generateAPIHelper (line 7) | function generateAPIHelper(uuid: string, apiToken: string, origin: strin... function getChatbotPosts (line 16) | function getChatbotPosts(posts: Snapshot.Snapshot[]) { function getSnapshotPosts (line 26) | function getSnapshotPosts(posts: Snapshot.Snapshot[]) { function postsByYearMonthTransform (line 36) | function postsByYearMonthTransform(posts: Snapshot.PostLink[]) { function getSnapshotPostLinks (line 48) | function getSnapshotPostLinks(snapshots: Snapshot.Snapshot[]): Record): boolean { method deleteTemplate (line 701) | deleteTemplate(id: string): boolean { method incrementUsage (line 716) | incrementUsage(id: string): void { method rateTemplate (line 727) | rateTemplate(id: string, rating: number): boolean { method exportTemplates (line 742) | exportTemplates(): string { method importTemplates (line 750) | importTemplates(jsonData: string): boolean { method generateId (line 777) | private generateId(): string { method saveUserTemplates (line 781) | private saveUserTemplates(): void { method loadUserTemplates (line 790) | private loadUserTemplates(): void { function useCodeTemplates (line 807) | function useCodeTemplates() { FILE: web/src/store/index.ts function setupStore (line 6) | function setupStore(app: App) { FILE: web/src/store/modules/app/helper.ts constant LOCAL_NAME (line 3) | const LOCAL_NAME = 'appSetting' type Theme (line 5) | type Theme = 'light' | 'dark' | 'auto' type Language (line 7) | type Language = 'zh-CN' | 'zh-TW' | 'en-US' type AppState (line 9) | interface AppState { function defaultSetting (line 17) | function defaultSetting(): AppState { function getLocalSetting (line 21) | function getLocalSetting(): AppState { function setLocalSetting (line 26) | function setLocalSetting(setting: AppState): void { FILE: web/src/store/modules/app/index.ts method setSiderCollapsed (line 11) | setSiderCollapsed(collapsed: boolean) { method setTheme (line 16) | setTheme(theme: Theme) { method setLanguage (line 21) | setLanguage(language: Language) { method setNextLanguage (line 27) | setNextLanguage() { method recordState (line 34) | recordState() { function useAppStoreWithOut (line 40) | function useAppStoreWithOut() { FILE: web/src/store/modules/auth/helper.ts function getToken (line 7) | function getToken(): string | null { function setToken (line 11) | function setToken(token: string): void { function removeToken (line 15) | function removeToken(): void { constant EXPIRE_LOCAL_NAME (line 20) | const EXPIRE_LOCAL_NAME = 'expiresIn' function getExpiresIn (line 22) | function getExpiresIn(): number | null { function setExpiresIn (line 27) | function setExpiresIn(expiresIn: number): void { function removeExpiresIn (line 31) | function removeExpiresIn(): void { FILE: web/src/store/modules/auth/index.ts type AuthState (line 7) | interface AuthState { method isValid (line 25) | isValid(): boolean { method getToken (line 28) | getToken(): string | null { method getExpiresIn (line 31) | getExpiresIn(): number | null { method needsRefresh (line 34) | needsRefresh(): boolean { method needPermission (line 39) | needPermission(): boolean { method initializeAuth (line 45) | async initializeAuth() { method setToken (line 73) | setToken(token: string) { method removeToken (line 77) | removeToken() { method refreshToken (line 81) | async refreshToken() { method setExpiresIn (line 125) | setExpiresIn(expiresIn: number) { method removeExpiresIn (line 129) | removeExpiresIn() { method waitForInitialization (line 133) | async waitForInitialization(timeoutMs = 10000) { FILE: web/src/store/modules/message/index.ts type MessageState (line 14) | interface MessageState { method getChatSessionDataByUuid (line 26) | getChatSessionDataByUuid(state) { method getIsLoadingBySession (line 35) | getIsLoadingBySession(state) { method getLastMessageForSession (line 42) | getLastMessageForSession(state) { method activeSessionMessages (line 50) | activeSessionMessages(state) { method syncChatMessages (line 60) | async syncChatMessages(sessionUuid: string) { method addMessage (line 155) | addMessage(sessionUuid: string, message: Chat.Message) { method addMessages (line 162) | addMessages(sessionUuid: string, messages: Chat.Message[]) { method updateMessage (line 169) | updateMessage(sessionUuid: string, messageUuid: string, updates: Partial... method removeMessage (line 179) | async removeMessage(sessionUuid: string, messageUuid: string) { method clearSessionMessages (line 199) | clearSessionMessages(sessionUuid: string) { method updateLastMessage (line 215) | updateLastMessage(sessionUuid: string, updates: Partial) { method setLoading (line 224) | setLoading(sessionUuid: string, isLoading: boolean) { method getMessageCount (line 229) | getMessageCount(sessionUuid: string) { method clearAllMessages (line 234) | clearAllMessages() { method removeSessionData (line 240) | removeSessionData(sessionUuid: string) { method hasMessages (line 246) | hasMessages(sessionUuid: string) { method getMessagesByType (line 251) | getMessagesByType(sessionUuid: string, type: 'user' | 'assistant') { method getPinnedMessages (line 262) | getPinnedMessages(sessionUuid: string) { method getMessagesWithArtifacts (line 268) | getMessagesWithArtifacts(sessionUuid: string) { method getMessagesByDateRange (line 274) | getMessagesByDateRange(sessionUuid: string, startDate: string, endDate: ... method searchMessages (line 283) | searchMessages(sessionUuid: string, query: string) { method getLoadingMessages (line 292) | getLoadingMessages(sessionUuid: string) { method getErrorMessages (line 298) | getErrorMessages(sessionUuid: string) { method getPromptMessages (line 304) | getPromptMessages(sessionUuid: string) { method generateMoreSuggestedQuestions (line 310) | async generateMoreSuggestedQuestions(sessionUuid: string, messageUuid: s... method previousSuggestedQuestionsBatch (line 355) | previousSuggestedQuestionsBatch(sessionUuid: string, messageUuid: string) { method nextSuggestedQuestionsBatch (line 375) | nextSuggestedQuestionsBatch(sessionUuid: string, messageUuid: string) { FILE: web/src/store/modules/prompt/helper.ts constant LOCAL_NAME (line 3) | const LOCAL_NAME = 'promptStore' type Prompt (line 5) | type Prompt = { type PromptList (line 9) | type PromptList = [] | Prompt[] type PromptStore (line 11) | interface PromptStore { function getLocalPromptList (line 164) | function getLocalPromptList(): PromptStore { function setLocalPromptList (line 175) | function setLocalPromptList(promptStore: PromptStore): void { FILE: web/src/store/modules/prompt/index.ts method updatePromptList (line 9) | updatePromptList(promptList: []) { method getPromptList (line 13) | getPromptList() { FILE: web/src/store/modules/session/index.ts type SessionState (line 14) | interface SessionState { method getChatSessionByUuid (line 36) | getChatSessionByUuid(state) { method getSessionsByWorkspace (line 49) | getSessionsByWorkspace(state) { method activeSession (line 56) | activeSession(state) { method getSessionUrl (line 68) | getSessionUrl() { method syncWorkspaceSessions (line 83) | async syncWorkspaceSessions(workspaceUuid: string) { method syncActiveWorkspaceSessions (line 105) | async syncActiveWorkspaceSessions() { method syncAllWorkspaceSessions (line 136) | async syncAllWorkspaceSessions() { method createSessionInWorkspace (line 161) | async createSessionInWorkspace(title: string, workspaceUuid?: string, mo... method createLegacySession (line 219) | async createLegacySession(session: Chat.Session) { method updateSession (line 237) | async updateSession(uuid: string, updates: Partial) { method deleteSession (line 286) | async deleteSession(sessionUuid: string) { method setActiveSession (line 324) | async setActiveSession(workspaceUuid: string | null, sessionUuid: string) { method setActiveSessionWithoutNavigation (line 373) | setActiveSessionWithoutNavigation(workspaceUuid: string | null, sessionU... method setNextActiveSession (line 383) | async setNextActiveSession(workspaceUuid: string | null) { method navigateToSession (line 401) | async navigateToSession(sessionUuid: string) { method clearWorkspaceSessions (line 445) | clearWorkspaceSessions(workspaceUuid: string) { method getAllSessions (line 456) | getAllSessions() { method addSession (line 465) | async addSession(session: Chat.Session) { method createNewSession (line 470) | async createNewSession(title?: string, workspaceUuid?: string, model?: s... FILE: web/src/store/modules/user/helper.ts constant LOCAL_NAME (line 3) | const LOCAL_NAME = 'userStorage' type UserInfo (line 5) | interface UserInfo { type UserState (line 10) | interface UserState { function defaultSetting (line 14) | function defaultSetting(): UserState { function getLocalState (line 23) | function getLocalState(): UserState { function setLocalState (line 28) | function setLocalState(setting: UserState): void { FILE: web/src/store/modules/user/index.ts method updateUserInfo (line 8) | updateUserInfo(userInfo: Partial) { method resetUserInfo (line 13) | resetUserInfo() { method recordState (line 18) | recordState() { FILE: web/src/store/modules/workspace/index.ts type WorkspaceState (line 20) | interface WorkspaceState { method getWorkspaceByUuid (line 38) | getWorkspaceByUuid(state) { method getDefaultWorkspace (line 47) | getDefaultWorkspace(state) { method activeWorkspace (line 51) | activeWorkspace(state) { method getActiveSessionForWorkspace (line 59) | getActiveSessionForWorkspace(state) { method initializeActiveWorkspace (line 68) | async initializeActiveWorkspace(targetWorkspaceUuid?: string) { method initializeApplication (line 107) | async initializeApplication() { method loadActiveWorkspace (line 165) | async loadActiveWorkspace(targetWorkspaceUuid?: string) { method loadAllWorkspaces (line 205) | async loadAllWorkspaces() { method syncWorkspaceActiveSessions (line 225) | async syncWorkspaceActiveSessions(urlWorkspaceUuid?: string, urlSessionU... method ensureActiveWorkspace (line 275) | async ensureActiveWorkspace() { method ensureUserHasSession (line 286) | async ensureUserHasSession() { method handleInitialNavigation (line 311) | async handleInitialNavigation(urlWorkspaceUuid?: string, urlSessionUuid?... method syncWorkspaces (line 340) | async syncWorkspaces() { method ensureDefaultWorkspace (line 365) | async ensureDefaultWorkspace() { method setActiveWorkspace (line 389) | async setActiveWorkspace(workspaceUuid: string) { method restoreActiveSession (line 460) | restoreActiveSession() { method createWorkspace (line 478) | async createWorkspace(name: string, description: string = '', color: str... method updateWorkspace (line 506) | async updateWorkspace(workspaceUuid: string, updates: any) { method deleteWorkspace (line 520) | async deleteWorkspace(workspaceUuid: string) { method setDefaultWorkspace (line 545) | async setDefaultWorkspace(workspaceUuid: string) { method updateWorkspaceOrder (line 558) | async updateWorkspaceOrder(workspaceUuids: string[]) { method setActiveSessionForWorkspace (line 591) | setActiveSessionForWorkspace(workspaceUuid: string, sessionUuid: string) { method clearActiveSessionForWorkspace (line 595) | clearActiveSessionForWorkspace(workspaceUuid: string) { method navigateToWorkspace (line 599) | async navigateToWorkspace(workspaceUuid: string, sessionUuid?: string) { FILE: web/src/types/chat-models.ts type ChatModel (line 1) | interface ChatModel { type CreateChatModelRequest (line 15) | interface CreateChatModelRequest { type UpdateChatModelRequest (line 27) | interface UpdateChatModelRequest { type ChatModelSelectOption (line 39) | interface ChatModelSelectOption { type ChatModelsResponse (line 45) | interface ChatModelsResponse { FILE: web/src/typings/chat.d.ts type Artifact (line 3) | interface Artifact { type Message (line 11) | interface Message { type Session (line 29) | interface Session { type Workspace (line 46) | interface Workspace { type ActiveSession (line 59) | interface ActiveSession { type ChatState (line 64) | interface ChatState { type ConversationRequest (line 72) | interface ConversationRequest { type ConversationResponse (line 78) | interface ConversationResponse { type ChatModel (line 95) | interface ChatModel { type ChatModelPrivilege (line 113) | interface ChatModelPrivilege { type Comment (line 121) | interface Comment { type Snapshot (line 135) | interface Snapshot { type PostLink (line 144) | interface PostLink { type BotAnswerHistory (line 152) | interface BotAnswerHistory { FILE: web/src/typings/global.d.ts type Window (line 1) | interface Window { type SelectOption (line 8) | interface SelectOption { FILE: web/src/utils/artifacts.ts type Artifact (line 4) | type Artifact = Chat.Artifact function generateUUID (line 7) | function generateUUID(): string { function extractArtifacts (line 12) | function extractArtifacts(content: string): Artifact[] { FILE: web/src/utils/crypto/index.ts function enCrypto (line 6) | function enCrypto(data: any) { function deCrypto (line 11) | function deCrypto(data: string) { FILE: web/src/utils/date.ts function nowISO (line 3) | function nowISO(): string { function getCurrentDate (line 7) | function getCurrentDate() { function displayLocaleDate (line 14) | function displayLocaleDate(ts: string) { function formatYearMonth (line 23) | function formatYearMonth(date: Date): string { FILE: web/src/utils/download.ts function genTempDownloadLink (line 3) | function genTempDownloadLink(imgUrl: string) { FILE: web/src/utils/errorHandler.ts type ApiError (line 14) | interface ApiError { type ErrorHandlerOptions (line 21) | interface ErrorHandlerOptions { class ErrorHandler (line 29) | class ErrorHandler { method isNetworkError (line 38) | private isNetworkError(error: any): boolean { method isAuthError (line 47) | private isAuthError(error: any): boolean { method isServerError (line 51) | private isServerError(error: any): boolean { method isClientError (line 55) | private isClientError(error: any): boolean { method extractErrorMessage (line 59) | private extractErrorMessage(error: any): string { method logApiError (line 72) | private logApiError(method: string, url: string, error: any, options: ... method handleAuthError (line 85) | private async handleAuthError(error: any): Promise { method retryRequest (line 101) | private async retryRequest( method handleApiRequest (line 134) | async handleApiRequest( method get (line 209) | async get(url: string, options?: ErrorHandlerOptions): Promise { method post (line 219) | async post(url: string, data?: any, options?: ErrorHandlerOptions):... method put (line 233) | async put(url: string, data?: any, options?: ErrorHandlerOptions): ... method delete (line 247) | async delete(url: string, options?: ErrorHandlerOptions): Promise { method setupGlobalErrorHandler (line 257) | setupGlobalErrorHandler(): void { FILE: web/src/utils/format/index.ts function encodeHTML (line 5) | function encodeHTML(source: string) { function includeCode (line 18) | function includeCode(text: string | null | undefined) { function copyText (line 27) | function copyText(options: { text: string; origin?: boolean }) { FILE: web/src/utils/is/index.ts function isNumber (line 1) | function isNumber(value: T | unknown): value is number { function isString (line 5) | function isString(value: T | unknown): value is string { function isBoolean (line 9) | function isBoolean(value: T | unknown): value is bool... function isNull (line 13) | function isNull(value: T | unknown): value is null { function isUndefined (line 17) | function isUndefined(value: T | unknown): value is ... function isObject (line 21) | function isObject(value: T | unknown): value is object { function isArray (line 25) | function isArray(value: T | unknown): value is T { function isFunction (line 29) | function isFunction any | void | never>(va... function isDate (line 33) | function isDate(value: T | unknown): value is T { function isRegExp (line 37) | function isRegExp(value: T | unknown): value is T { function isPromise (line 41) | function isPromise>(value: T | unknown): value is... function isSet (line 45) | function isSet>(value: T | unknown): value is T { function isMap (line 49) | function isMap>(value: T | unknown): value is T { function isFile (line 53) | function isFile(value: T | unknown): value is T { FILE: web/src/utils/jwt.ts function isAdmin (line 3) | function isAdmin(token: string): boolean { FILE: web/src/utils/logger.ts type LogLevel (line 1) | enum LogLevel { type LogEntry (line 8) | interface LogEntry { class Logger (line 16) | class Logger { method constructor (line 21) | constructor() { method getLogLevelFromEnv (line 26) | private getLogLevelFromEnv(): LogLevel { method shouldLog (line 37) | private shouldLog(level: LogLevel): boolean { method createLogEntry (line 41) | private createLogEntry(level: LogLevel, message: string, context?: str... method formatMessage (line 51) | private formatMessage(entry: LogEntry): string { method log (line 58) | private log(level: LogLevel, message: string, context?: string, data?:... method debug (line 88) | debug(message: string, context?: string, data?: any): void { method info (line 92) | info(message: string, context?: string, data?: any): void { method warn (line 96) | warn(message: string, context?: string, data?: any): void { method error (line 100) | error(message: string, context?: string, data?: any): void { method logApiCall (line 105) | logApiCall(method: string, url: string, status?: number, duration?: nu... method logApiError (line 109) | logApiError(method: string, url: string, error: any, status?: number):... method logStoreAction (line 113) | logStoreAction(action: string, store: string, data?: any): void { method logPerformance (line 117) | logPerformance(metric: string, value: number, unit: string = 'ms'): vo... method logUserAction (line 121) | logUserAction(action: string, details?: any): void { method getLogs (line 126) | getLogs(level?: LogLevel): LogEntry[] { method clearLogs (line 134) | clearLogs(): void { method setLevel (line 139) | setLevel(level: LogLevel): void { method exportLogs (line 144) | exportLogs(): string { FILE: web/src/utils/notificationManager.ts type NotificationOptions (line 5) | interface NotificationOptions { type QueuedNotification (line 19) | interface QueuedNotification { class NotificationManager (line 25) | class NotificationManager { method setMessageInstance (line 32) | setMessageInstance(instance: any) { method generateId (line 36) | private generateId(): string { method canShowNotification (line 40) | private canShowNotification(): boolean { method showNotification (line 44) | private showNotification(notification: QueuedNotification) { method processQueue (line 94) | private processQueue() { method show (line 103) | show(options: NotificationOptions): string { method success (line 120) | success(message: string, options: Omit { function http (line 24) | function http( function get (line 84) | function get( function post (line 98) | function post( FILE: web/src/utils/sanitize.ts constant BLOCKED_TAGS (line 1) | const BLOCKED_TAGS = new Set(['script', 'iframe', 'object', 'embed']) constant BLOCKED_SVG_TAGS (line 2) | const BLOCKED_SVG_TAGS = new Set(['script', 'foreignobject']) FILE: web/src/utils/storage/local.ts type StorageData (line 3) | interface StorageData { function createLocalStorage (line 8) | function createLocalStorage(options?: { expire?: number | null; crypto?:... FILE: web/src/utils/string.ts function extractStreamingData (line 1) | function extractStreamingData(streamResponse: string): string { function escapeDollarNumber (line 21) | function escapeDollarNumber(text: string) { function escapeBrackets (line 32) | function escapeBrackets(text: string) { FILE: web/src/utils/tooling.ts type ToolCall (line 1) | type ToolCall = { FILE: web/src/utils/workspaceUrls.ts function getBaseUrl (line 6) | function getBaseUrl(): string { function generateSessionUrl (line 11) | function generateSessionUrl(sessionUuid: string, workspaceUuid?: string)... function generateWorkspaceUrl (line 22) | function generateWorkspaceUrl(workspaceUuid: string): string { function parseWorkspaceUrl (line 28) | function parseWorkspaceUrl(url: string): { workspaceUuid?: string; sessi... function isValidWorkspaceUrl (line 58) | function isValidWorkspaceUrl(url: string): boolean { function copyUrlToClipboard (line 64) | async function copyUrlToClipboard(url: string): Promise { function generateQRCodeUrl (line 91) | function generateQRCodeUrl(url: string): string { function isValidWorkspaceUuid (line 98) | function isValidWorkspaceUuid(uuid: string): boolean { function isValidSessionUuid (line 104) | function isValidSessionUuid(uuid: string): boolean { function createWorkspaceSlug (line 109) | function createWorkspaceSlug(name: string): string { FILE: web/src/views/chat/composables/useChatActions.ts function useChatActions (line 12) | function useChatActions(sessionUuidRef: Ref) { FILE: web/src/views/chat/composables/useConversationFlow.ts type ChatMessage (line 10) | interface ChatMessage { function useConversationFlow (line 20) | function useConversationFlow( FILE: web/src/views/chat/composables/useErrorHandling.ts type AppError (line 7) | interface AppError { type ErrorState (line 15) | interface ErrorState { function useErrorHandling (line 21) | function useErrorHandling() { FILE: web/src/views/chat/composables/usePerformanceOptimizations.ts function useDebounce (line 6) | function useDebounce(value: Ref | T, delay: number) { function useVirtualList (line 38) | function useVirtualList( function useThrottle (line 75) | function useThrottle any>( FILE: web/src/views/chat/composables/useRegenerate.ts function useRegenerate (line 8) | function useRegenerate(sessionUuidRef: Ref) { FILE: web/src/views/chat/composables/useSearchAndPrompts.ts type PromptItem (line 7) | interface PromptItem { type ChatItem (line 12) | interface ChatItem { type SearchOption (line 17) | interface SearchOption { function useSearchAndPrompts (line 22) | function useSearchAndPrompts() { FILE: web/src/views/chat/composables/useStreamHandling.ts type ErrorResponse (line 11) | interface ErrorResponse { type StreamChunkData (line 17) | interface StreamChunkData { function useStreamHandling (line 27) | function useStreamHandling() { FILE: web/src/views/chat/composables/useValidation.ts type ValidationRule (line 4) | interface ValidationRule { type ValidationResult (line 9) | interface ValidationResult { function useValidation (line 14) | function useValidation() { FILE: web/src/views/chat/hooks/useChat.ts function useChat (line 5) | function useChat() { FILE: web/src/views/chat/hooks/useCopyCode.ts function useCopyCode (line 4) | function useCopyCode() { FILE: web/src/views/chat/hooks/useScroll.ts type ScrollElement (line 4) | type ScrollElement = HTMLDivElement | null type ScrollReturn (line 6) | interface ScrollReturn { function useScroll (line 14) | function useScroll(): ScrollReturn { FILE: web/src/views/chat/hooks/useSlashToFocus.ts function useSlashToFocus (line 9) | function useSlashToFocus(targetInputRef: Ref): ... FILE: web/src/views/chat/hooks/useUsingContext.ts function useUsingContext (line 5) | function useUsingContext() { FILE: web/src/views/components/Message/Util.ts type ThinkResult (line 1) | interface ThinkResult { function parseText (line 5) | function parseText(text: string): ThinkResult { FILE: web/src/views/components/Message/thinkingParser.ts class ThinkingParser (line 3) | class ThinkingParser { method constructor (line 7) | constructor(config: ThinkingParserConfig = {}) { method parseText (line 17) | parseText(text: string): ThinkingParseResult { method generateCacheKey (line 96) | private generateCacheKey(text: string): string { method getFromCache (line 107) | private getFromCache(key: string): ThinkingParseResult | null { method setToCache (line 121) | private setToCache(key: string, result: ThinkingParseResult): void { method cleanupCache (line 134) | private cleanupCache(): void { method clearCache (line 148) | clearCache(): void { method getCacheStats (line 155) | getCacheStats(): { size: number; hitRate: number } { FILE: web/src/views/components/Message/types/thinking.ts type ThinkingContent (line 1) | interface ThinkingContent { type ThinkingParseResult (line 9) | interface ThinkingParseResult { type ThinkingRenderOptions (line 16) | interface ThinkingRenderOptions { type ThinkingCacheEntry (line 26) | interface ThinkingCacheEntry { type ThinkingParserConfig (line 32) | interface ThinkingParserConfig { type ThinkingComposableReturn (line 39) | interface ThinkingComposableReturn { type ThinkingRendererProps (line 50) | interface ThinkingRendererProps { type ThinkingRendererEmits (line 57) | interface ThinkingRendererEmits { type UseThinkingContentOptions (line 62) | interface UseThinkingContentOptions { FILE: web/src/views/components/Message/useThinkingContent.ts function useThinkingContent (line 10) | function useThinkingContent( function useMultipleThinkingContent (line 85) | function useMultipleThinkingContent( function useThinkingStats (line 123) | function useThinkingStats() {