Skip to content

Commit

Permalink
updating docs for topk
Browse files Browse the repository at this point in the history
  • Loading branch information
ardan-bkennedy committed Jun 27, 2024
1 parent 05399eb commit a7a6544
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 2 deletions.
3 changes: 3 additions & 0 deletions fern/docs/pages/quick_start.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ func run() error {
MaxTokens: 1000,
Temperature: 0.1,
TopP: 0.1,
TopK: 50.0,
Options: &client.ChatInputOptions{
Factuality: true,
Toxicity: true,
Expand Down Expand Up @@ -230,6 +231,7 @@ async function Chat() {
maxTokens: 1000,
temperature: 0.1,
topP: 0.1,
topK: 50.0,
options: {
factuality: true,
toxicity: true,
Expand Down Expand Up @@ -271,6 +273,7 @@ curl -i -X POST https://api.predictionguard.com/chat/completions \
"max_tokens": 1000,
"temperature": 1.1,
"top_p": 0.1,
"top_k": 50.0,
"output": {
"factuality": true,
"toxicity": true
Expand Down
3 changes: 3 additions & 0 deletions fern/docs/pages/reference/chat.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ your application.
MaxTokens: 1000,
Temperature: 0.1,
TopP: 0.1,
TopK: 50.0,
Options: &client.ChatInputOptions{
Factuality: false,
Toxicity: true,
Expand Down Expand Up @@ -211,6 +212,7 @@ your application.
maxTokens: 1000,
temperature: 0.1,
topP: 0.1,
topK: 50.0,
options: {
factuality: false,
toxicity: true,
Expand Down Expand Up @@ -260,6 +262,7 @@ your application.
"max_tokens": 1000,
"temperature": 1.1,
"top_p": 0.1,
"top_k": 50.0,
"output": {
"factuality": false,
"toxicity": true
Expand Down
4 changes: 3 additions & 1 deletion fern/docs/pages/reference/chat_sse.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ method for your application.
},
MaxTokens: 1000,
Temperature: 0.1,
TopP: 0.1
TopP: 0.1,
TopK: 50.0,
}
resp, err := cln.ChatSSE(ctx, input)
Expand Down Expand Up @@ -217,6 +218,7 @@ method for your application.
maxTokens: 1000,
temperature: 0.1,
topP: 0.1,
topK: 50.0,
onMessage: function (event, err) {
if (err != null) {
if (err.error == 'EOF') {
Expand Down
2 changes: 2 additions & 0 deletions fern/docs/pages/reference/chat_vision.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ images that are base64 encoded represented by a data uri.
MaxTokens: 1000,
Temperature: 0.1,
TopP: 0.1,
TopK: 50.0,
}

resp, err := cln.ChatVision(ctx, input)
Expand Down Expand Up @@ -173,6 +174,7 @@ images that are base64 encoded represented by a data uri.
maxTokens: 1000,
temperature: 0.1,
topP: 0.1,
topK: 50.0,
};
var [result, err] = await client.ChatVision(input);
Expand Down
5 changes: 4 additions & 1 deletion fern/docs/pages/reference/completions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ on your preference or requirements, select the appropriate method for your appli
MaxTokens: 1000,
Temperature: 0.1,
TopP: 0.1,
TopK: 50.0,
}

resp, err := cln.Completions(ctx, input)
Expand Down Expand Up @@ -135,6 +136,7 @@ on your preference or requirements, select the appropriate method for your appli
maxTokens: 1000,
temperature: 0.1,
topP: 0.1,
topK: 50.0,
};

var [result, err] = await client.Completion(input);
Expand All @@ -160,7 +162,8 @@ on your preference or requirements, select the appropriate method for your appli
"prompt": "The best joke I know is: ",
"max_tokens": 1000,
"temperature": 1.1,
"top_p": 0.1
"top_p": 0.1,
"top_k": 50.0,
}'
```
</CodeBlock>
Expand Down
2 changes: 2 additions & 0 deletions fern/docs/pages/sdks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ async function Chat() {
maxTokens: 1000,
temperature: 0.1,
topP: 0.1,
topK: 50.0,
options: {
factuality: true,
toxicity: true,
Expand Down Expand Up @@ -184,6 +185,7 @@ func run() error {
MaxTokens: 1000,
Temperature: 0.1,
TopP: 0.1,
TopK: 50.0,
Options: &client.ChatInputOptions{
Factuality: true,
Toxicity: true,
Expand Down

0 comments on commit a7a6544

Please sign in to comment.