From 92a542e8da78d8bb3ebf4283f1fcc601e4d3adb6 Mon Sep 17 00:00:00 2001 From: William Kennedy Date: Fri, 7 Jun 2024 10:03:57 -0400 Subject: [PATCH] saving work --- fern/docs/pages/quick_start.mdx | 10 +++++----- fern/docs/pages/reference/PII.mdx | 6 +++--- fern/docs/pages/reference/chat.mdx | 10 +++++----- fern/docs/pages/reference/completions.mdx | 6 +++--- fern/docs/pages/reference/embeddings.mdx | 6 +++--- fern/docs/pages/reference/factuality.mdx | 6 +++--- fern/docs/pages/reference/injection.mdx | 6 +++--- fern/docs/pages/reference/toxicity.mdx | 6 +++--- fern/docs/pages/reference/translate.mdx | 6 +++--- fern/docs/pages/reference/vision.mdx | 6 +++--- 10 files changed, 34 insertions(+), 34 deletions(-) diff --git a/fern/docs/pages/quick_start.mdx b/fern/docs/pages/quick_start.mdx index eb3d38d..1f77900 100644 --- a/fern/docs/pages/quick_start.mdx +++ b/fern/docs/pages/quick_start.mdx @@ -61,7 +61,7 @@ You can then use any of our official SDKs or REST API to prompt one of our LLMs! -```python copy +```python import json import os @@ -102,7 +102,7 @@ print(json.dumps( -```go copy +```go package main import ( @@ -174,7 +174,7 @@ func run() error { -```rust copy +```rust use std::env; use pg_rust_client as pg_client; @@ -209,7 +209,7 @@ async fn main() { -```js copy +```js import * as pg from 'predictionguard'; const client = new pg.Client('https://api.predictionguard.com', process.env.PGKEY); @@ -252,7 +252,7 @@ Chat(); -```bash copy +```bash curl -il -X POST https://api.predictionguard.com/chat/completions \ -H "x-api-key: ${PGKEY}" \ -H "Content-Type: application/json" \ diff --git a/fern/docs/pages/reference/PII.mdx b/fern/docs/pages/reference/PII.mdx index e3371f9..50c235e 100644 --- a/fern/docs/pages/reference/PII.mdx +++ b/fern/docs/pages/reference/PII.mdx @@ -42,17 +42,17 @@ To check and replace PII, you can use the following code examples. Depending on - ```go copy + ```go ``` - ```rust copy + ```rust ``` - ```js copy + ```js ``` diff --git a/fern/docs/pages/reference/chat.mdx b/fern/docs/pages/reference/chat.mdx index 8fa5cc0..c76c971 100644 --- a/fern/docs/pages/reference/chat.mdx +++ b/fern/docs/pages/reference/chat.mdx @@ -14,7 +14,7 @@ your application. - ```python copy + ```python import os import json @@ -60,7 +60,7 @@ your application. - ```go copy + ```go package main import ( @@ -140,7 +140,7 @@ your application. - ```rust copy + ```rust extern crate prediction_guard as pg_client; use pg_client::{chat, client, models}; @@ -182,7 +182,7 @@ your application. - ```js copy + ```js import * as pg from '../dist/index.js'; const client = new pg.Client('https://api.predictionguard.com', process.env.PGKEY); @@ -233,7 +233,7 @@ your application. - ```bash copy + ```bash curl -il -X POST https://api.predictionguard.com/chat/completions \ -H "x-api-key: ${PGKEY}" \ -H "Content-Type: application/json" \ diff --git a/fern/docs/pages/reference/completions.mdx b/fern/docs/pages/reference/completions.mdx index b75bcd9..a8ac797 100644 --- a/fern/docs/pages/reference/completions.mdx +++ b/fern/docs/pages/reference/completions.mdx @@ -36,17 +36,17 @@ To generate a text completion, you can use the following code examples. Dependin - ```go copy + ```go ``` - ```rust copy + ```rust ``` - ```js copy + ```js ``` diff --git a/fern/docs/pages/reference/embeddings.mdx b/fern/docs/pages/reference/embeddings.mdx index b0c5dc8..3595f2e 100644 --- a/fern/docs/pages/reference/embeddings.mdx +++ b/fern/docs/pages/reference/embeddings.mdx @@ -41,17 +41,17 @@ To generate embeddings, you can use the following code examples. Depending on yo - ```go copy + ```go ``` - ```rust copy + ```rust ``` - ```js copy + ```js ``` diff --git a/fern/docs/pages/reference/factuality.mdx b/fern/docs/pages/reference/factuality.mdx index be9040c..0b9192a 100644 --- a/fern/docs/pages/reference/factuality.mdx +++ b/fern/docs/pages/reference/factuality.mdx @@ -42,17 +42,17 @@ To generate a factuality score, you can use the following code examples. Dependi - ```go copy + ```go ``` - ```rust copy + ```rust ``` - ```js copy + ```js ``` diff --git a/fern/docs/pages/reference/injection.mdx b/fern/docs/pages/reference/injection.mdx index 5d65fc1..2ae14ea 100644 --- a/fern/docs/pages/reference/injection.mdx +++ b/fern/docs/pages/reference/injection.mdx @@ -41,17 +41,17 @@ To check for prompt injections, you can use the following code examples. Dependi - ```go copy + ```go ``` - ```rust copy + ```rust ``` - ```js copy + ```js ``` diff --git a/fern/docs/pages/reference/toxicity.mdx b/fern/docs/pages/reference/toxicity.mdx index 295dd40..44cdce1 100644 --- a/fern/docs/pages/reference/toxicity.mdx +++ b/fern/docs/pages/reference/toxicity.mdx @@ -35,17 +35,17 @@ To generate a toxicity score, you can use the following code examples. Depending - ```go copy + ```go ``` - ```rust copy + ```rust ``` - ```js copy + ```js ``` diff --git a/fern/docs/pages/reference/translate.mdx b/fern/docs/pages/reference/translate.mdx index 5bbc2f3..30f2637 100644 --- a/fern/docs/pages/reference/translate.mdx +++ b/fern/docs/pages/reference/translate.mdx @@ -57,17 +57,17 @@ To generate a translation, you can use the following code examples. Depending on - ```go copy + ```go ``` - ```rust copy + ```rust ``` - ```js copy + ```js ``` diff --git a/fern/docs/pages/reference/vision.mdx b/fern/docs/pages/reference/vision.mdx index afcf6a3..1769a55 100644 --- a/fern/docs/pages/reference/vision.mdx +++ b/fern/docs/pages/reference/vision.mdx @@ -55,17 +55,17 @@ To generate a vision text completion, you can use the following code examples. D - ```go copy + ```go ``` - ```rust copy + ```rust ``` - ```js copy + ```js ```