Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
BradPerbs authored Apr 26, 2024
1 parent 7d7cee6 commit 0d7e32e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,19 @@ func main() {
fmt.Println(response)
}

```


This example creates a new Client instance with your API key and sends a prompt to Claude. The SendPrompt method returns the response from Claude as a string.
Configuration
You can configure the behavior of the client by passing optional configuration functions to the NewClient function:


```
client := claude.NewClient("your-api-key",
claude.WithBaseURL("https://api.example.com/v1"), // Set a custom base URL
claude.WithHTTPClient(&http.Client{Timeout: 10 * time.Second}), // Set a custom HTTP client
)

```

The available configuration functions are:

Expand All @@ -60,4 +62,4 @@ The available configuration functions are:
Contributing
If you find any issues or want to contribute to this project, feel free to open an issue or submit a pull request on the GitHub repository.
License
This project is licensed under the MIT License.
This project is licensed under the MIT License.

0 comments on commit 0d7e32e

Please sign in to comment.