Skip to content

Commit aab5211

Browse files
Merge pull request #6144 from syncfusion-content/957498-SmartComponents
957498: Removed auto rendermode related content.
2 parents 8774c25 + ef4db24 commit aab5211

File tree

4 files changed

+69
-31
lines changed

4 files changed

+69
-31
lines changed

blazor/smart-paste/getting-started-webapp.md

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ For example, in a Blazor Web App with the `Auto` interactive render mode, use th
7070
{% tabs %}
7171
{% highlight c# tabtitle="Blazor Web App" %}
7272

73-
dotnet new blazor -o BlazorWebApp -int Auto
73+
dotnet new blazor -o BlazorWebApp -int Server
7474
cd BlazorWebApp
7575
cd BlazorWebApp.Client
7676

@@ -81,7 +81,7 @@ N> For more information on creating a **Blazor Web App** with various interactiv
8181

8282
## Install Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor SmartComponents and Themes NuGet in the App
8383

84-
If you utilize `WebAssembly` or `Auto` render modes in the Blazor Web App need to be install Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor components NuGet packages within the client project.
84+
If you utilize `Server` render modes in the Blazor Web App need to be install Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor components NuGet packages within the server project.
8585

8686
* Press <kbd>Ctrl</kbd>+<kbd>`</kbd> to open the integrated terminal in Visual Studio Code.
8787
* Ensure you’re in the project root directory where your `.csproj` file is located.
@@ -109,7 +109,6 @@ N> Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor components are availa
109109

110110
| Interactive Render Mode | Description |
111111
| -- | -- |
112-
| WebAssembly or Auto | Open **~/_Imports.razor** file from the client project.|
113112
| Server | Open **~/_import.razor** file, which is located in the `Components` folder.|
114113

115114
Import the `Syncfusion.Blazor` and `Syncfusion.Blazor.SmartComponents` namespace .
@@ -123,10 +122,6 @@ Import the `Syncfusion.Blazor` and `Syncfusion.Blazor.SmartComponents` namespace
123122
{% endhighlight %}
124123
{% endtabs %}
125124

126-
Now, register the Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor Service in the **~/Program.cs** file of your Blazor Web App.
127-
128-
If the **Interactive Render Mode** is set to `WebAssembly` or `Auto`, you need to register the Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor service in both **~/Program.cs** files of your Blazor Web App.
129-
130125
If the **Interactive Render Mode** is set to `Server`, your project will contain a single **~/Program.cs** file. So, you should register the Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor Service only in that **~/Program.cs** file.
131126

132127
{% tabs %}
@@ -166,7 +161,7 @@ builder.Services.AddSyncfusionBlazor();
166161

167162
string apiKey = "api-key";
168163
string deploymentName = "deployment-name";
169-
string endpoint = "end point url";
164+
string endpoint = "end point url";// Must be null for OpenAI
170165

171166
builder.Services.AddSyncfusionSmartComponents()
172167
.ConfigureCredentials(new AIServiceCredentials(apiKey, deploymentName, endpoint))
@@ -190,9 +185,21 @@ N> From version 28.2.33, the Azure.AI.OpenAI package has been removed from the S
190185

191186
If you are using **OpenAI**, [create an API key](https://help.openai.com/en/articles/4936850-where-do-i-find-my-openai-api-key) and place it at `apiKey`, leave the `endpoint` as `""`. The value for `deploymentName` is the [model](https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models) you wish to use (e.g., `gpt-3.5-turbo`, `gpt-4`, etc.).
192187

193-
### Using Ollama
188+
### Configuring Ollama for Self-Hosted AI Models
189+
190+
To use Ollama for running self-hosted models:
191+
192+
1. **Download and install Ollama**
193+
Visit [Ollama's official website](https://ollama.com) and install the application appropriate for your operating system.
194+
195+
2. **Install the desired model from the Ollama library**
196+
You can browse and install models from the [Ollama Library](https://ollama.com/library) (e.g., `llama2:13b`, `mistral:7b`, etc.).
197+
198+
3. **Configure your application**
194199

195-
If you are using [Ollama](https://ollama.com/), set SelfHosted to true and provide the Endpoint URL where the model is hosted (e.g., http://localhost:11434). The value for DeploymentName should be the specific [model](https://ollama.com/library) you wish to use (e.g., `llama2:13b`, `mistral:7b`, etc.).
200+
- Set `SelfHosted` to `true`.
201+
- Provide the `Endpoint` URL where the model is hosted (e.g., `http://localhost:11434`).
202+
- Set `DeploymentName` to the specific model you installed (e.g., `llama2:13b`).
196203

197204
Add the following settings to the **~/Program.cs** file in your Blazor Server app.
198205

@@ -307,4 +314,4 @@ N> [View Sample in GitHub](https://github.com/syncfusion/smart-ai-samples).
307314

308315
## See also
309316

310-
* [Getting Started with Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor Smart Paste Button Blazor Server App](https://blazor.syncfusion.com/documentation/)
317+
* [Getting Started with Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor Smart Paste Button Blazor Server App](https://blazor.syncfusion.com/documentation/smart-paste/getting-started-webapp)

blazor/smart-paste/getting-started.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ builder.Services.AddSyncfusionBlazor();
145145

146146
string apiKey = "api-key";
147147
string deploymentName = "deployment-name";
148-
string endpoint = "end point url";
148+
string endpoint = "end point url";// Must be null for OpenAI
149149

150150
builder.Services.AddSyncfusionSmartComponents()
151151
.ConfigureCredentials(new AIServiceCredentials(apiKey, deploymentName, endpoint))
@@ -169,9 +169,21 @@ N> From version 28.2.33, the Azure.AI.OpenAI package has been removed from the S
169169

170170
If you are using **OpenAI**, create an API key and place it at `apiKey`, leave the `endpoint` as `""`. The value for `deploymentName` is the model you wish to use (e.g., `gpt-3.5-turbo`, `gpt-4`, etc.).
171171

172-
### Using Ollama
172+
### Configuring Ollama for Self-Hosted AI Models
173173

174-
If you are using [Ollama](https://ollama.com/), set SelfHosted to true and provide the Endpoint URL where the model is hosted (e.g., http://localhost:11434). The value for DeploymentName should be the specific [model](https://ollama.com/library) you wish to use (e.g., `llama2:13b`, `mistral:7b`, etc.).
174+
To use Ollama for running self-hosted models:
175+
176+
1. **Download and install Ollama**
177+
Visit [Ollama's official website](https://ollama.com) and install the application appropriate for your operating system.
178+
179+
2. **Install the desired model from the Ollama library**
180+
You can browse and install models from the [Ollama Library](https://ollama.com/library) (e.g., `llama2:13b`, `mistral:7b`, etc.).
181+
182+
3. **Configure your application**
183+
184+
- Set `SelfHosted` to `true`.
185+
- Provide the `Endpoint` URL where the model is hosted (e.g., `http://localhost:11434`).
186+
- Set `DeploymentName` to the specific model you installed (e.g., `llama2:13b`).
175187

176188
Add the following settings to the **~/Program.cs** file in your Blazor Server app.
177189

@@ -290,4 +302,4 @@ N> [View Sample in GitHub](https://github.com/syncfusion/smart-ai-samples).
290302

291303
## See also
292304

293-
* [Getting Started with Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor Smart Paste Button Blazor Web App](https://blazor.syncfusion.com/documentation/)
305+
* [Getting Started with Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor Smart Paste Button Blazor Web App](https://blazor.syncfusion.com/documentation/smart-paste/getting-started)

blazor/smart-textarea/getting-started-webapp.md

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,12 @@ You can create a **Blazor Web App** using Visual Studio Code via [Microsoft Temp
6666

6767
You need to configure the corresponding [Interactive render mode](https://learn.microsoft.com/en-us/aspnet/core/blazor/components/render-modes?view=aspnetcore-8.0#render-modes) and [Interactivity location](https://learn.microsoft.com/en-us/aspnet/core/blazor/tooling?view=aspnetcore-8.0&pivots=vsc) while creating a Blazor Web Application.
6868

69-
For example, in a Blazor Web App with the `Auto` interactive render mode, use the following commands.
69+
For example, in a Blazor Web App with the `Server` interactive render mode, use the following commands.
7070

7171
{% tabs %}
7272
{% highlight c# tabtitle="Blazor Web App" %}
7373

74-
dotnet new blazor -o BlazorWebApp -int Auto
74+
dotnet new blazor -o BlazorWebApp -int Server
7575
cd BlazorWebApp
7676
cd BlazorWebApp.Client
7777

@@ -82,7 +82,7 @@ N> For more information on creating a **Blazor Web App** with various interactiv
8282

8383
## Install Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor SmartComponents and Themes NuGet in the App
8484

85-
If you utilize `WebAssembly` or `Auto` render modes in the Blazor Web App need to be install Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor components NuGet packages within the client project.
85+
If you utilize `Server` render modes in the Blazor Web App need to be install Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor components NuGet packages within the server project.
8686

8787
* Press <kbd>Ctrl</kbd>+<kbd>`</kbd> to open the integrated terminal in Visual Studio Code.
8888
* Ensure you’re in the project root directory where your `.csproj` file is located.
@@ -110,7 +110,6 @@ N> Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor components are availa
110110

111111
| Interactive Render Mode | Description |
112112
| -- | -- |
113-
| WebAssembly or Auto | Open **~/_Imports.razor** file from the client project.|
114113
| Server | Open **~/_import.razor** file, which is located in the `Components` folder.|
115114

116115
Import the `Syncfusion.Blazor` and `Syncfusion.Blazor.SmartComponents` namespace.
@@ -124,10 +123,6 @@ Import the `Syncfusion.Blazor` and `Syncfusion.Blazor.SmartComponents` namespace
124123
{% endhighlight %}
125124
{% endtabs %}
126125

127-
Now, register the Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor Service in the **~/Program.cs** file of your Blazor Web App.
128-
129-
If the **Interactive Render Mode** is set to `WebAssembly` or `Auto`, you need to register the Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor service in both **~/Program.cs** files of your Blazor Web App.
130-
131126
If the **Interactive Render Mode** is set to `Server`, your project will contain a single **~/Program.cs** file. So, you should register the Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor Service only in that **~/Program.cs** file.
132127

133128
{% tabs %}
@@ -167,7 +162,7 @@ builder.Services.AddSyncfusionBlazor();
167162

168163
string apiKey = "api-key";
169164
string deploymentName = "deployment-name";
170-
string endpoint = "end point url";
165+
string endpoint = "end point url";// Must be null for OpenAI
171166

172167
builder.Services.AddSyncfusionSmartComponents()
173168
.ConfigureCredentials(new AIServiceCredentials(apiKey, deploymentName, endpoint))
@@ -191,9 +186,21 @@ N> From version 28.2.33, the Azure.AI.OpenAI package has been removed from the S
191186

192187
If you are using **OpenAI**, [create an API key](https://help.openai.com/en/articles/4936850-where-do-i-find-my-openai-api-key) and place it at `apiKey`, leave the `endpoint` as `""`. The value for `deploymentName` is the [model](https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models) you wish to use (e.g., `gpt-3.5-turbo`, `gpt-4`, etc.).
193188

194-
### Using Ollama
189+
### Configuring Ollama for Self-Hosted AI Models
190+
191+
To use Ollama for running self-hosted models:
192+
193+
1. **Download and install Ollama**
194+
Visit [Ollama's official website](https://ollama.com) and install the application appropriate for your operating system.
195+
196+
2. **Install the desired model from the Ollama library**
197+
You can browse and install models from the [Ollama Library](https://ollama.com/library) (e.g., `llama2:13b`, `mistral:7b`, etc.).
198+
199+
3. **Configure your application**
195200

196-
If you are using [Ollama](https://ollama.com/), set SelfHosted to true and provide the Endpoint URL where the model is hosted (e.g., http://localhost:11434). The value for DeploymentName should be the specific [model](https://ollama.com/library) you wish to use (e.g., `llama2:13b`, `mistral:7b`, etc.).
201+
- Set `SelfHosted` to `true`.
202+
- Provide the `Endpoint` URL where the model is hosted (e.g., `http://localhost:11434`).
203+
- Set `DeploymentName` to the specific model you installed (e.g., `llama2:13b`).
197204

198205
Add the following settings to the **~/Program.cs** file in your Blazor Server app.
199206

@@ -277,4 +284,4 @@ N> [View Sample in GitHub](https://github.com/syncfusion/smart-ai-samples).
277284

278285
## See also
279286

280-
* [Getting Started with Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor Smart TextArea in Blazor Server App](https://blazor.syncfusion.com/documentation/)
287+
* [Getting Started with Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor Smart TextArea in Blazor Server App](https://blazor.syncfusion.com/documentation/smart-textarea/getting-started-webapp)

blazor/smart-textarea/getting-started.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ builder.Services.AddSyncfusionBlazor();
145145

146146
string apiKey = "api-key";
147147
string deploymentName = "deployment-name";
148-
string endpoint = "end point url";
148+
string endpoint = "end point url";// Must be null for OpenAI
149149

150150
builder.Services.AddSyncfusionSmartComponents()
151151
.ConfigureCredentials(new AIServiceCredentials(apiKey, deploymentName, endpoint))
@@ -169,9 +169,21 @@ N> From version 28.2.33, the Azure.AI.OpenAI package has been removed from the S
169169

170170
If you are using **OpenAI**, create an API key and place it at `apiKey`, leave the `endpoint` as `""`. The value for `deploymentName` is the model you wish to use (e.g., `gpt-3.5-turbo`, `gpt-4`, etc.).
171171

172-
### Using Ollama
172+
### Configuring Ollama for Self-Hosted AI Models
173173

174-
If you are using [Ollama](https://ollama.com/), set SelfHosted to true and provide the Endpoint URL where the model is hosted (e.g., http://localhost:11434). The value for DeploymentName should be the specific [model](https://ollama.com/library) you wish to use (e.g., `llama2:13b`, `mistral:7b`, etc.).
174+
To use Ollama for running self-hosted models:
175+
176+
1. **Download and install Ollama**
177+
Visit [Ollama's official website](https://ollama.com) and install the application appropriate for your operating system.
178+
179+
2. **Install the desired model from the Ollama library**
180+
You can browse and install models from the [Ollama Library](https://ollama.com/library) (e.g., `llama2:13b`, `mistral:7b`, etc.).
181+
182+
3. **Configure your application**
183+
184+
- Set `SelfHosted` to `true`.
185+
- Provide the `Endpoint` URL where the model is hosted (e.g., `http://localhost:11434`).
186+
- Set `DeploymentName` to the specific model you installed (e.g., `llama2:13b`).
175187

176188
Add the following settings to the **~/Program.cs** file in your Blazor Server app.
177189

@@ -256,4 +268,4 @@ N> [View Sample in GitHub](https://github.com/syncfusion/smart-ai-samples).
256268

257269
## See also
258270

259-
* [Getting Started with Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor Smart TextArea in Blazor Web App](https://blazor.syncfusion.com/documentation/)
271+
* [Getting Started with Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor Smart TextArea in Blazor Web App](https://blazor.syncfusion.com/documentation/smart-textarea/getting-started)

0 commit comments

Comments
 (0)