Skip to content

Commit 6216786

Browse files
Merge pull request #132 from supreme-gg-gg/endernoke-patch-2
Update default chat summary model
2 parents ad6432d + 15a6bf5 commit 6216786

File tree

5 files changed

+12
-17
lines changed

5 files changed

+12
-17
lines changed

README.md

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,15 @@ The ultimate weapon against brainrot. Shown experimentally to effectively reduce
1313

1414
https://github.com/user-attachments/assets/e9206e14-8141-49b2-8e2c-17c76402e3cb
1515

16-
The world's first open-source CLI (command line interface) + Terminal UI client for Instagram.
17-
1816
> [!WARNING]
1917
> This project is not affiliated with, authorized, or endorsed by Instagram. This is an independent and unofficial project. Using it might violate Meta's Terms of Service. Use at your own risk.
2018
2119
## What does it do?
2220

2321
- We transform Instagram from a brainrot hell into productivity tool
24-
- We give back control of social media to the user
25-
- We allow you to focus on meaningful conversation with friends
22+
- We allow you to focus on meaningful conversations
2623
- We celebrate the art and simplicity of terminal UI
27-
- We preserve the core of social media and protect your attention
24+
- We extend Instagram with powerful plugins like latex, chat summarisation
2825

2926
> [!TIP]
3027
> Use Instagram with 100% keyboard control - no mouse clicks or touchscreen taps needed! Perfect for developers and Linux users who love staying on the keyboard 🤣
@@ -98,15 +95,15 @@ instagram config --get --set --edit # manage custom configuration
9895
instagram cleanup -t # cleanup media and session cache files
9996
```
10097

101-
> [!NOTE]
102-
> All searches in the package uses a custom fuzzy matching based on ratcliff/obershelp similarity algorithm. This means chat search and emoji search will be more flexible and forgiving.
103-
10498
## Chat
10599

106100
The chat interface is the main feature of this package. It allows you to interact with your Instagram chats in a terminal-based interface.
107101

108102
In the chat list page, use arrow keys (or 'j', 'k') + Enter to select a chat. You can also search for user by username using @user_name + Enter.
109103

104+
> [!NOTE]
105+
> All searches in the package uses a custom fuzzy matching based on ratcliff/obershelp similarity algorithm. This means chat search and emoji search will be more flexible and forgiving.
106+
110107
After entering the chat page, you can type messages as usual and send them with Enter. You can also use chat commands to supercharge your chat experience.
111108

112109
> [!TIP]
@@ -174,13 +171,10 @@ You can choose to render with [online API](https://latex.codecogs.com) (default)
174171

175172
You can generate a summary of the chat history using the `:summarize` command. This will create a concise summary of the conversation, highlighting key points and important information.
176173

177-
Local LLMs are first-class citizens here, allowing for maximum privacy and flexibility. All you need is a local LLM inferencing server like [Ollama](https://ollama.com/), [LM Studio](https://lmstudio.ai/). You will need to specify `llm.endpoint` (OpenAI-compatible) and `llm.model` in the config. For example, for Ollama, this would likely be:
174+
Local LLMs are first-class citizens here, allowing for maximum privacy and flexibility. All you need is a local LLM inferencing server like [Ollama](https://ollama.com/), [LM Studio](https://lmstudio.ai/). You will need to specify `llm.endpoint` (OpenAI-compatible) and `llm.model` in the config. For example, for Ollama, this would likely be `http://localhost:11434/v1/`.
178175

179-
```plaintext
180-
http://localhost:11434/v1/
181-
```
182-
183-
You can do this with `instagram config --set llm.endpoint <URL>` and `instagram config --set llm.model <MODEL_NAME>`.
176+
> [!IMPORTANT]
177+
> You are responsible for setting up the LLM server and ensuring that you have the right model pulled. You can configure the endpoint and model using the `instagram config` command, e.g. `instagram config --set llm.endpoint <URL>` and `instagram config --set llm.model <MODEL_NAME>`.
184178
185179
Once inside a chat conversation, you can summarize the chat history using:
186180

instagram/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55

66
__all__ = ["login", "logout", "start_chat", "Config", "cleanup"]
77

8-
__version__ = "1.3.8"
8+
__version__ = "1.4.1"

instagram/chat_ui/interface/chat_interface.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,7 @@ def _display_streaming_command_result(self, result_generator):
449449
curses.napms(2000)
450450

451451
# After streaming is complete, wait for a key press to exit
452+
self.status_bar.update("Response streaming complete. Press any key...")
452453
self.screen.get_wch()
453454
self.chat_window.clear_custom_content()
454455

instagram/configs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"llm": {
1616
"endpoint": "http://localhost:11434/v1/",
1717
"api_key": "",
18-
"model": "gemma-3n-e4b",
18+
"model": "gemma3:270m",
1919
"temperature": 0.7,
2020
"max_tokens": 1000,
2121
"streaming": False,

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "instagram-cli"
7-
version = "1.3.8"
7+
version = "1.4.1"
88
description = "Use Instagram in the terminal, the end of brainrot is here"
99
authors = [
1010
{ name = "Jet Chiang", email = "jetjiang.ez@gmail.com" },

0 commit comments

Comments
 (0)