appendUserChatMessage inserts a user message with its apiKeyID preserved.
( params *database.InsertChatMessagesParams, msg userChatMessage, )
| 4065 | |
| 4066 | // appendUserChatMessage inserts a user message with its apiKeyID preserved. |
| 4067 | func appendUserChatMessage( |
| 4068 | params *database.InsertChatMessagesParams, |
| 4069 | msg userChatMessage, |
| 4070 | ) { |
| 4071 | appendMessageFields(params, msg.chatMessage, msg.apiKeyID) |
| 4072 | } |
| 4073 | |
| 4074 | // BuildSingleUserChatMessageInsertParams creates batch insert params for |
| 4075 | // one user message, requiring an apiKeyID for AI Gateway attribution. |
no test coverage detected