Skip to content

Commit 77d4c1c

Browse files
committed
update faq items, disable temperature slider when readOnly
1 parent b127c8a commit 77d4c1c

File tree

2 files changed

+57
-5
lines changed

2 files changed

+57
-5
lines changed

src/components/marketing/faq.tsx

Lines changed: 56 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,16 @@ import {
77
AccordionTrigger,
88
} from '@/components/ui/accordion';
99
import posthog from 'posthog-js';
10+
import { ReactNode } from 'react';
1011

11-
const faqData = [
12+
type FaqItem = {
13+
value: string;
14+
trigger: string;
15+
content: ReactNode;
16+
jsonLdContent?: string;
17+
};
18+
19+
const faqData: FaqItem[] = [
1220
{
1321
value: 'prompt-cms',
1422
trigger: 'What is a Prompt CMS?',
@@ -19,7 +27,38 @@ const faqData = [
1927
value: 'improve-ai-development',
2028
trigger: 'How does Agentsmith improve my AI agent development process?',
2129
content:
22-
'Agentsmith streamlines AI agent development with intuitive prompt authoring for all skill levels, robust testing capabilities, seamless Git integration for version control, and typesafe SDKs (TypeScript & Python). This means you can build, refine, and deploy more reliable AI agents, faster.',
30+
'Agentsmith streamlines AI agent development by providing a centralized platform for managing prompts, testing, and versioning. It allows you to refine your prompts and then safely hand them off to your engineering team to integrate into the codebase.',
31+
},
32+
{
33+
value: 'byok-llm-provider',
34+
trigger: 'Can I bring my own LLM provider keys?',
35+
content: (
36+
<>
37+
Yes you can! OpenRouter supports BYOK, read more here:{' '}
38+
<a
39+
href="https://openrouter.ai/docs/use-cases/byok"
40+
target="_blank"
41+
rel="noopener noreferrer"
42+
className="text-blue-600 hover:text-blue-800 underline"
43+
>
44+
https://openrouter.ai/docs/use-cases/byok
45+
</a>
46+
</>
47+
),
48+
jsonLdContent:
49+
'Yes you can! OpenRouter supports BYOK, read more here: https://openrouter.ai/docs/use-cases/byok',
50+
},
51+
{
52+
value: 'execute-prompts',
53+
trigger: 'Do I have to use Agentsmith to execute my prompts?',
54+
content:
55+
'Nope! You can use Agentsmith to just organize and compile your prompts. Once the prompts are compiled you have just a string or a messages array to pass along to whatever setup you have.',
56+
},
57+
{
58+
value: 'use-openrouter',
59+
trigger: 'Do I have to use OpenRouter?',
60+
content:
61+
'OpenRouter is required to use the Agentsmith Studio as it executes prompts for testing and evaluating. You do not have to use OpenRouter in your codebase, you can use Agentsmith to only compile your prompts and then you can decide what to do.',
2362
},
2463
{
2564
value: 'user-friendliness',
@@ -54,7 +93,20 @@ const faqData = [
5493
{
5594
value: 'support-options',
5695
trigger: 'How do I get support?',
57-
content:
96+
content: (
97+
<>
98+
Send an email to{' '}
99+
<a
100+
href="mailto:support@agentsmith.dev"
101+
className="text-blue-600 hover:text-blue-800 underline"
102+
>
103+
support@agentsmith.dev
104+
</a>
105+
. All users, including those on the Community plan, can access community support through our
106+
GitHub repository and participate in discussions.
107+
</>
108+
),
109+
jsonLdContent:
58110
'Send an email to support@agentsmith.dev. All users, including those on the Community plan, can access community support through our GitHub repository and participate in discussions.',
59111
},
60112
];
@@ -74,7 +126,7 @@ export const FAQSection = () => {
74126
name: item.trigger,
75127
acceptedAnswer: {
76128
'@type': 'Answer',
77-
text: item.content,
129+
text: item.jsonLdContent || (typeof item.content === 'string' ? item.content : ''),
78130
},
79131
})),
80132
};

src/components/prompt-editor/prompt-config-editor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export const PromptConfigEditor = (props: PromptConfigEditorProps) => {
7070
Temperature
7171
</Label>
7272
<Slider
73-
disabled={!temperatureEnabled}
73+
disabled={!temperatureEnabled || readOnly}
7474
min={0}
7575
max={2}
7676
step={0.01}

0 commit comments

Comments
 (0)