Spaces:
Paused
Paused
feat(tools): add description on what function name is
Browse files
src/routes/tools/ToolEdit.svelte
CHANGED
|
@@ -15,6 +15,8 @@
|
|
| 15 |
import { base } from "$app/paths";
|
| 16 |
import ToolInputComponent from "./ToolInputComponent.svelte";
|
| 17 |
|
|
|
|
|
|
|
| 18 |
type ActionData = {
|
| 19 |
error?: boolean;
|
| 20 |
errors?: {
|
|
@@ -334,7 +336,20 @@
|
|
| 334 |
>
|
| 335 |
|
| 336 |
<label class="ml-auto">
|
| 337 |
-
<span
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 338 |
<input
|
| 339 |
class="h-fit rounded-lg border-2 border-gray-200 bg-gray-100 p-1"
|
| 340 |
type="text"
|
|
|
|
| 15 |
import { base } from "$app/paths";
|
| 16 |
import ToolInputComponent from "./ToolInputComponent.svelte";
|
| 17 |
|
| 18 |
+
import CarbonInformation from "~icons/carbon/information";
|
| 19 |
+
|
| 20 |
type ActionData = {
|
| 21 |
error?: boolean;
|
| 22 |
errors?: {
|
|
|
|
| 336 |
>
|
| 337 |
|
| 338 |
<label class="ml-auto">
|
| 339 |
+
<span
|
| 340 |
+
class="group relative flex w-max items-center justify-center text-sm font-semibold text-gray-700"
|
| 341 |
+
>
|
| 342 |
+
AI Function Name
|
| 343 |
+
<CarbonInformation class="m-1 align-middle text-xs text-purple-500" />
|
| 344 |
+
<div
|
| 345 |
+
class="pointer-events-none absolute -top-16 right-0 w-max rounded-md bg-gray-100 p-2 opacity-0 transition-opacity group-hover:opacity-100 dark:bg-gray-800"
|
| 346 |
+
>
|
| 347 |
+
<p class="max-w-sm text-sm font-normal text-gray-800 dark:text-gray-200">
|
| 348 |
+
This is the function name that will be used when prompting the model.
|
| 349 |
+
Make sure it describes your tool well, is short and unique.
|
| 350 |
+
</p>
|
| 351 |
+
</div>
|
| 352 |
+
</span>
|
| 353 |
<input
|
| 354 |
class="h-fit rounded-lg border-2 border-gray-200 bg-gray-100 p-1"
|
| 355 |
type="text"
|