Giter Club home page Giter Club logo

shibing624 / chatpilot Goto Github PK

View Code? Open in Web Editor NEW
478.0 478.0 47.0 4.91 MB

ChatPilot: Chat Agent Web UI,实现Chat对话前端,支持Google搜索、文件网址对话(RAG)、代码解释器功能,复现了Kimi Chat(文件,拖进来;网址,发出来)。

Home Page: https://chat.mulanai.com

License: Apache License 2.0

Dockerfile 0.06% Python 24.67% Shell 0.13% Batchfile 0.14% JavaScript 0.37% CSS 2.11% HTML 0.35% Svelte 62.40% TypeScript 9.76%
agent agentica agents chat chatbot chatgpt chatpdf chatpilot kimi langchain llm

chatpilot's Introduction

chatpilot's People

Contributors

shibing624 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

chatpilot's Issues

error when run `npm run build`

[vite:load-fallback] Could not load /Users/Documents/GitHub/ChatPilot/web/src/lib/stores (imported by src/routes/+layout.svelte): ENOENT: no such file or directory, open '/Users/Documents/GitHub/ChatPilot/web/src/lib/stores'
error during build:
Error: Could not load /Users/Documents/GitHub/ChatPilot/web/src/lib/stores (imported by src/routes/+layout.svelte): ENOENT: no such file or directory, open '/Users/Documents/GitHub/ChatPilot/web/src/lib/stores'
at async open (node:internal/fs/promises:633:25)
at async Object.readFile (node:internal/fs/promises:1242:14)
at async PluginDriver.hookFirstAndGetPlugin (file:///Users/Documents/GitHub/ChatPilot/web/node_modules/rollup/dist/es/shared/node-entry.js:25444:28)
at async file:///Users/Documents/GitHub/ChatPilot/web/node_modules/rollup/dist/es/shared/node-entry.js:24611:75
at async Queue.work (file:///Users/Documents/GitHub/ChatPilot/web/node_modules/rollup/dist/es/shared/node-entry.js:25654:32)

ValueError: The text2vec python package is not installed. Please install it with pip install text2vec

Describe the bug

rag_app.py line: 125:
elif "text2vec" in app.state.RAG_EMBEDDING_MODEL:
app.state.sentence_transformer_ef = embedding_functions.Text2VecEmbeddingFunction(
model_name=app.state.RAG_EMBEDDING_MODEL
)

error info:
File "F:\github\ChatPilot\chatpilot\server.py", line 29, in
from chatpilot.apps.rag_app import app as rag_app
File "F:\github\ChatPilot\chatpilot\apps\rag_app.py", line 125, in
app.state.sentence_transformer_ef = embedding_functions.Text2VecEmbeddingFunction(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\github\ChatPilot\venv\Lib\site-packages\chromadb\utils\embedding_functions\text2vec_embedding_function.py", line 14, in init
raise ValueError(

实际text2vec已安装成功:
chromadb 0.5.5
text2vec 1.2.9

初步排查embedding_functions没有Text2VecEmbeddingFunction()方法

使用画图模型无法出图

模型:Dall-E-3
我测试了下,key是可以生成图片的。
[2024-06-03 11:15:24 +0800] [687] [ERROR] Exception in ASGI application
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/uvicorn/protocols/http/httptools_impl.py", line 399, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "/usr/local/lib/python3.10/dist-packages/uvicorn/middleware/proxy_headers.py", line 70, in call
return await self.app(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/fastapi/applications.py", line 1054, in call
await super().call(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/applications.py", line 123, in call
await self.middleware_stack(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/errors.py", line 186, in call
raise exc
File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/errors.py", line 164, in call
await self.app(scope, receive, _send)
File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/base.py", line 189, in call
with collapse_excgroups():
File "/usr/lib/python3.10/contextlib.py", line 153, in exit
self.gen.throw(typ, value, traceback)
File "/usr/local/lib/python3.10/dist-packages/starlette/_utils.py", line 93, in collapse_excgroups
raise exc
File "/usr/local/lib/python3.10/dist-packages/starlette/responses.py", line 261, in wrap
await func()
File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/base.py", line 217, in stream_response
return await super().stream_response(send)
File "/usr/local/lib/python3.10/dist-packages/starlette/responses.py", line 250, in stream_response
async for chunk in self.body_iterator:
File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/base.py", line 181, in body_stream
raise app_exc
File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/base.py", line 151, in coro
await self.app(scope, receive_or_disconnect, send_no_error)
File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/cors.py", line 93, in call
await self.simple_response(scope, receive, send, request_headers=headers)
File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/cors.py", line 148, in simple_response
await self.app(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/base.py", line 189, in call
with collapse_excgroups():
File "/usr/lib/python3.10/contextlib.py", line 153, in exit
self.gen.throw(typ, value, traceback)
File "/usr/local/lib/python3.10/dist-packages/starlette/_utils.py", line 93, in collapse_excgroups
raise exc
File "/usr/local/lib/python3.10/dist-packages/starlette/responses.py", line 261, in wrap
await func()
File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/base.py", line 217, in stream_response
return await super().stream_response(send)
File "/usr/local/lib/python3.10/dist-packages/starlette/responses.py", line 250, in stream_response
async for chunk in self.body_iterator:
File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/base.py", line 181, in body_stream
raise app_exc
File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/base.py", line 151, in coro
await self.app(scope, receive_or_disconnect, send_no_error)
File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/exceptions.py", line 65, in call
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "/usr/local/lib/python3.10/dist-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 756, in call
await self.middleware_stack(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 776, in app
await route.handle(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/routing.py", line 485, in handle
await self.app(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/fastapi/applications.py", line 1054, in call
await super().call(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/applications.py", line 123, in call
await self.middleware_stack(scope, receive, send)
File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/errors.py", line 186, in call
raise exc
File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/errors.py", line 164, in call
await self.app(scope, receive, _send)
File "/usr/local/lib/python3.10/dist-packages/starlette/middleware/base.py", line 189, in call
with collapse_excgroups():
File "/usr/lib/python3.10/contextlib.py", line 153, in exit
self.gen.throw(typ, value, traceback)
File "/usr/local/lib/python3.10/dist-packages/starlette/_utils.py", line 93, in collapse_excgroups
raise exc
File "/usr/local/lib/python3.10/dist-packages/starlette/responses.py", line 261, in wrap
await func()
File "/usr/local/lib/python3.10/dist-packages/starlette/responses.py", line 250, in stream_response
async for chunk in self.body_iterator:
File "/opt/chatPilot/chatpilot/apps/openai_app.py", line 437, in event_generator
async for event in events:
File "/usr/local/lib/python3.10/dist-packages/langchain_core/runnables/base.py", line 4725, in astream_events
async for item in self.bound.astream_events(
File "/usr/local/lib/python3.10/dist-packages/langchain_core/runnables/base.py", line 1136, in astream_events
async for log in _astream_log_implementation( # type: ignore[misc]
File "/usr/local/lib/python3.10/dist-packages/langchain_core/tracers/log_stream.py", line 616, in _astream_log_implementation
await task
File "/usr/local/lib/python3.10/dist-packages/langchain_core/tracers/log_stream.py", line 570, in consume_astream
async for chunk in runnable.astream(input, config, **kwargs):
File "/usr/local/lib/python3.10/dist-packages/langchain/agents/agent.py", line 1592, in astream
async for step in iterator:
File "/usr/local/lib/python3.10/dist-packages/langchain/agents/agent_iterator.py", line 240, in aiter
async for chunk in self.agent_executor._aiter_next_step(
File "/usr/local/lib/python3.10/dist-packages/langchain/agents/agent.py", line 1303, in _aiter_next_step
output = await self.agent.aplan(
File "/usr/local/lib/python3.10/dist-packages/langchain/agents/agent.py", line 553, in aplan
async for chunk in self.runnable.astream(
File "/usr/local/lib/python3.10/dist-packages/langchain_core/runnables/base.py", line 2900, in astream
async for chunk in self.atransform(input_aiter(), config, **kwargs):
File "/usr/local/lib/python3.10/dist-packages/langchain_core/runnables/base.py", line 2883, in atransform
async for chunk in self._atransform_stream_with_config(
File "/usr/local/lib/python3.10/dist-packages/langchain_core/runnables/base.py", line 1985, in _atransform_stream_with_config
chunk = cast(Output, await py_anext(iterator))
File "/usr/local/lib/python3.10/dist-packages/langchain_core/tracers/log_stream.py", line 237, in tap_output_aiter
async for chunk in output:
File "/usr/local/lib/python3.10/dist-packages/langchain_core/runnables/base.py", line 2853, in _atransform
async for output in final_pipeline:
File "/usr/local/lib/python3.10/dist-packages/langchain_core/runnables/base.py", line 1316, in atransform
async for ichunk in input:
File "/usr/local/lib/python3.10/dist-packages/langchain_core/runnables/base.py", line 4748, in atransform
async for item in self.bound.atransform(
File "/usr/local/lib/python3.10/dist-packages/langchain_core/runnables/base.py", line 1334, in atransform
async for output in self.astream(final, config, **kwargs):
File "/usr/local/lib/python3.10/dist-packages/langchain_core/language_models/chat_models.py", line 319, in astream
raise e
File "/usr/local/lib/python3.10/dist-packages/langchain_core/language_models/chat_models.py", line 297, in astream
async for chunk in self._astream(
File "/usr/local/lib/python3.10/dist-packages/langchain_openai/chat_models/base.py", line 511, in _astream
async for chunk in await self.async_client.create(
File "/usr/local/lib/python3.10/dist-packages/openai/resources/chat/completions.py", line 1334, in create
return await self._post(
File "/usr/local/lib/python3.10/dist-packages/openai/_base_client.py", line 1738, in post
return await self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)
File "/usr/local/lib/python3.10/dist-packages/openai/_base_client.py", line 1441, in request
return await self._request(
File "/usr/local/lib/python3.10/dist-packages/openai/_base_client.py", line 1532, in _request
raise self._make_status_error_from_response(err.response) from None
openai.PermissionDeniedError: Error code: 403 - {'error': {'message': 'You are not allowed to sample from this model', 'type': 'invalid_request_error', 'param': None, 'code': None}}

登录验证 无法注册,出现注册失败

Describe the bug

Please provide a clear and concise description of what the bug is. If applicable, add screenshots to help explain your problem, especially for visualization related problems.
image

why don't use tortoise ORM ?

This project used ORM is Peewee。

Peewee ORM is a simple and lightweight ORM, but it does not support asynchronous operations.

Can you change to tortoise ORM?

打开页面为空

我是直接前端解压buid.zip,后端直接启动start.sh,还需要设置什么吗,不如.env,怎么填入自定义大模型地址

前端页面打开为空
image

命令行输出
image

error usage of type hint

Describe the bug

image

it will cause TypeError: 'type' object is not subscriptable

same error in litellm==1.30.7

image

how to search

when I asked weather,Beijing is ok,but other is not running
image
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.