Skip to content

feat: mcp support, openai update, refactor #486

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 49 commits into from
May 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
ba3e5d8
wip: mcp support
caarlos0 Apr 22, 2025
cbcd901
refactor: using official anthropic library
caarlos0 Apr 22, 2025
3a42650
Merge remote-tracking branch 'origin/main' into mcp-anthropic
caarlos0 Apr 23, 2025
fec82b3
wip
caarlos0 Apr 23, 2025
402087e
wip
caarlos0 Apr 23, 2025
041c574
wip
caarlos0 Apr 23, 2025
7a82f16
wip
caarlos0 Apr 24, 2025
b197424
fix: styles
caarlos0 Apr 24, 2025
9eb1f6e
fix: no bold
caarlos0 Apr 24, 2025
ef9020e
fix: better mcp env
caarlos0 Apr 24, 2025
828e1a5
chore: small fmt
caarlos0 Apr 24, 2025
d518630
feat: wip openai
caarlos0 Apr 24, 2025
61b041e
fix: openai tool calling
caarlos0 Apr 24, 2025
a60dfbb
feat: upgrade openai library
caarlos0 Apr 25, 2025
0cbb33c
fix: handling
caarlos0 Apr 25, 2025
deca2ca
fix: cache
caarlos0 Apr 25, 2025
2e68875
fix: caching
caarlos0 Apr 25, 2025
c37572b
fix: constants
caarlos0 Apr 25, 2025
b6340fb
fix: errors
caarlos0 Apr 25, 2025
663c936
chore(docs): add MCP stuff to help and readme; copyedits (#488)
meowgorithm Apr 28, 2025
cef9552
Update README.md
caarlos0 Apr 29, 2025
bed6a8d
Merge remote-tracking branch 'origin/main' into mcp-anthropic
caarlos0 Apr 30, 2025
7b8cbd3
refactor: changing streaming api (#492)
caarlos0 May 21, 2025
104e058
Merge remote-tracking branch 'origin/main' into mcp-anthropic
caarlos0 May 21, 2025
c214cc8
Update internal/cache/convo.go
caarlos0 May 21, 2025
cec8aeb
fix: tool call persistence
caarlos0 May 21, 2025
72afb1d
fix: cache init err
caarlos0 May 21, 2025
250870a
docs: fix
caarlos0 May 21, 2025
4b120d7
fix: man pages and completions
caarlos0 May 21, 2025
e78ef4e
fix: lint
caarlos0 May 21, 2025
3bb8d31
fix: tests
caarlos0 May 21, 2025
f595439
fix: lint
caarlos0 May 21, 2025
d54d763
docs: update readme and config template
caarlos0 May 21, 2025
73a7acf
fix: function call on continue
caarlos0 May 21, 2025
688ebee
fix: function calls
caarlos0 May 21, 2025
a55465a
fix: ollama tools
caarlos0 May 21, 2025
eaf504c
refactor: move pkgs to internal
caarlos0 May 21, 2025
73c347f
fix: timeout mcp setup
caarlos0 May 21, 2025
a311173
Update internal/google/google.go
caarlos0 May 22, 2025
d80466b
fix: mcp timeouts
caarlos0 May 22, 2025
331ee37
fix: docs et al
caarlos0 May 22, 2025
b67731e
feat: improvements
caarlos0 May 22, 2025
e948989
fix: improve mcp error handling, sonnet 4
caarlos0 May 22, 2025
3537ec0
Merge remote-tracking branch 'origin/main' into mcp-anthropic
caarlos0 May 22, 2025
551ef46
Merge remote-tracking branch 'origin/main' into mcp-anthropic
caarlos0 May 22, 2025
24ae34d
test: update golden file
caarlos0 May 22, 2025
afa569b
fix: compat with previous gob format
caarlos0 May 23, 2025
f4781e0
fix: lint
caarlos0 May 23, 2025
f782691
docs: fix godoc
caarlos0 May 23, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 31 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,40 +132,49 @@ Check the [`./features.md`](./features.md) for more details.

## Usage

- `-m`, `--model`: Specify Large Language Model to use.
- `-f`, `--format`: Ask the LLM to format the response in a given format.
- `--format-as`: Specify the format for the output (used with `--format`).
- `-P`, `--prompt` Include the prompt from the arguments and stdin, truncate stdin to specified number of lines.
- `-p`, `--prompt-args`: Include the prompt from the arguments in the response.
- `-q`, `--quiet`: Only output errors to standard err.
- `-r`, `--raw`: Print raw response without syntax highlighting.
- `--settings`: Open settings.
- `-x`, `--http-proxy`: Use HTTP proxy to connect to the API endpoints.
- `--max-retries`: Maximum number of retries.
- `--max-tokens`: Specify maximum tokens with which to respond.
- `--no-limit`: Do not limit the response tokens.
- `--role`: Specify the role to use (See [custom roles](#custom-roles)).
- `-m`, `--model`: Specify Large Language Model to use
- `-M`, `--ask-model`: Ask which model to use via interactive prompt
- `-f`, `--format`: Ask the LLM to format the response in a given format
- `--format-as`: Specify the format for the output (used with `--format`)
- `-P`, `--prompt` Include the prompt from the arguments and stdin, truncate stdin to specified number of lines
- `-p`, `--prompt-args`: Include the prompt from the arguments in the response
- `-q`, `--quiet`: Only output errors to standard err
- `-r`, `--raw`: Print raw response without syntax highlighting
- `--settings`: Open settings
- `-x`, `--http-proxy`: Use HTTP proxy to connect to the API endpoints
- `--max-retries`: Maximum number of retries
- `--max-tokens`: Specify maximum tokens with which to respond
- `--no-limit`: Do not limit the response tokens
- `--role`: Specify the role to use (See [custom roles](#custom-roles))
- `--word-wrap`: Wrap output at width (defaults to 80)
- `--reset-settings`: Restore settings to default.
- `--reset-settings`: Restore settings to default
- `--theme`: Theme to use in the forms; valid choices are: `charm`, `catppuccin`, `dracula`, and `base16`
- `--status-text`: Text to show while generating

#### Conversations

- `-t`, `--title`: Set the title for the conversation.
- `-l`, `--list`: List saved conversations.
- `-c`, `--continue`: Continue from last response or specific title or SHA-1.
- `-C`, `--continue-last`: Continue the last conversation.
- `-s`, `--show`: Show saved conversation for the given title or SHA-1.
- `-S`, `--show-last`: Show previous conversation.
- `-s`, `--show`: Show saved conversation for the given title or SHA-1
- `-S`, `--show-last`: Show previous conversation
- `--delete-older-than=<duration>`: Deletes conversations older than given duration (`10d`, `1mo`).
- `--delete`: Deletes the saved conversations for the given titles or SHA-1s.
- `--no-cache`: Do not save conversations.
- `--delete`: Deletes the saved conversations for the given titles or SHA-1s
- `--no-cache`: Do not save conversations

#### MCP

- `--mcp-list`: List all available MCP servers
- `--mcp-list-tools`: List all available tools from enabled MCP servers
- `--mcp-disable`: Disable specific MCP servers

#### Advanced

- `--fanciness`: Level of fanciness.
- `--temp`: Sampling temperature.
- `--topp`: Top P value.
- `--topk`: Top K value.
- `--fanciness`: Level of fanciness
- `--temp`: Sampling temperature
- `--topp`: Top P value
- `--topk`: Top K value

## Custom Roles

Expand Down
118 changes: 0 additions & 118 deletions anthropic.go

This file was deleted.

Loading
Loading