-
Notifications
You must be signed in to change notification settings - Fork 9
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
LangChain Integration #60
Open
falquaddoomi
wants to merge
11
commits into
main
Choose a base branch
from
langchain-integration
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+180
−142
Open
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
de34033
Replaced openai dependency with langchain_openai
falquaddoomi ae19171
For posterity, updates to latest release openai, updates code accordi…
falquaddoomi 33d0adc
Switches from openai to langchain_openai, updates tests accordingly.
falquaddoomi 8e75813
Passed the remaining important(?) params, max_tokens and stop, to inv…
falquaddoomi e4da6f0
Changed langchain-openai dep to 0.2.x, so we get patch releases
falquaddoomi cdca3b8
Added direct dependency on langchain-core~=0.3.6, since we use it dir…
falquaddoomi 9a2d11b
Ran black on models.py as suggested
falquaddoomi 3d52297
Merge branch 'main' into langchain-integration
falquaddoomi bfacb16
Removes defunct 'edits' endpoint code, tests, and mentions in docs.
falquaddoomi 3bafcf6
Adds docstring to get_params(), other small comment and consistency t…
falquaddoomi a98f69a
Formatted code w/black
falquaddoomi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
|
||
setuptools.setup( | ||
name="manubot-ai-editor", | ||
version="0.5.2", | ||
version="0.5.3", | ||
author="Milton Pividori", | ||
author_email="[email protected]", | ||
description="A Manubot plugin to revise a manuscript using GPT-3", | ||
|
@@ -25,7 +25,8 @@ | |
], | ||
python_requires=">=3.10", | ||
install_requires=[ | ||
"openai==0.28", | ||
"langchain-core~=0.3.6", | ||
"langchain-openai~=0.2.0", | ||
"pyyaml", | ||
], | ||
classifiers=[ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A bit outside the PR scope but adding as this is a fresh read of the code and I'm less familiar with how
params
are used. I noticed the docstring doesn't match the method parameters. Consider updating this when there's a chance.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm thinking we'll do a comprehensive review of the docstrings for the PR that addresses issue #68, but in this PR I've attempted to add some documentation to the
GPT3CompletionModel.get_params()
method to address this gap.