Skip to content

Commit

Permalink
0.4.5
Browse files Browse the repository at this point in the history
  • Loading branch information
MarchLiu committed Oct 10, 2024
1 parent 5ef619a commit 99d3b26
Show file tree
Hide file tree
Showing 25 changed files with 1,301 additions and 53 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,13 @@ Throw a alert dialog if the communication failed.
- Support add more language translators in settings. They will be added into command palette.
- Add Unit Test Command and the cell button in code cell

### 0.4.5

- Add split cell command. The command split markdown cell content to markdown/mermaid and code cells. It is
useful if the AI response mixed markdown text and code
- Add continue mode. If continue mode is activated, add and active a new markdown cell below the AI response.
- Add a cell toolbar button for continuous historical chat until current cell even if continuous mode is deactivated.

## About Me

My name is Liu Xin, and my English name is Mars Liu and previously used March Liu. I translated the Python
Expand Down
2 changes: 1 addition & 1 deletion jupyter_litchi/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file is auto-generated by Hatchling. As such, do not:
# - modify
# - track in version control e.g. be sure to add to .gitignore
__version__ = VERSION = '0.4.3'
__version__ = VERSION = '0.4.5'
5 changes: 4 additions & 1 deletion jupyter_litchi/labextension/build_log.json
Original file line number Diff line number Diff line change
Expand Up @@ -699,8 +699,11 @@
"import": false,
"singleton": true
},
"@rjsf/validator-ajv8": {},
"regjsparser": {},
"ts-jest": {},
"jupyter-litchi": {
"version": "0.4.3",
"version": "0.4.4",
"singleton": true,
"import": "/Users/mars/jobs/litchi/lib/index.js"
}
Expand Down
11 changes: 7 additions & 4 deletions jupyter_litchi/labextension/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jupyter-litchi",
"version": "0.4.3",
"version": "0.4.4",
"description": "A JupyterLab extension.",
"keywords": [
"jupyter",
Expand Down Expand Up @@ -63,7 +63,10 @@
},
"dependencies": {
"@jupyterlab/application": "^4.0.0",
"@jupyterlab/settingregistry": "^4.0.0"
"@jupyterlab/settingregistry": "^4.0.0",
"@rjsf/validator-ajv8": "5.13.4",
"regjsparser": "^0.11.1",
"ts-jest": "^29.2.5"
},
"devDependencies": {
"@jupyterlab/builder": "^4.0.0",
Expand All @@ -78,7 +81,7 @@
"eslint": "^8.36.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-prettier": "^5.0.0",
"jest": "^29.2.0",
"jest": "^29.7.0",
"npm-run-all": "^4.1.5",
"prettier": "^3.0.0",
"rimraf": "^5.0.1",
Expand All @@ -105,7 +108,7 @@
"outputDir": "jupyter_litchi/labextension",
"schemaDir": "schema",
"_build": {
"load": "static/remoteEntry.a623655cf5e68d92dc51.js",
"load": "static/remoteEntry.142f3ffd9e52a3d01028.js",
"extension": "./extension",
"style": "./style"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
{
"command": "litchi:selected"
},
{
"command": "litchi:continuous"
},
{
"type": "separator"
},
Expand All @@ -32,7 +35,7 @@
"args": {"language": "Chinese"}
},
{
"command": "litchi:show-roles-toggle"
"type": "separator"
},
{
"command": "litchi:unit-test"
Expand All @@ -42,6 +45,9 @@
},
{
"command": "litchi:show-roles-toggle"
},
{
"command": "litchi:continuous-toggle"
}
]
}
Expand All @@ -51,6 +57,10 @@
"Notebook": [
],
"Cell": [
{
"name": "litchi-continuous",
"command": "litchi:continuous"
},
{
"name": "litchi-translate-chinese",
"command": "litchi:translate",
Expand All @@ -68,6 +78,10 @@
{
"name": "litchi-unit-test",
"command": "litchi:unit-test"
},
{
"name": "litchi-split-cell",
"command": "litchi:split-cell"
}
]
},
Expand Down Expand Up @@ -104,6 +118,106 @@
"title": "Translate Support:",
"description": "List the Languages all you need to a translate shortcut",
"default": []
},
"continuous-mode": {
"type": "boolean",
"title": "Continuous Mode",
"description": "Auto generate a markdown cell below the response cell if continuous mode.",
"default": true
},
"providers": {
"type": "array",
"title": "API Providers:",
"description": "Settings for your AI service connections",
"items": {
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": ["OpenAI", "Ollama", "MoonShot","Custom"],
"default": "Ollama",
"title": "API Category: ",
"description": "Select a known Category or custom"
},
"name": {
"type": "string",
"title": "Provider Name: ",
"description": "Set the name for your provider"
},
"host": {
"type": "string",
"title": "Host: ",
"description": "Set the host for your provider",
"default": "http://localhost:11434"
},
"list": {
"type": "string",
"title": "List Models: ",
"description": "Set the API where your provider list models",
"default": "/api/tags"
},
"chat": {
"type": "string",
"title": "Chat: ",
"description": "Set the API where your provider chat with you",
"default": "/api/chat"
},
"headers": {
"type": "array",
"title": "Request Headers: ",
"description": "Set Http(s) Request Headers",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"title": "Header Name"
},
"value": {
"type": "string",
"title": "Header Value"
}
}
}
},
"query": {
"type": "array",
"title": "Query Parameters: ",
"description": "Set Http(s) Request Query Parameters. They will been add in request url",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"title": "Name"
},
"value": {
"type": "string",
"title": "Value"
}
}
}
},
"parameters": {
"type": "array",
"title": "Request Parameters: ",
"description": "Set Http(s) Request Extend Parameters. They will been add in request json body",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"title": "Name"
},
"value": {
"type": "string",
"title": "Value"
}
}
}
}
}
}
}
},
"additionalProperties": false,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jupyter-litchi",
"version": "0.4.3",
"version": "0.4.4",
"description": "A JupyterLab extension.",
"keywords": [
"jupyter",
Expand Down Expand Up @@ -63,7 +63,10 @@
},
"dependencies": {
"@jupyterlab/application": "^4.0.0",
"@jupyterlab/settingregistry": "^4.0.0"
"@jupyterlab/settingregistry": "^4.0.0",
"@rjsf/validator-ajv8": "5.13.4",
"regjsparser": "^0.11.1",
"ts-jest": "^29.2.5"
},
"devDependencies": {
"@jupyterlab/builder": "^4.0.0",
Expand All @@ -78,7 +81,7 @@
"eslint": "^8.36.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-prettier": "^5.0.0",
"jest": "^29.2.0",
"jest": "^29.7.0",
"npm-run-all": "^4.1.5",
"prettier": "^3.0.0",
"rimraf": "^5.0.1",
Expand Down

This file was deleted.

Loading

0 comments on commit 99d3b26

Please sign in to comment.