Skip to content

Commit

Permalink
add video showcasing streaming completion
Browse files Browse the repository at this point in the history
  • Loading branch information
dleviminzi authored Jul 27, 2023
1 parent d4e1bc1 commit bd7485a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# go-claude
# go-anthropic (anthrogo)

This is a simple client for using Anthropic's api to get claude completions. It is not an official client. Contributions are welcome!

Expand Down Expand Up @@ -43,8 +43,11 @@ func main() {
conversation.AddMessage(anthrogo.RoleAssistant, resp.Completion)
}
```

## Streaming completion usage
[Screencast from 07-27-2023 02:34:43 PM.webm](https://github.com/dleviminzi/go-anthropic/assets/51272568/d61e938f-fb7c-43a6-b919-c662d7929e0b)
<details>
<summary>Code</summary>

```go
func main() {
// Create a new client
Expand Down Expand Up @@ -100,6 +103,8 @@ func main() {
}
}
```
</details>


## Project structure
```
Expand All @@ -126,4 +131,4 @@ func main() {
```

## To-do
- [ ] Tokenizer
- [ ] Tokenizer

0 comments on commit bd7485a

Please sign in to comment.