File tree Expand file tree Collapse file tree 3 files changed +13
-7
lines changed
edubotics_core/chat/langchain Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 11name : Publish to PyPI
22
33on :
4- push :
5- branches :
6- - main
7- tags :
8- - " v*"
4+ release :
5+ types : [published]
96
107jobs :
118 deploy :
Original file line number Diff line number Diff line change @@ -240,7 +240,7 @@ def create_stuff_documents_chain(
240240 document_separator : str = DEFAULT_DOCUMENT_SEPARATOR ,
241241) -> Runnable [Dict [str , Any ], Any ]:
242242 """Create a chain for passing a list of Documents to a model."""
243- _validate_prompt (prompt )
243+ _validate_prompt (prompt , "context" )
244244 _document_prompt = document_prompt or DEFAULT_DOCUMENT_PROMPT
245245 _output_parser = output_parser or StrOutputParser ()
246246
Original file line number Diff line number Diff line change 11from setuptools import setup , find_packages
2+ import os
23
34# Read the contents of requirements.txt
45with open ("requirements.txt" ) as f :
78with open ("README.md" ) as f :
89 readme = f .read ()
910
11+ # Tag is in the format v0.1.0, so we need to remove the v
12+ git_tag = os .environ .get ("GITHUB_REF_NAME" , "" )
13+
14+ if git_tag .startswith ("v" ):
15+ version = git_tag [1 :]
16+ else :
17+ version = git_tag
18+
1019setup (
1120 name = "edubotics-core" ,
12- version = "0.1.0" ,
21+ version = version ,
1322 packages = find_packages (),
1423 package_dir = {"edubotics-core" : "edubotics_core" },
1524 python_requires = ">=3.7" ,
You can’t perform that action at this time.
0 commit comments