Skip to content

Commit

Permalink
fix(frontend): use DEPLOYMENT_SINGLE_CONTAINER default
Browse files Browse the repository at this point in the history
  • Loading branch information
knajjars committed Jun 27, 2024
1 parent 6113e65 commit 194ad97
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React, { useContext, useState } from 'react';

import { AgentForm, AgentFormFieldKeys, AgentFormFields } from '@/components/Agents/AgentForm';
import { Button, Text } from '@/components/Shared';
import { DEFAULT_AGENT_MODEL, DEPLOYMENT_COHERE_PLATFORM } from '@/constants';
import { DEFAULT_AGENT_MODEL, DEPLOYMENT_SINGLE_CONTAINER } from '@/constants';
import { ModalContext } from '@/context/ModalContext';
import { useCreateAgent, useIsAgentNameUnique, useRecentAgents } from '@/hooks/agents';
import { useNotify } from '@/hooks/toast';
Expand All @@ -23,7 +23,7 @@ export const CreateAgentForm: React.FC = () => {
name: '',
description: '',
preamble: '',
deployment: DEPLOYMENT_COHERE_PLATFORM,
deployment: DEPLOYMENT_SINGLE_CONTAINER,
model: DEFAULT_AGENT_MODEL,
tools: [],
});
Expand Down Expand Up @@ -77,13 +77,13 @@ export const CreateAgentForm: React.FC = () => {
name: '',
description: '',
preamble: '',
deployment: '',
model: '',
deployment: DEPLOYMENT_SINGLE_CONTAINER,
model: DEFAULT_AGENT_MODEL,
tools: [],
});
close();
setIsSubmitting(false);
router.push(`/a/${agent.id}`, undefined, { shallow: true });
router.push(`/agents/${agent.id}`, undefined, { shallow: true });
} catch (e) {
setIsSubmitting(false);
close();
Expand Down
1 change: 1 addition & 0 deletions src/interfaces/coral_web/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export const DEFAULT_CONVERSATION_NAME = 'New Conversation';
export const DEFAULT_TYPING_VELOCITY = 35;

export const DEPLOYMENT_COHERE_PLATFORM = 'Cohere Platform';
export const DEPLOYMENT_SINGLE_CONTAINER = 'Single Container';
export const DEFAULT_AGENT_MODEL = 'command-r-plus';

export const ACCEPTED_FILE_TYPES: FileAccept[] = [
Expand Down

0 comments on commit 194ad97

Please sign in to comment.