build(ui/create_key_button.tsx): support adding tags for cost tracking/routing when making key

This commit is contained in:
Krrish Dholakia 2024-11-23 15:08:39 +05:30
parent d81ae45827
commit 7ae5d51964

View file

@ -355,6 +355,15 @@ const CreateKey: React.FC<CreateKeyProps> = ({
placeholder="Enter metadata as JSON"
/>
</Form.Item>
<Form.Item label="Tags" name="tags" className="mt-8" help={`Tags for tracking spend and/or doing tag-based routing.`}>
<Select
mode="tags"
style={{ width: '100%' }}
placeholder="Enter tags"
tokenSeparators={[',']}
open={false}
/>
</Form.Item>
</AccordionBody>
</Accordion>
</>