Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds LangChain translation example #100

Closed
wants to merge 4 commits into from
Closed

Conversation

rachfop
Copy link
Contributor

@rachfop rachfop commented Dec 15, 2023

What was changed

Add an example of LangChain.

Why?

Checklist

  1. Closes

I need help with Poetry and a Pydantic Converter.

I tried setting the dev dependencies like this, so I wouldn't have to change the top-level version - but that didn't work.
So I just overwrote the Python dependcy.

dependencies = { langchain = { version = "^0.0.350", python = ">=3.8.1,<4.0" }, openai = { version = "^1.4.0", python = ">=3.8,<4.0" }, fastapi = { version="^0.105.0", python = ">=3.8,<4.0"}, uvicorn = { version = "^0.24.0.post1", extras = ["standard"], python = ">=3.8,<4.0" } }

While this code works, it probably needs a Pydantic Convert for V2 to properly serialize.

  1. How was this tested:
  1. Any docs updates needed?

@rachfop rachfop linked an issue Dec 15, 2023 that may be closed by this pull request
pyproject.toml Show resolved Hide resolved
pyproject.toml Outdated Show resolved Hide resolved
langchain/starter.py Outdated Show resolved Hide resolved
@rachfop rachfop closed this Feb 20, 2024
@rachfop rachfop deleted the 55-sample-request-langchain branch February 20, 2024 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sample request: LangChain
2 participants