News for hackers. Stuff that matters.
Re:iTerm 2 adds ChatGPT integration by nodesocket on Monday May 20, 2024 @04:56PM (#40420285)
I'd love to see the ability to hook into my self-hosted ollama (llama3) server running in my homelab. I'm not thrilled about giving OpenAI all my terminal history.
Re:iTerm 2 adds ChatGPT integration by verdverm on Monday May 20, 2024 @05:05PM (#40420382)
The terminal ought to be a tool available to whichever LLM you prefer, like a Python REPL, database, or search
Re:iTerm 2 adds ChatGPT integration by arshxyz on Tuesday May 21, 2024 @07:28AM (#40426941)
It is compatible with ollama. Advanced settings -> "URL for AI API"
Re:iTerm 2 adds ChatGPT integration by blopker on Monday May 20, 2024 @08:54PM (#40422768)
I just got this working. The workflow is a little wonky to me, but better than I've seen from other AI-in-the-terminal solutions:

Setup:

1. Go to Settings (⌘+,)

2. General > AI. Put in your OpenAI key. I went with GPT-4o. Make sure you set the token limit to 4,096 or it wont go.

Using:

1. At the terminal window, hit Edit > Engage Artificial Intelligence, or just hit ⌘+Y.

2. Type in the command you want, then hit OK or Shift+Enter.

3. On the result window you can hit Shift+Enter again to paste the result into your terminal.

The whole Shift+Enter workflow is odd to me. I'd prefer just Enter. However, I like that I know exactly what's being sent to OpenAI. The integration doesn't try too hard to send everything over.

It's good to see iTerm get some updates too!

Re:iTerm 2 adds ChatGPT integration by joshstrange on Tuesday May 21, 2024 @08:37AM (#40427623)
More discussion is over here: https://news.ycombinator.com/item?id=40425428