Skip to content

Commit

Permalink
saving work
Browse files Browse the repository at this point in the history
  • Loading branch information
ardan-bkennedy committed Jun 7, 2024
1 parent 3fdb536 commit 92a542e
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 34 deletions.
10 changes: 5 additions & 5 deletions fern/docs/pages/quick_start.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ You can then use any of our official SDKs or REST API to prompt one of our LLMs!
<CodeBlocks>

<CodeBlock title="Python">
```python copy
```python
import json
import os

Expand Down Expand Up @@ -102,7 +102,7 @@ print(json.dumps(
</CodeBlock>

<CodeBlock title="Go">
```go copy
```go
package main

import (
Expand Down Expand Up @@ -174,7 +174,7 @@ func run() error {
</CodeBlock>

<CodeBlock title="Rust">
```rust copy
```rust
use std::env;

use pg_rust_client as pg_client;
Expand Down Expand Up @@ -209,7 +209,7 @@ async fn main() {
</CodeBlock>

<CodeBlock title="NodeJS">
```js copy
```js
import * as pg from 'predictionguard';

const client = new pg.Client('https://api.predictionguard.com', process.env.PGKEY);
Expand Down Expand Up @@ -252,7 +252,7 @@ Chat();
</CodeBlock>

<CodeBlock title="cURL">
```bash copy
```bash
curl -il -X POST https://api.predictionguard.com/chat/completions \
-H "x-api-key: ${PGKEY}" \
-H "Content-Type: application/json" \
Expand Down
6 changes: 3 additions & 3 deletions fern/docs/pages/reference/PII.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,17 @@ To check and replace PII, you can use the following code examples. Depending on
</CodeBlock>

<CodeBlock title="Go">
```go copy
```go
```
</CodeBlock>

<CodeBlock title="Rust">
```rust copy
```rust
```
</CodeBlock>

<CodeBlock title="NodeJS">
```js copy
```js
```
</CodeBlock>

Expand Down
10 changes: 5 additions & 5 deletions fern/docs/pages/reference/chat.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ your application.

<CodeBlocks>
<CodeBlock title="Python">
```python copy
```python
import os
import json

Expand Down Expand Up @@ -60,7 +60,7 @@ your application.
</CodeBlock>

<CodeBlock title="Go">
```go copy
```go
package main

import (
Expand Down Expand Up @@ -140,7 +140,7 @@ your application.
</CodeBlock>

<CodeBlock title="Rust">
```rust copy
```rust
extern crate prediction_guard as pg_client;

use pg_client::{chat, client, models};
Expand Down Expand Up @@ -182,7 +182,7 @@ your application.
</CodeBlock>

<CodeBlock title="NodeJS">
```js copy
```js
import * as pg from '../dist/index.js';

const client = new pg.Client('https://api.predictionguard.com', process.env.PGKEY);
Expand Down Expand Up @@ -233,7 +233,7 @@ your application.
</CodeBlock>

<CodeBlock title="cURL">
```bash copy
```bash
curl -il -X POST https://api.predictionguard.com/chat/completions \
-H "x-api-key: ${PGKEY}" \
-H "Content-Type: application/json" \
Expand Down
6 changes: 3 additions & 3 deletions fern/docs/pages/reference/completions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@ To generate a text completion, you can use the following code examples. Dependin
</CodeBlock>

<CodeBlock title="Go">
```go copy
```go
```
</CodeBlock>

<CodeBlock title="Rust">
```rust copy
```rust
```
</CodeBlock>

<CodeBlock title="NodeJS">
```js copy
```js
```
</CodeBlock>

Expand Down
6 changes: 3 additions & 3 deletions fern/docs/pages/reference/embeddings.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,17 @@ To generate embeddings, you can use the following code examples. Depending on yo
</CodeBlock>

<CodeBlock title="Go">
```go copy
```go
```
</CodeBlock>

<CodeBlock title="Rust">
```rust copy
```rust
```
</CodeBlock>

<CodeBlock title="NodeJS">
```js copy
```js
```
</CodeBlock>

Expand Down
6 changes: 3 additions & 3 deletions fern/docs/pages/reference/factuality.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,17 @@ To generate a factuality score, you can use the following code examples. Dependi
</CodeBlock>

<CodeBlock title="Go">
```go copy
```go
```
</CodeBlock>

<CodeBlock title="Rust">
```rust copy
```rust
```
</CodeBlock>

<CodeBlock title="NodeJS">
```js copy
```js
```
</CodeBlock>

Expand Down
6 changes: 3 additions & 3 deletions fern/docs/pages/reference/injection.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,17 @@ To check for prompt injections, you can use the following code examples. Dependi
</CodeBlock>

<CodeBlock title="Go">
```go copy
```go
```
</CodeBlock>

<CodeBlock title="Rust">
```rust copy
```rust
```
</CodeBlock>

<CodeBlock title="NodeJS">
```js copy
```js
```
</CodeBlock>

Expand Down
6 changes: 3 additions & 3 deletions fern/docs/pages/reference/toxicity.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,17 @@ To generate a toxicity score, you can use the following code examples. Depending
</CodeBlock>

<CodeBlock title="Go">
```go copy
```go
```
</CodeBlock>

<CodeBlock title="Rust">
```rust copy
```rust
```
</CodeBlock>

<CodeBlock title="NodeJS">
```js copy
```js
```
</CodeBlock>

Expand Down
6 changes: 3 additions & 3 deletions fern/docs/pages/reference/translate.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,17 @@ To generate a translation, you can use the following code examples. Depending on
</CodeBlock>

<CodeBlock title="Go">
```go copy
```go
```
</CodeBlock>

<CodeBlock title="Rust">
```rust copy
```rust
```
</CodeBlock>

<CodeBlock title="NodeJS">
```js copy
```js
```
</CodeBlock>

Expand Down
6 changes: 3 additions & 3 deletions fern/docs/pages/reference/vision.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,17 @@ To generate a vision text completion, you can use the following code examples. D
</CodeBlock>

<CodeBlock title="Go">
```go copy
```go
```
</CodeBlock>

<CodeBlock title="Rust">
```rust copy
```rust
```
</CodeBlock>

<CodeBlock title="NodeJS">
```js copy
```js
```
</CodeBlock>

Expand Down

0 comments on commit 92a542e

Please sign in to comment.