From bd7485a182362f37f9ec823780e63d9d693365e3 Mon Sep 17 00:00:00 2001 From: Daniel Levi-Minzi <51272568+dleviminzi@users.noreply.github.com> Date: Thu, 27 Jul 2023 14:44:13 -0400 Subject: [PATCH] add video showcasing streaming completion --- README.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 39a2620..55a580b 100644 --- a/README.md +++ b/README.md @@ -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! @@ -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) +
+Code + ```go func main() { // Create a new client @@ -100,6 +103,8 @@ func main() { } } ``` +
+ ## Project structure ``` @@ -126,4 +131,4 @@ func main() { ``` ## To-do -- [ ] Tokenizer \ No newline at end of file +- [ ] Tokenizer