Skip to content

Commit

Permalink
adding sse
Browse files Browse the repository at this point in the history
  • Loading branch information
ardan-bkennedy committed Jun 7, 2024
1 parent 16c6e8c commit a646bc4
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions fern/docs/pages/reference/chat_sse.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@
title: Chat SSE
---

You can get stream chat text completions (based on a thread of chat messages) from
any of the chat enabled [models](/options/enumerations) using the `/chat/completions`
REST API endpoint or any of the official SDKs (Python, Go, Rust, JS, or cURL).
You can get stream based chat text completions (based on a thread of chat messages)
from any of the chat enabled [models](/options/enumerations) using the
`/chat/completions` REST API endpoint or any of the official SDKs (Python, Go,
Rust, JS, or cURL).

## Generate a Chat Text Completion
## Generate a Stream Base Chat Text Completion

To generate a stream chat text completion, you can use the following code examples.
Depending on your preference or requirements, select the appropriate method for
your application.
To generate a stream based chat text completion, you can use the following code
examples. Depending on your preference or requirements, select the appropriate
method for your application.

<CodeBlocks>
<CodeBlock title="Python">
Expand Down

0 comments on commit a646bc4

Please sign in to comment.