https://github.com/hadley/workshop-llm-hackathon
https://github.com/hadley/workshop-llm-hackathon
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hadley/workshop-llm-hackathon
- Owner: hadley
- Created: 2025-03-06T13:56:04.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-03-10T22:52:58.000Z (10 months ago)
- Last Synced: 2025-04-22T23:46:54.575Z (9 months ago)
- Language: R
- Size: 2.82 MB
- Stars: 13
- Watchers: 1
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# LLM hackathon
[Slides](slides-2-ukraine.pdf)
## Setup
You'll need the latest version of ellmer:
```r
pak::pak("ellmer")
```
You'll also need to set up at least one chat provider. If you don't already have an API account (a paid subscription unfortunately doesn't count), we recommend either Claude or Gemini. Claude is cheap and good at R code, while gemini is free and good at videos. Follow the instructions below to configure one.
### Claude
1. Sign up at .
1. Load up enough credit to buy a coffee.
1. Create a key at and copy it to the clipboard.
1. `usethis::edit_r_environ()`.
1. Add a new line containing: `ANTHROPIC_API_KEY={paste}`.
1. Restart R.
1. Check that `ellmer::chat_anthropic()$chat("Tell me a joke")` works.
### Gemini
1. Log in to with a google account
1. Click *create API key* & copy it to the clipboard.
1. `usethis::edit_r_environ()`
1. Add a new line containing: `GOOGLE_API_KEY={paste}`
1. Restart R.
1. Check that `ellmer::chat_google_gemini()$chat("Tell me a joke")` works.