Skip to content

Commit 9778e73

Browse files
committed
style(OptionHover.jsx): add descriptions for new types
feat(AgentSettings.jsx): change OptionHover type from 'temp' to 'func' and from 'temp' to 'skip'
1 parent 4353d42 commit 9778e73

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

client/src/components/Endpoints/Plugins/AgentSettings.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function Settings(props) {
7474
</label>
7575
<Switch id="functions-agent" checked={agent === 'functions'} onCheckedChange={onCheckedChangeAgent} disabled={readonly} className="mt-2 ml-4"/>
7676
</HoverCardTrigger>
77-
<OptionHover type="temp" side="right" />
77+
<OptionHover type="func" side="right" />
7878
</HoverCard>
7979
<HoverCard openDelay={500}>
8080
<HoverCardTrigger className='w-1/2 ml-[-60px]'>
@@ -86,7 +86,7 @@ function Settings(props) {
8686
</label>
8787
<Switch id="skip-completion" checked={skipCompletion === true} onCheckedChange={onCheckedChangeSkip} disabled={readonly} className="mt-2 ml-4"/>
8888
</HoverCardTrigger>
89-
<OptionHover type="temp" side="right" />
89+
<OptionHover type="skip" side="right" />
9090
</HoverCard>
9191
</div>
9292
</div>

client/src/components/Endpoints/Plugins/OptionHover.jsx

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import { HoverCardPortal, HoverCardContent } from '~/components';
22

33
const types = {
44
temp: 'Higher values = more random, while lower values = more focused and deterministic. We recommend altering this or Top P but not both.',
5+
func: 'Enable use of Plugins as OpenAI Functions',
6+
skip: 'Enable skipping the completion step, which reviews the final answer and generated steps',
57
max: "The max tokens to generate. The total length of input tokens and generated tokens is limited by the model's context length.",
68
topp: 'An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered. We recommend altering this or temperature but not both.',
79
freq: "Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.",

0 commit comments

Comments
 (0)