Skip to content

Commit

Permalink
Support Predibase-LangChain integration for both Predibase SDK-v1 and…
Browse files Browse the repository at this point in the history
… Predibase SDK-v2 users.
  • Loading branch information
alexsherstinsky committed Apr 24, 2024
1 parent 528a9be commit f3ca16f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libs/community/langchain_community/llms/predibase.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ def _call(
from predibase import Predibase

os.environ["PREDIBASE_GATEWAY"] = "https://api.app.predibase.com"
predibase: Predibase = Predibase(api_token=self.predibase_api_key.get_secret_value())
predibase: Predibase = Predibase(
api_token=self.predibase_api_key.get_secret_value()
)

import requests
from lorax.client import Client as LoraxClient
Expand Down

0 comments on commit f3ca16f

Please sign in to comment.