Readit News logoReadit News
HiPHInch commented on Ch.at – A lightweight LLM chat service accessible through HTTP, SSH, DNS and API   ch.at/... · Posted by u/ownlife
dakinitribe · 24 days ago
This is beautiful, thank you.

Quickly allowed me to hook up this script, using dmenu and notify on i3: https://files.catbox.moe/vbhtg0.jpg

And then trigger it with Mod+l for super quick answers as I'm working! Priceless <3

HiPHInch · 24 days ago
ported to macos using raycast

```

#!/bin/bash

# Required parameters: # @raycast.schemaVersion 1 # @raycast.title Ask LLM # @raycast.mode fullOutput

# Optional parameters: # @raycast.icon # @raycast.argument1 { "type": "text", "placeholder": "Your question" }

# Documentation: # @raycast.author Your Name # @raycast.authorURL https://github.com/you

QUERY="$1" [ -z "$QUERY" ] && exit 0

FULL_QUERY="Answer in as little words as possible, concisely, for an intelligent person: $QUERY"

# URL encode (pure bash) encode_query() { local query="$1" local encoded="" local c for (( i=0; i<${#query}; i++ )); do c="${query:$i:1}" case $c in [a-zA-Z0-9.~_-]) encoded+="$c" ;; *) encoded+=$(printf '%%%02X' "'$c") ;; esac done echo "$encoded" }

ENCODED_QUERY=$(encode_query "$FULL_QUERY")

# Get response RESPONSE=$(curl -s "https://ch.at/?q=$ENCODED_QUERY")

# Output to Raycast echo "$RESPONSE"

# --- Optional: also pop up a big dialog --- osascript -e 'display dialog "'"$RESPONSE"'" buttons {"OK"} default button 1 with title "LLM Answer"'

```

HiPHInch commented on Ch.at – A lightweight LLM chat service accessible through HTTP, SSH, DNS and API   ch.at/... · Posted by u/ownlife
HiPHInch · 24 days ago
is it a good idea to alias "dig @ch.at TXT +short" to a command say `c`

then use `c "the prompt"`

HiPHInch commented on Claude 4   anthropic.com/news/claude... · Posted by u/meetpateltech
bingobangobungo · 3 months ago
what do you mean purchasable from china? As in you are based in china or is there a way to game the tokens pricing
HiPHInch · 3 months ago
Claude register need a phone number, but cannot select China (+86), and even if I have a account, it may hard to purchase because the credit card issue.

Some app like Windsurf can easily pay with Alipay, a everyone-app in China.

HiPHInch commented on Claude 4   anthropic.com/news/claude... · Posted by u/meetpateltech
HiPHInch · 3 months ago
How long will the VScode wrapper (cursor, windsurf) survive?

Love to try the Claude Code VScode extension if the price is right and purchase-able from China.

u/HiPHInch

KarmaCake day230January 5, 2024View Original