Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
AoElite committed Mar 23, 2024
1 parent ce36ad4 commit 5628e8c
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,32 @@ Example usage:
ClaudeResponse response = client.sendRequest(ClaudeRequest.builder()
.model(ClaudeModel.HAIKU)
.max_tokens(100)
.message(new ClaudeMessage(ClaudeRole.USER, "what's 2+2?"))
.temperature(0)
.stop_sequence("###")
.system("You are a AI math assistant")
.input(RoleInput.builder()
.role(ClaudeRole.USER)
.message(new TextMessage("what's 2+2?"))
.build())
.input(RoleInput.builder()
.role(ClaudeRole.ASSISTANT)
.message(new TextMessage("4"))
.build())
.input(RoleInput.builder()
.role(ClaudeRole.USER)
.message(new TextMessage("what's 3+3?"))
.build())
.build());

// response could be null if it timed out
if (response != null) {
if (response != null) { // response could timeout
for (String string : response.getContent()) {
System.out.println(string);
}
}
```

TODO:
- [ ] Image/File support
- [X] Image/File support
- [ ] Stream support
- [ ] Embeddings
- [ ] Legacy models

0 comments on commit 5628e8c

Please sign in to comment.