Skip to content

Instantly share code, notes, and snippets.

@gkossakowski
Last active October 31, 2023 11:20
Show Gist options
  • Save gkossakowski/199b643d21c3bd0f386085ae5014fa9e to your computer and use it in GitHub Desktop.
Save gkossakowski/199b643d21c3bd0f386085ae5014fa9e to your computer and use it in GitHub Desktop.

Warsaw AI Breakfast Reel: llm & helicone.ai

llm by Simon Willison

Intro to llm

llm "Hello"

llm as a man replacement

Git reset branch

llm 'In Git, how do I reset a branch `exp` to `main` without checking it out?'

Curl headers

llm 'Given `curl https://hotseatai.com`. How can I print the http headers and only them?'

Adhoc sql queries based on a schema dump

llm -m 4 "Given:
$(cmdmd db_schema)

Write a SQL query that counts questions that have result count different than 0, 1, or 4."
# optionally: | glow

(optional) how about writing a Django ORM query?

llm -c "Thanks. Now can you write the same query but using Django ORM?
Take a look at: $(fzf | xargs cat)"

helicone.ai

Integrate helicone by:

  1. Define HELICONE_API_KEY
  2. Install helicone package
  3. Replace import openai with helicone.openai_proxy import openai
  4. Profit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment