mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-04 06:39:02 +02:00
Updates to the AI error assistant (#19065)
* Only show the AI error assistant to users with write permission on the project * Fix line number in searchDocLines * Abort the request after 60 seconds * Move comment * Jump to file + line when suggestion line number is clicked * Set tool_choice: 'required' * Fix handling of suggestLineChange * Tidy up getDocLines * Avoid showing Suggest Fix button in gutter marker for typesetting warnings * Log request errors * Fix prefixed function name * Update tool description * Tweak the prompt in an attempt to improve the line number * Reject if the total message content is too large * Change the structure of the suggested change * Reduce line highlight * Fix change highlighting on deletion GitOrigin-RevId: afde096e547050b8518195ef51b68983bc3b0be3
This commit is contained in:
@@ -544,7 +544,9 @@ const _ProjectController = {
|
||||
const showAiErrorAssistant =
|
||||
userId &&
|
||||
Features.hasFeature('saas') &&
|
||||
(user.features?.aiErrorAssistant || user.alphaProgram)
|
||||
(user.features?.aiErrorAssistant || user.alphaProgram) &&
|
||||
(privilegeLevel === PrivilegeLevels.READ_AND_WRITE ||
|
||||
privilegeLevel === PrivilegeLevels.OWNER)
|
||||
|
||||
const template =
|
||||
detachRole === 'detached'
|
||||
|
||||
Reference in New Issue
Block a user