From 0ad2df0cfbd3055ba156b099c0654024d16e788b Mon Sep 17 00:00:00 2001 From: Demis Bellot Date: Sat, 23 Nov 2024 15:23:54 +0800 Subject: [PATCH] fix copy scripts --- MyApp/_posts/2024-11-28_ai-server.md | 26 +++++++++++-------- ...024-12-03_typed-openai-chat-ollama-apis.md | 22 ++++++++-------- MyApp/_posts/2024-12-04_swift6-upgrade.md | 2 +- 3 files changed, 27 insertions(+), 23 deletions(-) diff --git a/MyApp/_posts/2024-11-28_ai-server.md b/MyApp/_posts/2024-11-28_ai-server.md index 39370af8..3f4638dd 100644 --- a/MyApp/_posts/2024-11-28_ai-server.md +++ b/MyApp/_posts/2024-11-28_ai-server.md @@ -61,18 +61,16 @@ AI Server's APIs, which can be optionally further restricted to only 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): -### 1. Clone the Repository - -Clone the AI Server repository from GitHub: +1. Clone the AI Server repository from GitHub: :::sh -git clone https://github.com/ServiceStack/ai-server +`git clone https://github.com/ServiceStack/ai-server` ::: -### 2. Run the Installer +2. Run the Installer :::sh -cd ai-server && cat install.sh | bash +`cd ai-server && cat install.sh | bash` ::: 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 To install the ComfyUI Agent on a separate server (with a GPU), you can clone and run the ComfyUI Agent installer on that server instead: -```sh -git clone https://github.com/ServiceStack/agent-comfy.git -cd agent-comfy -cat install.sh | bash -``` +1. Clone the Comfy Agent + +:::sh +`git clone https://github.com/ServiceStack/agent-comfy.git` +::: + +2. Run the Installer + +:::sh +`cd agent-comfy && cat install.sh | bash` +::: ## Running in Production diff --git a/MyApp/_posts/2024-12-03_typed-openai-chat-ollama-apis.md b/MyApp/_posts/2024-12-03_typed-openai-chat-ollama-apis.md index e013e14a..0a649d6e 100644 --- a/MyApp/_posts/2024-12-03_typed-openai-chat-ollama-apis.md +++ b/MyApp/_posts/2024-12-03_typed-openai-chat-ollama-apis.md @@ -38,7 +38,7 @@ Install the `ServiceStack.Client` NuGet package: Download AI Server's C# DTOs with [x dotnet tool](https://docs.servicestack.net/dotnet-tool): :::copy -x csharp https://openai.servicestack.net +`x csharp https://openai.servicestack.net` ::: Call API by sending `OpenAiChatCompletion` Request DTO with `JsonApiClient`: @@ -69,7 +69,7 @@ npm install @servicestack/client Download AI Server's TypeScript DTOs: :::copy -npx get-dtos typescript https://openai.servicestack.net +`npx get-dtos typescript https://openai.servicestack.net` ::: Call API by sending `OpenAiChatCompletion` Request DTO with JsonServiceClient: @@ -110,7 +110,7 @@ Define an Import Map referencing its saved location Download AI Server's ESM JavaScript DTOs: :::copy -npx get-dtos mjs https://openai.servicestack.net +`npx get-dtos mjs https://openai.servicestack.net` ::: Call API by sending `OpenAiChatCompletion` Request DTO with JsonServiceClient: @@ -143,7 +143,7 @@ pip install servicestack Download AI Server's Python DTOs: :::copy -npx get-dtos python https://openai.servicestack.net +`npx get-dtos python https://openai.servicestack.net` ::: Call API by sending `OpenAiChatCompletion` Request DTO with JsonServiceClient: @@ -174,7 +174,7 @@ servicestack: ^3.0.1 Download AI Server's Dart DTOs: :::copy -npx get-dtos dart https://openai.servicestack.net +`npx get-dtos dart https://openai.servicestack.net` ::: Call API by sending `OpenAiChatCompletion` Request DTO with JsonServiceClient: @@ -208,7 +208,7 @@ Include `servicestack/client` package in your projects `composer.json`: Download AI Server's PHP DTOs: :::copy -npx get-dtos php https://openai.servicestack.net +`npx get-dtos php https://openai.servicestack.net` ::: Call API by sending `OpenAiChatCompletion` Request DTO with JsonServiceClient: @@ -246,7 +246,7 @@ implementation 'net.servicestack:client:1.1.3' Download AI Server's Java DTOs: :::copy -npx get-dtos java https://openai.servicestack.net +`npx get-dtos java https://openai.servicestack.net` ::: Call API by sending `OpenAiChatCompletion` Request DTO with JsonServiceClient: @@ -279,7 +279,7 @@ implementation 'net.servicestack:client:1.1.3' Download AI Server's Kotlin DTOs: :::copy -npx get-dtos kotlin https://openai.servicestack.net +`npx get-dtos kotlin https://openai.servicestack.net` ::: Call API by sending `OpenAiChatCompletion` Request DTO with JsonServiceClient: @@ -316,7 +316,7 @@ dependencies: [ Download AI Server's Swift DTOs: :::copy -npx get-dtos swift https://openai.servicestack.net +`npx get-dtos swift https://openai.servicestack.net` ::: Call API by sending `OpenAiChatCompletion` Request DTO with JsonServiceClient: @@ -350,7 +350,7 @@ Install the `ServiceStack.Client` NuGet package: Download AI Server's F# DTOs with [x dotnet tool](https://docs.servicestack.net/dotnet-tool): :::copy -x fsharp https://openai.servicestack.net +`x fsharp https://openai.servicestack.net` ::: Call API by sending `OpenAiChatCompletion` Request DTO with `JsonApiClient`: @@ -384,7 +384,7 @@ Install the `ServiceStack.Client` NuGet package: Download AI Server's VB.NET DTOs with [x dotnet tool](https://docs.servicestack.net/dotnet-tool): :::copy -x vbnet https://openai.servicestack.net +`x vbnet https://openai.servicestack.net` ::: Call API by sending `OpenAiChatCompletion` Request DTO with `JsonApiClient`: diff --git a/MyApp/_posts/2024-12-04_swift6-upgrade.md b/MyApp/_posts/2024-12-04_swift6-upgrade.md index c87215db..a0f54cef 100644 --- a/MyApp/_posts/2024-12-04_swift6-upgrade.md +++ b/MyApp/_posts/2024-12-04_swift6-upgrade.md @@ -73,7 +73,7 @@ dependencies: [ Download AI Server's Swift DTOs: :::copy -npx get-dtos swift https://openai.servicestack.net +`npx get-dtos swift https://openai.servicestack.net` ::: You'll then be able to call Ollama by sending the OpenAI Chat compatible `OpenAiChatCompletion`