1482 Commits

Author SHA1 Message Date
Roman Rizzi
822594f3e3
Update db/migrate/20250716005855_copy_ai_image_caption_model_to_persona_default.rb 2025-07-21 18:00:01 -03:00
Keegan George
7dee59c97f
DEV: Remove no longer needed seeded model check 2025-07-21 08:08:20 -07:00
Keegan George
fbbe01e576
DEV: Hide seeded LLMs in the enumerator for now 2025-07-21 07:45:27 -07:00
Keegan George
f420261196
DEV: Apply feedback from review 2025-07-18 12:17:08 -07:00
Keegan George
eb93e1736b
Final spec fix 🤞 2025-07-17 14:46:15 -07:00
Keegan George
cc34882074
FIX: rest of specs 2025-07-17 14:34:29 -07:00
Keegan George
4b03cdcc96
FIX: LLM controller spec 2025-07-17 13:31:26 -07:00
Keegan George
d9b53b4a3d
FIX: semantic search 2025-07-17 12:23:38 -07:00
Keegan George
a927fd2270
fix 2025-07-17 12:00:05 -07:00
Keegan George
f077d58abf
FIX: automation spec 2025-07-17 11:48:28 -07:00
Keegan George
08d2f3ddf9
FIX: spam 2025-07-17 11:36:19 -07:00
Keegan George
273a1fa618
FIX: occurrences of old model setting 2025-07-17 09:43:45 -07:00
Keegan George
7af3ce820d
DEV: Remove references to translation model 2025-07-17 09:27:08 -07:00
Keegan George
5841543bd9
FIX: validator 2025-07-16 14:51:32 -07:00
Keegan George
5ae80645bb
Merge branch 'main' into default-llm-model 2025-07-16 12:07:10 -07:00
Keegan George
b675c4c39b
DEV: Remove custom prefix in specs 2025-07-16 11:39:55 -07:00
Keegan George
0fadf1da1a
DEV: update enumerator 2025-07-16 10:56:18 -07:00
Keegan George
c26d604072
FIX: dependency validator should depend on default LLM setting 2025-07-16 07:08:29 -07:00
Natalie Tay
ad6a8cb812
DEV: Switch translations out of structured output as it returns only a single value (#1503)
Since translations only require a single key back, there is little point in using structured output. This PR also includes some prompt updates dealing with quotes, details, and code.

Related: #1502

This does mean reverting discourse/discourse-translator#257, but we can see how it goes.
2025-07-16 13:38:00 +08:00
Keegan George
7ae61ce877
DEV: update automation to remove custom: prefix 2025-07-15 18:08:41 -07:00
Keegan George
f593ab6e1e
DEV: remove custom: prefix
and update migrations for translations
2025-07-15 18:07:05 -07:00
Keegan George
b58f198ee8
FIX: don't run_test in testing env 2025-07-15 11:08:39 -07:00
Roman Rizzi
06743d1939
FIX: Fix embeddings to use the old OpenAI tokenizer (#1506) 2025-07-15 14:44:11 -03:00
Keegan George
88811f97bf
fixes 2025-07-15 10:23:58 -07:00
Keegan George
2377b286dd
DEV: rely on default llm model in spec 2025-07-15 09:56:24 -07:00
Kris
67664029e5
FIX: prevent crash in "all" filter on features page (#1505)
* FIX: prevent crash in "all" filter on features page

* simplify
2025-07-15 12:51:46 -04:00
Sam
1b16fc876c
FIX: avoid using structured outputs for report runs (#1502)
Structured outputs are prone to formatting issue, especially around newlines
and custom pieces of text that need escaping.

This avoids using it for the automation reporting.

Particularly previous to this fix o4-mini based reports were broken
2025-07-15 13:14:52 +10:00
Discourse Translator Bot
8c069490f0
Update translations (#1498) 2025-07-15 07:28:15 +10:00
Roman Rizzi
6a4dbd8126
FEATURE: Use Personas in Automation's llm_report script (#1499) 2025-07-14 12:47:21 -03:00
Keegan George
8da4318021
DEV: assign_fake_provider 2025-07-11 12:32:36 -07:00
Keegan George
b6a88ff03e
spec 2025-07-11 12:02:50 -07:00
Keegan George
f366ded03b
DEV: Force default to be set if it was found not to be set! 2025-07-11 08:19:30 -07:00
Keegan George
87c42145d4
DEV: hide hyde model setting 2025-07-10 15:07:12 -07:00
Keegan George
c49f1df2ba
DEV: migrate hyde model to content creator persona 2025-07-10 15:00:34 -07:00
Keegan George
b46940fc66
DEV: hide reset button
It resets it to default before the migration
2025-07-10 14:46:02 -07:00
Keegan George
249aab100c
DEV: Use a simple validator
- no need for seeding checks or module dependant checks
2025-07-10 14:44:02 -07:00
Roman Rizzi
89bcf9b1f0
FIX: Process succesfully generated embeddings even if some failed (#1500) 2025-07-10 17:51:01 -03:00
Keegan George
5a29074799
DEV: Use default LLM model 2025-07-10 11:54:35 -07:00
Martin Brennan
6b5ea38644
DEV: Improve AI bot conversation submit upload handling (#1497)
Try fix a flaky spec in /ai_bot/homepage_spec.rb by using ember
data rather than inspecting the DOM directly to see if there
are any in-progress uploads.

Also add missing translation for in progress uploads warning.
2025-07-10 17:06:39 +10:00
Keegan George
29d415755a
fix 2025-07-09 15:42:44 -07:00
Keegan George
5a590fddc1
DEV: updates... 2025-07-09 15:36:34 -07:00
Keegan George
cad39c1aa4
DEV: client side 2025-07-09 15:29:50 -07:00
Keegan George
2592be65ff
FEATURE: configure a default LLM model for all features
This update adds a setting to the configure a default LLM model to be used for all features (unless overridden).
2025-07-09 15:29:24 -07:00
Natalie Tay
d54cd1f602
DEV: Normalize locales that are similar (e.g. en and en_GB) so they do not get translated (#1495)
This commit
- normalizes locales like en_GB and variants to en. With this, the feature will not translate en_GB posts to en (or similarly pt_BR to pt_PT)
- consolidates whether the feature is enabled in `DiscourseAi::Translation.enabled?`
- similarly for backfill in  `DiscourseAi::Translation.backfill_enabled?`
  - turns off backfill if `ai_translation_backfill_max_age_days` is 0 to keep true to what it says. Set it to a high number to backfill everything
2025-07-09 22:21:51 +08:00
Keegan George
cf7288e1bf
DEV: Surface topic_id in errors of summarization backfill (#1493)
This update ensures that the `topic_id` related to the error when summarizing is surfaced in the logs, which should help track down the reason for the errors.
2025-07-09 06:39:36 -07:00
Discourse Translator Bot
027d7f1199
Update translations (#1492) 2025-07-09 15:27:19 +02:00
Keegan George
625442af3c
FIX: title suggestions should return 5 unique titles (#1491)
This update fixes a regression from https://github.com/discourse/discourse-ai/pull/1484, which caused AI helper title suggestions to begin suggesting numerous non-unique titles because it was looping through structured responses incorrectly.
2025-07-08 06:30:09 -07:00
Natalie Tay
699ea3f501
DEV: Add backtrace to logs (#1489) 2025-07-08 10:39:43 +08:00
Natalie Tay
56f025cf44
FIX: Localize description excerpts as they have limits (#1490) 2025-07-08 10:36:41 +08:00
Rafael dos Santos Silva
7357280e88
FEATURE: Add old OpenAI tokenizer to embeddings (#1487) 2025-07-07 15:07:27 -03:00