steamship-packages / langchain-production-starter Goto Github PK
View Code? Open in Web Editor NEWDeploy LangChain Agents and connect them to Telegram
Deploy LangChain Agents and connect them to Telegram
Is there any chance to get support for Whatsapp instead of Telegram?
How can I integrate this telegram chatbot to my Telegram app?
Hi! Thx for this app ;)
I've clicked "Click here to get your free key" and then "Continue with Google" but I'm in a loop:
Hey there ๐ Just wanted to let you know that your app on Streamlit Cloud deployed from this repo has gone over its resource limits. Access to the app is temporarily limited. Visit the app to see more details and possible solutions.
Got following error running deploy.
langchain-agent-production-starter ๎ฐ ๎ main ? ๎ฐ python3 deploy.py ๎ฒ โ ๎ฒ 7361 ๎ฒ 12:58:13
Steamship Python CLI version 2.16.10rc1
What handle would you like to use for your package? Valid characters are a-z and -: test-demo
Creating / fetching package with handle [test-demo]... Done.
Bundling content... Done. ๐ฆ
What should the new version be? Valid characters are a-z, 0-9, . and - [1.0.0]:
Deploying version 1.0.0 of [test-demo]... ๐ข๐ข๐ข๐ข๐ข๐ข๐ข๐ข๐ข๐ข๐ข๐ข๐ข๐ข๐ข๐ข๐ข๐ข๐ข๐ข๐ข๐ข๐ข๐ข๐ข๐ข๐ข๐ข๐ข๐ข๐ข๐ข๐ข๐ข๐ข๐ข๐ข๐ข๐ข๐ข๐ข๐ข
Unable to deploy package version.
Server returned message: There was an error loading the main file (it must be named api.py):
Traceback (most recent call last):
File "/var/task/steamship/invocable/lambda_handler.py", line 285, in safely_find_invocable_class
module = importlib.import_module("api")
File "/var/lang/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 843, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/var/task/api.py", line 4, in <module>
from langchain.agents import Tool, initialize_agent, AgentType, AgentExecutor
File "/var/task/langchain/__init__.py", line 6, in <module>
from langchain.agents import MRKLChain, ReActChain, SelfAskWithSearchChain
File "/var/task/langchain/agents/__init__.py", line 2, in <module>
from langchain.agents.agent import (
File "/var/task/langchain/agents/agent.py", line 15, in <module>
from langchain.agents.tools import InvalidTool
File "/var/task/langchain/agents/tools.py", line 8, in <module>
from langchain.tools.base import BaseTool, Tool, tool
File "/var/task/langchain/tools/__init__.py", line 40, in <module>
from langchain.tools.vectorstore.tool import (
File "/var/task/langchain/tools/vectorstore/tool.py", line 13, in <module>
from langchain.chains import RetrievalQA, RetrievalQAWithSourcesChain
File "/var/task/langchain/chains/__init__.py", line 2, in <module>
from langchain.chains.api.base import APIChain
File "/var/task/langchain/chains/api/base.py", line 13, in <module>
from langchain.chains.api.prompt import API_RESPONSE_PROMPT, API_URL_PROMPT
File "/var/task/langchain/chains/api/prompt.py", line 2, in <module>
from langchain.prompts.prompt import PromptTemplate
File "/var/task/langchain/prompts/__init__.py", line 3, in <module>
from langchain.prompts.chat import (
File "/var/task/langchain/prompts/chat.py", line 10, in <module>
from langchain.memory.buffer import get_buffer_string
File "/var/task/langchain/memory/__init__.py", line 25, in <module>
from langchain.memory.vectorstore import VectorStoreRetrieverMemory
File "/var/task/langchain/memory/vectorstore.py", line 10, in <module>
from langchain.vectorstores.base import VectorStoreRetriever
File "/var/task/langchain/vectorstores/__init__.py", line 2, in <module>
from langchain.vectorstores.analyticdb import AnalyticDB
File "/var/task/langchain/vectorstores/analyticdb.py", line 15, in <module>
from langchain.embeddings.base import Embeddings
File "/var/task/langchain/embeddings/__init__.py", line 19, in <module>
from langchain.embeddings.openai import OpenAIEmbeddings
File "/var/task/langchain/embeddings/openai.py", line 66, in <module>
class OpenAIEmbeddings(BaseModel, Embeddings):
File "pydantic/main.py", line 197, in pydantic.main.ModelMetaclass.__new__
fields[ann_name] = ModelField.infer(
File "pydantic/fields.py", line 506, in pydantic.fields.ModelField.infer
return cls(
File "pydantic/fields.py", line 436, in pydantic.fields.ModelField.__init__
self.prepare()
File "pydantic/fields.py", line 552, in pydantic.fields.ModelField.prepare
self._type_analysis()
File "pydantic/fields.py", line 663, in pydantic.fields.ModelField._type_analysis
self.sub_fields = [self._create_sub_type(t, f'{self.name}_{display_as_type(t)}') for t in types_]
File "pydantic/fields.py", line 808, in pydantic.fields.ModelField._create_sub_type
return self.__class__(
File "pydantic/fields.py", line 436, in pydantic.fields.ModelField.__init__
self.prepare()
File "pydantic/fields.py", line 552, in pydantic.fields.ModelField.prepare
self._type_analysis()
File "pydantic/fields.py", line 668, in pydantic.fields.ModelField._type_analysis
elif issubclass(origin, Tuple): # type: ignore
File "/var/lang/lib/python3.8/typing.py", line 774, in __subclasscheck__
return issubclass(cls, self.__origin__)
TypeError: issubclass() arg 1 must be a class
Aborted!
bot_token:
Iam interesting
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.