Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 76 additions & 0 deletions code-studio/how-to-guides/add-local-model.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
---
title: How to Add Personal Models
description: Learn how to add and manage your own AI models in Code Studio using API keys from providers like OpenAI and Anthropic.
platform: syncfusion-code-studio
keywords: how-to, BYOK, personal-models, API-keys
---

# Add Models for Personal Use

## Overview

Personal models in Code Studio allow you to integrate AI models from various providers using your own API keys. This feature gives you access to specific models that may not be available in your organization's configuration. You can add, manage, and use these models alongside your organization's models for enhanced flexibility and experimentation.

## When to Use

Use personal models when you need to:

- Experiment with specific models for personal projects
- Access models when they are not available in your organization’s configuration
- Compare different providers and model capabilities
- Match models to unique coding or cost requirements

## Prerequisites

- Valid API keys from your chosen provider (e.g., OpenAI, Anthropic)
- Active provider account with sufficient credits or quota

## How To Add a Personal Model?

1. Click the model’s section dropdown and select `Manage Models`.

<img src="how-to-guides-images/manageModels.png" alt="Manage Models">

2. Choose your preferred Provider (e.g., OpenAI, Anthropic).

<img src="how-to-guides-images/selectProvider.png" alt="Select Providers">

3. Enter your API Key for the selected provider.

<img src="how-to-guides-images/apiKey.png" alt="API Key">

> Note: Ensure the API key is valid and correct.

4. After adding the key, available models will be listed. Choose the models you want from the list.

<img src="how-to-guides-images/modelList.png" alt="Models">

5. Click `OK` to add the selected model(s).

<img src="how-to-guides-images/clickOk.png" alt="Choose Model">

6. The added models appear under `Other Models`. You can use them like any built‑in or organization‑configured model.

<img src="how-to-guides-images/otherModels.png" alt="Other Model">

## How To Remove a Personal Model?

1. Open `Manage Models` from the model’s dropdown section.

<img src="how-to-guides-images/manageModels.png" alt="Manage Models">

2. Select the Provider (e.g., OpenAI, Anthropic).

<img src="how-to-guides-images/selectProvider.png" alt="Select Providers">

3. Uncheck the model you want to remove and click `OK`.

<img src="how-to-guides-images/modelList.png" alt="Remove Model">

## Tips

- Use separate API keys for personal and organizational work
- Prefer lightweight models for small tasks to manage costs
- Keep API keys secure and never commit them to repositories
- Test models on small tasks first to understand behavior
- Remove unused models to keep the workspace organized
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
107 changes: 107 additions & 0 deletions code-studio/tutorials/build-ui-using-syncfusionui-builder.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
---
title: Build UI using Syncfusion UI Builder
description: Step-by-step tutorial to build a customer dashboard in React using Syncfusion UI Builder in Code Studio. Includes data grid, charts, and export features.
platform: syncfusion-code-studio
keywords: tutorial, ui-builder, syncfusion-components, dashboard, data-grid, charts
---

# Build UI Using Syncfusion UI Builder

## Overview

Build a complete customer dashboard using Syncfusion UI Builder in Code Studio. You will scaffold a React app, generate a data grid and charts, wire up export actions, and validate the final result.

## Prerequisites

- Syncfusion Code Studio installed and configured (Follow the [Install and Configure](/code-studio/getting-started/install-and-configuration) guide if not yet installed)
- Ensure UI Builder tool enabled
- [Node.js](https://nodejs.org/en/download) and npm installed
- [Syncfusion license key](https://help.syncfusion.com/common/essential-studio/licensing/how-to-generate)

## What You’ll Learn

- Generate a dashboard UI with data grid, charts, and export actions
- Write effective UI Builder requests to create full features
- Customize generated Syncfusion components
- Configure Syncfusion licensing and theme assets
- Validate functionality and troubleshoot common issues

## Steps

### Step 1: Create and Open the React Project

1. Create a new React app and open it in Code Studio:
```bash
npm create vite@latest customer-dashboard -- --template react
cd customer-dashboard
```
2. Open the project folder in Code Studio.
3. Verify the UI Builder tool is enabled:
- Open the Configure Tools panel in Code Studio
- Ensure the UI Builder tool is enabled.
<img src="tutorials-images/tool.png" alt="UI Builder Tool" />
<img src="tutorials-images/toolenable.png" alt="UI Builder Tool Enable" />

### Step 2: Generate the Dashboard with UI Builder

1. In Code Studio, make a comprehensive UI Builder request to create the full dashboard:

Create a customer dashboard for React using Syncfusion components with data grid, charts, and export functionality.

2. Code Studio will generate the components (data grid, charts) and wire up basic layout and interactions.
<img src="tutorials-images/context.png" alt="UI Builder Context" />

### Step 3: Configure Syncfusion License and Theme

1. Ensure required Syncfusion packages are installed. Code Studio typically installs dependencies automatically when generating components.
2. [Register](https://help.syncfusion.com/common/essential-studio/licensing/how-to-register-in-an-application#reactjs) your Syncfusion license key in your app entry (for example, in index.js):
```javascript
import { registerLicense } from '@syncfusion/ej2-base';
registerLicense('YOUR_LICENSE_KEY');
```
3. Confirm that a Syncfusion theme CSS import is present in your entry styles.

### Step 4: Run and Inspect

1. Start the development server and open the app in the browser:
```bash
npm run dev
```
2. Confirm all components render without errors and the layout is responsive.

### Step 5: Customize (Optional)

- Adjust grid columns, sorting, filtering, and pagination settings
- Update chart types, series, and data sources
- Add toolbar items such as Excel/PDF export and wire them to handlers
- Replace sample data with API-backed data as needed

## Verify

Expected result:

<img src="tutorials-images/customer-dashboard-output.png" alt="Customer Dashboard Output" />

Validate the following:

- Data Grid
- Columns support sorting and filtering
- Pagination works and data renders correctly
- Charts
- Sales by Region (bar) and Customer Growth (line) show expected values
- Tooltips and interactions work; layout is responsive
- Export
- Grid exports to Excel and PDF successfully
- Exported files contain correct data and formatting
- Integration
- No runtime errors; acceptable load and render performance
- License key is registered and no license popups appear

If something fails:
- Ensure all Syncfusion packages and peer dependencies are installed
- Verify theme CSS imports
- Check data shapes against component requirements

## Next Steps

- [Configure the default model](/code-studio/how-to-guides/Configure-default-model) to use the UI Builder tool effectively.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.