Skip to content

Commit

Permalink
fix copy scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Nov 23, 2024
1 parent 023599a commit 0ad2df0
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 23 deletions.
26 changes: 15 additions & 11 deletions MyApp/_posts/2024-11-28_ai-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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

Expand Down
22 changes: 11 additions & 11 deletions MyApp/_posts/2024-12-03_typed-openai-chat-ollama-apis.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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`:
Expand Down Expand Up @@ -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`:
Expand Down
2 changes: 1 addition & 1 deletion MyApp/_posts/2024-12-04_swift6-upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit 0ad2df0

Please sign in to comment.