Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions archived/langchain-docs-benchmarking/app/server.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
from chat_langchain.chain import chain
from fastapi import FastAPI
from openai_functions_agent import agent_executor as openai_functions_agent_chain

from langserve import add_routes
from openai_functions_agent import agent_executor as openai_functions_agent_chain

app = FastAPI()

Expand Down
2 changes: 1 addition & 1 deletion langchain_benchmarks/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def add(self, task: BaseTask) -> None:


def _get_model_class_from_path(
path: str
path: str,
) -> Union[Type[BaseChatModel], Type[BaseLanguageModel]]:
"""Get the class of the model."""
module_name, attribute_name = path.rsplit(".", 1)
Expand Down
36 changes: 18 additions & 18 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,7 @@ extend-include = ["*.ipynb"]
line-length = 88

[tool.ruff.isort]
# TODO(Team): Temporary to make isort work with examples.
# examples assume langserve is available as a 3rd party package
# For simplicity we'll define it as first party for now can update later.
known-first-party = ["langserve"]
known-first-party = ["langchain-benchmarks"]

[tool.mypy]
disallow_untyped_defs = "True"
Expand Down