-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fix Replicate API Key Passing #153
Comments
Here is the call stack to the unauthenticated request. The client it is using is the default Client, and it has no api_key.
|
Default client is instantiated here: When we are in this stack:
|
This is where the |
I was able to get this to work by setting the api token directly on the
I wouldn't use this in recipes since it accesses a "private" variable, but it demonstrates what is needed. The |
Langchain PR here to fix the most recent version of the Replicate LLM class. - MERGED I can probably now build off of this to fix the api key passthrough. NOTE: If no one reviews your PR within a few days, please @-mention one of baskaryan, efriis, eyurtsev, ccurme, vbarda, hwchase17. |
This PR fixes the Replicate API key passing. NOTE: If no one reviews the PR within a few days, please @-mention one of baskaryan, efriis, eyurtsev, ccurme, vbarda, hwchase17. |
langchain-community.llms.replicate.Replicate doesn't pass its
replicate_api_key
parameter to the client it uses to access the service to get the version_obj and other things in _create_prediction().Step 1:
Step 2:
The text was updated successfully, but these errors were encountered: