-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Move OpenAI related files to features directly #9237
feat: Move OpenAI related files to features directly #9237
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
インラインコメントがある部分以外は path の変更による差分です
|
||
const validator: ValidationChain[] = [ | ||
body('threadId').optional().isString().withMessage('threadId must be string'), | ||
]; | ||
|
||
return [ | ||
accessTokenParser, loginRequiredStrictly, validator, apiV3FormValidator, | ||
accessTokenParser, loginRequiredStrictly, certifyAiService, validator, apiV3FormValidator, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
certifyAiService middleware を追加
const logger = loggerFactory('growi:routes:apiv3:openai:chat'); | ||
import { certifyAiService } from './middlewares/certify-ai-service'; | ||
|
||
const logger = loggerFactory('growi:routes:apiv3:openai:thread'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
chat -> thread に変更
|
||
const logger = loggerFactory('growi:routes:apiv3:openai:chat'); | ||
const logger = loggerFactory('growi:routes:apiv3:openai:message'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
chat -> message に変更
@@ -40,7 +41,7 @@ export const postMessageHandlersFactory: PostMessageHandlersFactory = (crowi) => | |||
]; | |||
|
|||
return [ | |||
accessTokenParser, loginRequiredStrictly, validator, apiV3FormValidator, | |||
accessTokenParser, loginRequiredStrictly, certifyAiService, validator, apiV3FormValidator, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
certifyAiService middleware を追加
…en-ai-related-files-to-features-directly
Task
https://redmine.weseek.co.jp/issues/155101