Skip to content

Commit 0ad2df0

Browse files
committed
fix copy scripts
1 parent 023599a commit 0ad2df0

File tree

3 files changed

+27
-23
lines changed

3 files changed

+27
-23
lines changed

MyApp/_posts/2024-11-28_ai-server.md

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -61,18 +61,16 @@ AI Server's APIs, which can be optionally further restricted to only
6161

6262
AI Server can be installed on macOS and Linux with Docker by running [install.sh](https://github.com/ServiceStack/ai-server/blob/main/install.sh):
6363

64-
### 1. Clone the Repository
65-
66-
Clone the AI Server repository from GitHub:
64+
1. Clone the AI Server repository from GitHub:
6765

6866
:::sh
69-
git clone https://github.com/ServiceStack/ai-server
67+
`git clone https://github.com/ServiceStack/ai-server`
7068
:::
7169

72-
### 2. Run the Installer
70+
2. Run the Installer
7371

7472
:::sh
75-
cd ai-server && cat install.sh | bash
73+
`cd ai-server && cat install.sh | bash`
7674
:::
7775

7876
The installer will detect common environment variables for the supported AI Providers like OpenAI, Google, Anthropic,
@@ -106,11 +104,17 @@ AI Server's [Image](https://docs.servicestack.net/ai-server/transform/image) and
106104
To install the ComfyUI Agent on a separate server (with a GPU), you can clone and run the ComfyUI Agent installer
107105
on that server instead:
108106

109-
```sh
110-
git clone https://github.com/ServiceStack/agent-comfy.git
111-
cd agent-comfy
112-
cat install.sh | bash
113-
```
107+
1. Clone the Comfy Agent
108+
109+
:::sh
110+
`git clone https://github.com/ServiceStack/agent-comfy.git`
111+
:::
112+
113+
2. Run the Installer
114+
115+
:::sh
116+
`cd agent-comfy && cat install.sh | bash`
117+
:::
114118

115119
## Running in Production
116120

MyApp/_posts/2024-12-03_typed-openai-chat-ollama-apis.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Install the `ServiceStack.Client` NuGet package:
3838
Download AI Server's C# DTOs with [x dotnet tool](https://docs.servicestack.net/dotnet-tool):
3939

4040
:::copy
41-
x csharp https://openai.servicestack.net
41+
`x csharp https://openai.servicestack.net`
4242
:::
4343

4444
Call API by sending `OpenAiChatCompletion` Request DTO with `JsonApiClient`:
@@ -69,7 +69,7 @@ npm install @servicestack/client
6969
Download AI Server's TypeScript DTOs:
7070

7171
:::copy
72-
npx get-dtos typescript https://openai.servicestack.net
72+
`npx get-dtos typescript https://openai.servicestack.net`
7373
:::
7474

7575
Call API by sending `OpenAiChatCompletion` Request DTO with JsonServiceClient:
@@ -110,7 +110,7 @@ Define an Import Map referencing its saved location
110110
Download AI Server's ESM JavaScript DTOs:
111111

112112
:::copy
113-
npx get-dtos mjs https://openai.servicestack.net
113+
`npx get-dtos mjs https://openai.servicestack.net`
114114
:::
115115

116116
Call API by sending `OpenAiChatCompletion` Request DTO with JsonServiceClient:
@@ -143,7 +143,7 @@ pip install servicestack
143143
Download AI Server's Python DTOs:
144144

145145
:::copy
146-
npx get-dtos python https://openai.servicestack.net
146+
`npx get-dtos python https://openai.servicestack.net`
147147
:::
148148

149149
Call API by sending `OpenAiChatCompletion` Request DTO with JsonServiceClient:
@@ -174,7 +174,7 @@ servicestack: ^3.0.1
174174
Download AI Server's Dart DTOs:
175175

176176
:::copy
177-
npx get-dtos dart https://openai.servicestack.net
177+
`npx get-dtos dart https://openai.servicestack.net`
178178
:::
179179

180180
Call API by sending `OpenAiChatCompletion` Request DTO with JsonServiceClient:
@@ -208,7 +208,7 @@ Include `servicestack/client` package in your projects `composer.json`:
208208
Download AI Server's PHP DTOs:
209209

210210
:::copy
211-
npx get-dtos php https://openai.servicestack.net
211+
`npx get-dtos php https://openai.servicestack.net`
212212
:::
213213

214214
Call API by sending `OpenAiChatCompletion` Request DTO with JsonServiceClient:
@@ -246,7 +246,7 @@ implementation 'net.servicestack:client:1.1.3'
246246
Download AI Server's Java DTOs:
247247

248248
:::copy
249-
npx get-dtos java https://openai.servicestack.net
249+
`npx get-dtos java https://openai.servicestack.net`
250250
:::
251251

252252
Call API by sending `OpenAiChatCompletion` Request DTO with JsonServiceClient:
@@ -279,7 +279,7 @@ implementation 'net.servicestack:client:1.1.3'
279279
Download AI Server's Kotlin DTOs:
280280

281281
:::copy
282-
npx get-dtos kotlin https://openai.servicestack.net
282+
`npx get-dtos kotlin https://openai.servicestack.net`
283283
:::
284284

285285
Call API by sending `OpenAiChatCompletion` Request DTO with JsonServiceClient:
@@ -316,7 +316,7 @@ dependencies: [
316316
Download AI Server's Swift DTOs:
317317

318318
:::copy
319-
npx get-dtos swift https://openai.servicestack.net
319+
`npx get-dtos swift https://openai.servicestack.net`
320320
:::
321321

322322
Call API by sending `OpenAiChatCompletion` Request DTO with JsonServiceClient:
@@ -350,7 +350,7 @@ Install the `ServiceStack.Client` NuGet package:
350350
Download AI Server's F# DTOs with [x dotnet tool](https://docs.servicestack.net/dotnet-tool):
351351

352352
:::copy
353-
x fsharp https://openai.servicestack.net
353+
`x fsharp https://openai.servicestack.net`
354354
:::
355355

356356
Call API by sending `OpenAiChatCompletion` Request DTO with `JsonApiClient`:
@@ -384,7 +384,7 @@ Install the `ServiceStack.Client` NuGet package:
384384
Download AI Server's VB.NET DTOs with [x dotnet tool](https://docs.servicestack.net/dotnet-tool):
385385

386386
:::copy
387-
x vbnet https://openai.servicestack.net
387+
`x vbnet https://openai.servicestack.net`
388388
:::
389389

390390
Call API by sending `OpenAiChatCompletion` Request DTO with `JsonApiClient`:

MyApp/_posts/2024-12-04_swift6-upgrade.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ dependencies: [
7373
Download AI Server's Swift DTOs:
7474

7575
:::copy
76-
npx get-dtos swift https://openai.servicestack.net
76+
`npx get-dtos swift https://openai.servicestack.net`
7777
:::
7878

7979
You'll then be able to call Ollama by sending the OpenAI Chat compatible `OpenAiChatCompletion`

0 commit comments

Comments
 (0)