Skip to content

Commit

Permalink
🆕 Added functionality to analyze clipboard content using a large lang…
Browse files Browse the repository at this point in the history
…uage model with Groq.
  • Loading branch information
telesoho committed Aug 18, 2024
1 parent c44c5d6 commit 1de6763
Show file tree
Hide file tree
Showing 10 changed files with 13,586 additions and 5,498 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "xclip"]
path = xclip
url = git@telesoho.github.com:telesoho/xclip.git
url = git@github.com:telesoho/xclip.git
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## 1.1.0 (2024.08.18)

- feat: Added functionality to analyze clipboard content using a large language model with Groq.

## 1.0.2 (November 5, 2023)

- feat: New vscode option for html to markdown
Expand Down
46 changes: 43 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ Smartly paste for Markdown.

## Features

- AI Parse Clipboard

This feature uses a large language model(Groq.com) to analyze the clipboard content and convert it into Markdown format.

You can enable this feature by set `MarkdownPaste.enableAI` to ture.

- Paste smart

Smartly paste in Markdown by pressing 'Ctrl+Alt+V' ('Cmd+Alt+V' on Mac) or `Markdown Paste` command.
Expand Down Expand Up @@ -73,6 +79,36 @@ Smartly paste for Markdown.
- `${datetime}` - the current date & time formatted by `"yyyyMMDDHHmmss"`, You can customize the format by format string. exp: `${datetime|yyyy-MM-DD_HH-mm-ss}`
- `${selectedText}` - the current selected text. If selected text contain illegal characters `\/:*?""<>|\r\n` it will return "". You can also set the default text, exp: `${selectedText|default text}`, If selected text contain illegal characters or selected text is empty it will return the default text.

- `MarkdownPaste.enableAI`

Enable/disable AI to parse clipboard content. If enable, `MarkdownPaste.aiKey` must be required.

Default value is `false`.

- `MarkdownPaste.aiKey`

The API key for Groq. You can get one from [Groq.com](https://groq.com/).

Default value is `""`.

- `MarkdownPaste.aiModel`

The LLM model to use.

Default value is `llama3-8b-8192`.

- `MarkdownPaste.aiSysMessage`

The system message for the LLM model.

Default value is `You are responsible for converting text content into Markdown format. If the original content is HTML, ignore any color or font settings and comments, but retain tables.`

- `MarkdownPaste.aiTemperature`

The temperature setting for the LLM model.

Default value is `1`.

- `MarkdownPaste.path`

The folder path that image will be saved. Support absolute path and relative path and predefined variables.
Expand Down Expand Up @@ -231,11 +267,15 @@ Smartly paste for Markdown.

**NOTE** If any language rule been matched, it will not apply `MarkdownPaste.rules` anymore.

## FAQ
## 问题和建议

1. 请通过以下链接提交Bug。

https://github.com/telesoho/vscode-markdown-paste-image/issues

1. Extension not working on Windows, nor on Mac.
2. 请通过以下链接发布建议。

https://github.com/telesoho/vscode-markdown-paste-image/issues/6
https://github.com/telesoho/vscode-markdown-paste-image/discussions

## Contributing

Expand Down
Loading

0 comments on commit 1de6763

Please sign in to comment.