Skip to content

Commit d1436bd

Browse files
committed
Merge branch '7407b'
2 parents 06594f7 + 504143b commit d1436bd

48 files changed

Lines changed: 1475 additions & 1401 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.yarn/releases/yarn-4.12.0.cjs

Lines changed: 0 additions & 942 deletions
This file was deleted.

.yarn/releases/yarn-4.13.0.cjs

Lines changed: 940 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
nodeLinker: node-modules
22

3-
yarnPath: .yarn/releases/yarn-4.12.0.cjs
3+
yarnPath: .yarn/releases/yarn-4.13.0.cjs

SECURITY.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ The following versions are currently being supported with security updates.
66
| Version | Supported |
77
| ------- | ------------------ |
88
| 2.0 | :x: (to be released) |
9+
| 1.11.34 | :white_check_mark: |
910
| 1.11.32 | :white_check_mark: |
1011
| 1.11.30 | :white_check_mark: |
11-
| 1.11.28 | :white_check_mark: |
12+
| 1.11.28 | :x: |
1213
| 1.11.26 | :x: |
1314
| 1.11.24 | :x: |
1415
| 1.11.22 | :x: |

assets/vue/views/documents/DocumentsList.vue

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1698,14 +1698,16 @@ async function loadAiCapabilities() {
16981698
// document_process providers come from capabilities.types.document_process (often a map)
16991699
aiDocProcessProviders.value = normalizeProviders(data?.types?.document_process)
17001700

1701-
// text providers: prefer the explicit endpoint that already returns [{key,label}]
1701+
// text providers: only teachers use the AI feedback/analyzer feature, skip for students
17021702
aiTextProviders.value = []
1703-
try {
1704-
const res = await axios.get("/ai/text_providers", { headers: { Accept: "application/json" } })
1705-
aiTextProviders.value = normalizeProviders(res?.data?.providers)
1706-
} catch (e) {
1707-
console.warn("[AI][Documents] Failed to load /ai/text_providers, fallback to capabilities:", e?.response || e)
1708-
aiTextProviders.value = normalizeProviders(data?.types?.text)
1703+
if (isCurrentTeacher.value) {
1704+
try {
1705+
const res = await axios.get("/ai/text_providers", { headers: { Accept: "application/json" } })
1706+
aiTextProviders.value = normalizeProviders(res?.data?.providers)
1707+
} catch (e) {
1708+
console.warn("[AI][Documents] Failed to load /ai/text_providers, fallback to capabilities:", e?.response || e)
1709+
aiTextProviders.value = normalizeProviders(data?.types?.text)
1710+
}
17091711
}
17101712

17111713
// Analyzer support depends on file mode + provider list availability.

0 commit comments

Comments
 (0)