ProjectAlita / projectalita.github.io

Langing
GNU Affero General Public License v3.0
1 stars 1 forks source link

[BUG]The JSON entry field vanishes when the user attempts to paste JSON while setting up a Custom Agent Toolkit. #588

Open liana-gif opened 1 day ago

liana-gif commented 1 day ago

Steps to Reproduce:

  1. Navigate to the interface for creating a Custom Agent Toolkit.
  2. Locate the field designated for JSON input.
  3. Copy JSON content intended for use in the toolkit.
  4. Attempt to paste the copied JSON content into the JSON field.
  5. Observe that the JSON input field disappears upon paste action.

Expected Result: The JSON content should be pasted into the input field without any issues, and the field should remain visible and accessible for the user to continue the creation process.

Actual Result: The JSON input field vanishes the moment a user attempts to paste JSON content, preventing the user from proceeding with the toolkit creation.

See attached demo

HawkQing1 commented 1 day ago

@liana-gif could you please provide the json content used for this test?

liana-gif commented 17 hours ago

@HawkQing1 here is json { "tools": [ { "name": "Custom Language Translator", "description": "A tool to translate text from one language to another using a predefined set of language pairs", "settings": { "sourceLanguage": "en", "targetLanguage": "es", "autoDetectSource": false, "translationAccuracy": "high" }, "type": "custom" } ] }

HawkQing1 commented 16 hours ago

@liana-gif, you used a wrong json that caused empty page, the correct json should be like this { "name": "Custom tool", "description": "", "settings": {}, "type": "custom" }

HawkQing1 commented 14 hours ago

@liana-gif it's fixed, please verify it on main.