Skip to content

Commit

Permalink
refactor: relative import fix and new project name
Browse files Browse the repository at this point in the history
让我们呼喊祂的名字:“榴莲猫!榴莲猫!榴莲猫!”
  • Loading branch information
LaoshuBaby committed Apr 1, 2024
1 parent aca0d62 commit 8e0c693
Show file tree
Hide file tree
Showing 12 changed files with 48 additions and 19 deletions.
17 changes: 13 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# LLM Unified Client
# liulianmao

**LLMUC**[@LaoshuBaby](https://github.com/LaoshuBaby)自用的一个在命令行或者IDE中使用的大语言模型客户端。本项目主要为鼠宝宝及友人提供服务,亦用作个人codebase在各种机器人和实验性项目中快速调用。
**liulianmao**[@LaoshuBaby](https://github.com/LaoshuBaby)自用的一个在命令行或者IDE中使用的大语言模型客户端。本项目主要为鼠宝宝及友人提供服务,亦用作个人codebase在各种机器人和实验性项目中快速调用。

目前仅测试了OpenAI提供的服务。理论上亦可直接用于零一万物或通义千问的服务。

Expand All @@ -14,6 +14,8 @@

如果您是希望寻找图形化的客户端,可以去隔壁的[ChatBox](https://github.com/Bin-Huang/chatbox)[ChatHub](https://github.com/chathub-dev/chathub)[LibreChat](https://github.com/danny-avila/LibreChat)看看。

仅提供简体中文文档。若有疑问您可以联系我。

## 配置方法

安装所需要的库:
Expand Down Expand Up @@ -49,6 +51,13 @@ pip install langchain langchain_openai

## 联系我

Telegram [@laoshubaby](https://t.me/laoshubaby)
* Telegram: [@laoshubaby](https://t.me/laoshubaby)
* Email: [laoshubaby@protonmail.com](mailto:laoshubaby@protonmail.com)

~~( 虽然是MIT协议,您可以自由使用,但如果您是在GitHub上搜到的这个项目,建议使用前先与我咨询,因为可能真的不好用。若能帮到您,就算交个朋友啦!**φ(゜▽゜*)♪** )~~

## 关于命名

Q: 如果是硬凑LLM首字母缩写,为什么不用“溜溜梅”?

~~( 虽然是MIT协议,您可以自由使用,但如果您是在GitHub上搜到的这个项目,建议使用前先与我咨询,因为可能真的不好用。若能帮到您,就算交个朋友啦!**φ(゜▽゜*)♪** )~~
A:我怕来告我。
17 changes: 13 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
[tool.poetry]
name = "llm_core"
version = "0.2.0"
description = "一个在命令行或者IDE中使用的大语言模型客户端。"
name = "liulianmao"
version = "1.0.0"
description = "A LLM client for use from the command line or IDE."
authors = ["快乐的老鼠宝宝 <laoshubaby@protonmail.com>"]
packages = [{ include = "llmuc", from = "src" }]
license = "MIT"
repository = "https://github.com/LaoshuBaby/liulianmao"
readme = "README.md"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
packages = [{ include = "liulianmao", from = "src" }]


[tool.poetry.dependencies]
python = "^3.6"
Expand Down
21 changes: 21 additions & 0 deletions src/liulianmao/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import os
import sys


current_dir = os.path.dirname(os.path.abspath(__file__))
parent_dir = os.path.dirname(current_dir)
if parent_dir not in sys.path:
sys.path.append(parent_dir)


from liulianmao.client_core import main as core

FEATURE = {
"core": True,
"langchain": False
}

if FEATURE["langchain"]:
from liulianmao.client_langchain import main as langchain

core()
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
import platform

PROJECT_NAME = "LLMUC"
PROJECT_NAME = "LIULIANMAO"
PROJECT_FOLDER = "." + PROJECT_NAME.lower()


Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 0 additions & 10 deletions src/llmuc/__main__.py

This file was deleted.

0 comments on commit 8e0c693

Please sign in to comment.