Closed Bug 1905898 Opened 1 year ago Closed 1 year ago

ChatGPT, HuggingChat and LeChat Mistral AI's are returning server Errors for trying to analyze large pieces of Text

Categories

(Core :: Machine Learning: General, defect, P1)

Desktop
Unspecified
defect
Points:
2

Tracking

()

VERIFIED FIXED
133 Branch
Tracking Status
firefox-esr128 --- disabled
firefox127 --- disabled
firefox128 --- disabled
firefox129 --- disabled
firefox131 --- disabled
firefox132 --- disabled
firefox133 --- verified

People

(Reporter: rdoghi, Assigned: Mardak)

References

(Blocks 1 open bug)

Details

(Whiteboard: [genai])

Attachments

(4 files)

Attached image HuggingError.png

Found in

  • Nightly 129.0a1

Affected versions

  • Nightly 129.0a1 (2024-07-02)

Affected platforms

  • All

Steps to reproduce

  1. Reach about:preferences#experimental page.
  2. Enable the AI Chat integration.
  3. Select the HuggingChat AI provider.
  4. Reach the following page: https://mistral.ai/terms/#terms-of-service-le-chat
  5. Analyze a large piece of text.
  6. Change the AI provider to leChat Mistral AI.
  7. Analyze the same piece of text.

Expected result

  • Either a Normal Error should be displayed for the users that exceeded the maximum number of character allowed to be analyzed in one go, or the Text should be analyzed by the AI engine.

Actual result

  • The AI chat panel returns an invalid Error response.
    The Ai panel returns a Bad Request error.
    The ChatGPT and Gemini have no problems analyzing the same exact piece of text.

Regression range
Not a regression.

Attached image LargeText.png
See Also: → 1903900

Did the fix from bug 1903900 avoid server error with huggingchat but still there for lechat?

This same issue probably results in chatgpt showing a blank page with a server error since bug 1903900

Blocks: 1911129
Whiteboard: [genai]
Points: --- → 1
Priority: -- → P1

bug 1903900 should have fixed this for huggingchat

Summary: HuggingChat and LeChat Mistral AI's are returning server Errors for trying to analyze large pieces of Text → ChatGPT and LeChat Mistral AI's are returning server Errors for trying to analyze large pieces of Text
Duplicate of this bug: 1916621
Attached image 2024-10-11_13h20_23.png

The issue still occurs for hugging chat in our latest Nightly 133.0a1 (2024-10-10)

Summary: ChatGPT and LeChat Mistral AI's are returning server Errors for trying to analyze large pieces of Text → ChatGPT, HuggingChat and LeChat Mistral AI's are returning server Errors for trying to analyze large pieces of Text

Refactor length calculation with even more conservative adjustment as prefs. Point to copilot instead of bing but still hidden.

Assignee: nobody → edilee
Status: NEW → ASSIGNED
Pushed by elee@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c34e681369be ChatGPT, HuggingChat and LeChat Mistral AI's are returning server Errors for trying to analyze large pieces of Text r=ngrato
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 133 Branch

Verified as fixed in our latest Nightly build 133.0a1 (2024-10-20)

The patch landed in nightly and beta is affected.
:Mardak, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox132 to wontfix.

For more information, please visit BugBot documentation.

Flags: needinfo?(edilee)

Updating the main status flag.

Status: RESOLVED → VERIFIED
Points: 1 → 2
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: