feat(frontend): add support for agent selection in GPT plugins in adding functions agent

Add support for selecting an agent in the GPT plugins endpoint. The agent can be selected from a dropdown menu in the AgentSettings component. The default agent is set to 'classic' in the cleanupPreset, getDefaultConversation, and handleSubmit functions.
This commit is contained in:
Daniel Avila 2023-06-13 23:40:25 -04:00 committed by Danny Avila
parent 3caddd6854
commit 198f60c536
7 changed files with 131 additions and 16 deletions

View file

@ -187,6 +187,7 @@ function PluginsOptions() {
<div className="px-4 py-4">
{showAgentSettings ? (
<AgentSettings
agent={agentOptions.agent}
model={agentOptions.model}
endpoint={agentOptions.endpoint}
temperature={agentOptions.temperature}