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

Feat/shence #2

Closed
wants to merge 239 commits into from
Closed
Changes from 2 commits
Commits
Show all changes
239 commits
Select commit Hold shift + click to select a range
d097fcf
add: setup initial files
shenceyang Nov 11, 2023
2778879
Merge remote-tracking branch 'origin/develop' into feat/Shence
shenceyang Nov 12, 2023
01194ab
add: config and validation for steam
shenceyang Nov 12, 2023
c16e000
add: functions with API calls & prompt
shenceyang Nov 13, 2023
a4cdb72
add: Implemented the get_id function.
JohnY2002 Nov 14, 2023
4abac50
add recommended games (WIP)
andrewqian2001 Nov 14, 2023
effd9af
add: Implemented the get_id function.
JohnY2002 Nov 14, 2023
b8b4799
Merge branch 'feat/Shence' of https://github.com/muntaqamahmood/langc…
andrewqian2001 Nov 14, 2023
b76a7d2
add: Modified get_id to return a dictionary now.
JohnY2002 Nov 14, 2023
b2454e9
Merge branch 'feat/Shence' of https://github.com/muntaqamahmood/langc…
JohnY2002 Nov 14, 2023
ce45cd5
fix: change the details that returns to users
shenceyang Nov 14, 2023
61f0821
remove json
andrewqian2001 Nov 14, 2023
658e128
fix: fix bugs in steam.py
shenceyang Nov 14, 2023
961eed8
fix: fix bugs in steam.py
shenceyang Nov 14, 2023
ebfc67b
fix: fix bugs in steam.py
shenceyang Nov 14, 2023
cd7856f
use function to get game details
andrewqian2001 Nov 14, 2023
5638635
change prompt wording
andrewqian2001 Nov 14, 2023
e92aec1
fix: lint check
muntaqamahmood Nov 15, 2023
2bc5150
Merge branch 'feat/Shence' of https://github.com/muntaqamahmood/langc…
muntaqamahmood Nov 15, 2023
7a1d5d2
save: new recommed_games WIP commented out
muntaqamahmood Nov 15, 2023
f215696
add: updated recommended_games
muntaqamahmood Nov 16, 2023
5c8e90f
add: modified get_id_link_price to only show the first research result.
JohnY2002 Nov 16, 2023
f866610
fix: recommendation flow and cleanup old code
muntaqamahmood Nov 19, 2023
6ede07f
Merge branch 'feat/Shence' of https://github.com/muntaqamahmood/langc…
muntaqamahmood Nov 19, 2023
ac9772d
Merge branch 'langchain-ai:master' into feat/Shence
muntaqamahmood Nov 19, 2023
634de5f
finish recommend games, add agent
andrewqian2001 Nov 19, 2023
0ba2909
fix recommend games
andrewqian2001 Nov 19, 2023
8c374d9
remove unused param
muntaqamahmood Nov 20, 2023
02a1303
DOCS: updated langchain stack img to be svg (#13540)
bracesproul Nov 20, 2023
cc50e02
DOCS `langchain decorators` update (#13535)
leo-gan Nov 20, 2023
420a175
fix: Make YoutubeLoader support on demand language translation (#13583)
RaflyLesmana3003 Nov 20, 2023
4745176
Add embedchain retriever (#13553)
taranjeet Nov 20, 2023
325bdac
feat: load all namespaces (#13549)
andstu Nov 20, 2023
6bc0826
Fix for oracle schema parsing stated on the issue #7928 (#13545)
Tazc54 Nov 20, 2023
69d39e2
fix: VLLMOpenAI -- create() got an unexpected keyword argument 'api_k…
umair313 Nov 20, 2023
ad0c3b9
Fix Astra integration tests (#13520)
nicoloboschi Nov 20, 2023
7100d58
Introduce search_kwargs for Custom Parameters in BingSearchAPIWrapper…
shumpei19 Nov 20, 2023
8362bd7
AstraDB: use includeSimilarity option instead of $similarity (#13512)
nicoloboschi Nov 20, 2023
43972be
docs updating `AzureML` notebooks (#13492)
leo-gan Nov 20, 2023
16f7912
BUG: fix hunyuan appid type (#13496)
johnmai-dev Nov 20, 2023
e53f59f
DOCS: doc-string - langchain.vectorstores.dashvector.DashVector (#13502)
linzeyang Nov 20, 2023
6bf9b2c
BUG: Limit Azure OpenAI embeddings chunk size (#13425)
mspronesti Nov 20, 2023
a93616e
FEAT: Add azure cognitive health tool (#13448)
jwbeck97 Nov 20, 2023
ef7802b
Add llama2-13b-chat-v1 support to `chat_models.BedrockChat` (#13403)
WouterDurnez Nov 20, 2023
df03267
Fix tool arguments formatting in StructuredChatAgent (#10480)
skozlovf Nov 20, 2023
674bd90
DOCS: Fix typo in MongoDB memory docs (#13588)
sijunhe Nov 20, 2023
190952f
IMPROVEMENT: Minor redis improvements (#13381)
tylerhutcherson Nov 20, 2023
10418ab
DeepLake Backwards compatibility fix (#13388)
adolkhan Nov 20, 2023
fe7b40c
feat: add ERNIE-Bot-4 Function Calling (#13320)
wangwei1237 Nov 20, 2023
b6f70d7
VertexAI LLM count_tokens method requires list of prompts (#13451)
stijntratsaertit Nov 20, 2023
f3fcdea
fixed an UnboundLocalError when no documents are found (#12995)
lkuligin Nov 20, 2023
1c08dbf
IMPROVEMENT: Reduce post-processing time for `DocAIParser` (#13210)
holtskinner Nov 20, 2023
52e23e5
BUG: Fix search_kwargs in Vectara retriever (#13299)
ofermend Nov 20, 2023
e620347
RELEASE: bump 339 (#13613)
baskaryan Nov 20, 2023
4eec47b
DOCS: update rag use case images (#13615)
baskaryan Nov 20, 2023
d82cbf5
Separate out langchain_core package (#13577)
hwchase17 Nov 20, 2023
99b4f46
REFACTOR: Add core as dep (#13623)
baskaryan Nov 20, 2023
611e1e0
Add template for gpt-crawler (#13625)
rlancemartin Nov 21, 2023
8329f81
Use pytest asyncio auto mode (#13643)
nfcampos Nov 21, 2023
17c6551
Add error rate (#13568)
hinthornw Nov 21, 2023
d32e511
REFACTOR: Refactor langchain_core (#13627)
baskaryan Nov 21, 2023
1161470
bump 0.0.339rc0 (#13664)
baskaryan Nov 21, 2023
c6937a2
fix templates dockerfile (#13672)
jakerachleff Nov 21, 2023
249c796
update langserve to v0.0.30 (#13673)
jakerachleff Nov 21, 2023
d65c36d
docugami cookbook (#13183)
tjaffri Nov 21, 2023
bfb980b
CLI 0.0.19 (#13677)
efriis Nov 21, 2023
59df16a
Update name (#13676)
hinthornw Nov 21, 2023
c61e306
BUG: more core fixes (#13665)
baskaryan Nov 21, 2023
083afba
BUG: Add core utils imports (#13688)
baskaryan Nov 21, 2023
a208abe
add callback import test (#13689)
baskaryan Nov 21, 2023
dc53523
IMPROVEMENT: bump core dep 0.0.3 (#13690)
baskaryan Nov 21, 2023
bb18b02
DOCS: fixed import error for BashOutputParser (#13680)
gyliu513 Nov 22, 2023
aec8715
DOCS: remove openai api key from cookbook (#13633)
gyliu513 Nov 22, 2023
04bddba
BUGFIX: Update bedrock.py to fix provider bug (#13646)
ruanwz Nov 22, 2023
131db4b
BUGFIX: anthropic models on bedrock (#13629)
efriis Nov 22, 2023
c5ae9f8
INFRA: Lint for imports (#13632)
efriis Nov 22, 2023
143049c
Added partial_variables to BaseStringMessagePromptTemplate.from_templ…
jponf Nov 22, 2023
5064890
BUGFIX: handle tool message type when converting to string (#13626)
tanujtiwari-at Nov 22, 2023
ace9e64
IMPROVEMENT: VoyageEmbeddings embed_general_texts (#13620)
thomas0809 Nov 22, 2023
a21e84f
BUGFIX: llm backwards compat imports (#13698)
baskaryan Nov 22, 2023
d47ee1a
BUGFIX: redis vector store overwrites falsey metadata (#13652)
dandanwei Nov 22, 2023
e327bb4
IMPROVEMENT: Conditionally import core type hints (#13700)
baskaryan Nov 22, 2023
78da341
TEMPLATES Metadata (#13691)
efriis Nov 22, 2023
16af282
BUGFIX: add prompt imports for backwards compat (#13702)
baskaryan Nov 22, 2023
5b90fe5
Fix locking (#13725)
hinthornw Nov 22, 2023
14d4fb9
DOCS: Fix typo/line break in python code (#13708)
h3l Nov 22, 2023
32d087f
REFACTOR: combine core documents files (#13733)
baskaryan Nov 22, 2023
3d28c1a
DOCS: fix core api ref build (#13744)
baskaryan Nov 22, 2023
b6b7654
INFRA: run LC ci after core changes (#13742)
baskaryan Nov 22, 2023
2bc5bd6
RELEASE: core 0.0.4 (#13745)
baskaryan Nov 22, 2023
56976f0
add: steam cookbook (WIP)
shenceyang Nov 22, 2023
f9e320f
debug: steam cookbook change markdown to python code, debugging site-…
shenceyang Nov 22, 2023
0be515f
RELEASE: 0.0.339rc1 (#13746)
baskaryan Nov 22, 2023
23566cb
DOCS: core editable dep api refs (#13747)
baskaryan Nov 22, 2023
163bf16
Add Batch Size kwarg to the llm start callback (#13483)
hinthornw Nov 22, 2023
72c108b
IMPROVEMENT: filter global warnings properly (#13754)
baskaryan Nov 23, 2023
df471b0
INFRA: temp rm master condition (#13753)
baskaryan Nov 23, 2023
bcf8398
Revert "INFRA: temp rm master condition (#13753)" (#13759)
baskaryan Nov 23, 2023
300ff01
RELEASE: core 0.0.5 (#13786)
baskaryan Nov 23, 2023
751226e
bump 0.0.339rc2 (#13787)
baskaryan Nov 23, 2023
58f7e10
BUGFIX: Add import types and typevars from core (#13829)
baskaryan Nov 25, 2023
272df9d
Astra DB, chat message history (#13836)
hemidactylus Nov 25, 2023
19c68c7
FEATURE: Astra DB, LLM cache classes (exact-match and semantic cache)…
hemidactylus Nov 25, 2023
c172605
IMPROVEMENT: Added title metadata to GoogleDriveLoader for optional F…
raelix Nov 25, 2023
7222c42
RELEASE: core 0.0.6 (#13853)
baskaryan Nov 25, 2023
0efa59c
RELEASE: 0.0.339rc3 (#13852)
baskaryan Nov 25, 2023
968ba69
add skeleton of thought (#13883)
hwchase17 Nov 27, 2023
9c2f9d7
fixed bugs in steam.py and toolkit.py and added example to steam.ipynb
JohnY2002 Nov 27, 2023
f2af820
DOCS: Fix Sample Code for Compatibility with Pydantic 2.0 (#13890)
ggeutzzang Nov 27, 2023
935f78c
FEATURE: Add retriever for Outline (#13889)
yuskhan Nov 27, 2023
6a35831
BUGFIX: export more types (#13886)
hwchase17 Nov 27, 2023
e42e95c
docs: fix link to `local_retrieval_qa` (#13872)
superpung Nov 27, 2023
1ad65f7
BUGFIX: Fix bugs with Cypher validation (#13849)
tomasonjo Nov 27, 2023
ff7d4d9
Update llamacpp.ipynb (#13840)
eltociear Nov 27, 2023
1983a39
FEATURE: Add OneNote document loader (#13841)
Dylan20XX Nov 27, 2023
3749af7
DOCS: fixed error in the docstring of RunnablePassthrough class (#13843)
ggeutzzang Nov 27, 2023
bfc12a4
DOCS: Simplified Docugami cookbook to remove code now available in do…
tjaffri Nov 27, 2023
4ce5254
Add Cypher template diagrams (#13913)
tomasonjo Nov 27, 2023
8a3e0c9
Add option to prefix config keys in configurable_alts (#13714)
nfcampos Nov 27, 2023
b3e08f9
improvement: fix chat prompt loading from config (#13818)
umair313 Nov 27, 2023
f6b05ca
Update root poetry lock with core (#13922)
nfcampos Nov 27, 2023
46b3311
RELEASE: 0.0.341 (#13926)
baskaryan Nov 27, 2023
e186637
Document Runnable Binding (#13927)
eyurtsev Nov 27, 2023
25387db
BUFIX: add support for various OSS images from Vertex Model Garden (#…
lkuligin Nov 27, 2023
4b8e053
FEATURE: Add Databricks Vector Search as a new vector store (#13621)
freemso Nov 27, 2023
886bc2d
IMPROVEMENT: fix qianfan validate_environment typo (#13908)
chyroc Nov 27, 2023
ac67422
IMPROVEMENT: import Document from core (#13905)
baskaryan Nov 27, 2023
c156d02
BUGFIX: Use embedding key in azure_cosmos_db index creation (#13919)
esoler-sage Nov 27, 2023
ba62ff8
BUGFIX: Support for elastic indices that don't return 'metadata' in '…
assaftibm Nov 27, 2023
92b07ec
DOCS: fix link to question answering (#13806)
riezebosch Nov 27, 2023
3e30cd8
NIT: comment typo (#13817)
jiangying000 Nov 27, 2023
cd77fba
Improvement: Weaviate multitenant adddocs (#13827)
jeremyb-data Nov 27, 2023
e47b9c5
DOCS: move `adapters` to integrations (#13862)
leo-gan Nov 27, 2023
8e8a6a1
fix the os.environ[STEAM_KEY ]
shenceyang Nov 27, 2023
ec53d98
TEMPLATES Add rag-opensearch template (#13501)
rawwar Nov 27, 2023
afcfa2a
langchain[patch]: Add progress bar option to OllamaEmbeddings (#13882)
tylertitsworth Nov 27, 2023
e6ebde9
experimental[patch]: Add experimental.agent imports (#13839)
169 Nov 27, 2023
c0277d0
experimental[patch] Update prompt injection model (#13930)
asofter Nov 27, 2023
10a6e7c
langchain[patch], core[patch]: Make common utils public (#13932)
baskaryan Nov 27, 2023
6861626
langchain[minor]: Adding `infinity` embedding integration. (#13928)
michaelfeil Nov 28, 2023
947b58b
fix: change the prompt and modes
shenceyang Nov 28, 2023
ed6a240
fix: fix bug for get game details
shenceyang Nov 28, 2023
bebaaa6
add integration test
shenceyang Nov 28, 2023
391f200
Implement stream() and astream() for agents (#12783)
nfcampos Nov 28, 2023
e17edc4
RunnableLambda: create afunc instance from func when not provided (#1…
nbondoux Nov 28, 2023
f9bef60
RELEASE: core 0.0.7 (#13973)
efriis Nov 28, 2023
6030934
Eval Error Key (#13974)
hinthornw Nov 28, 2023
7929b26
office365 toolkit bug fixes (#13618)
leo-gan Nov 28, 2023
2703a1b
Fix `MarkdownHeaderTextSplitter` not recognizing tilde-fenced code bl…
unifyh Nov 28, 2023
e0bcc98
infra[patch]: Use langchain core in-tree as a dev dependency (#13957)
nfcampos Nov 28, 2023
9e017ff
docs[patch]: Reduce largest static image file size (#13508)
rihardsgravis Nov 28, 2023
e5256bc
[Evals] Add Project Tags (#13982)
hinthornw Nov 28, 2023
32d794f
iMessage loader: implement message content extraction from attributed…
YaySushi Nov 28, 2023
d2cad53
Fix broken link on Meilisearch vector-store documentation (#13604)
alallema Nov 28, 2023
05ea4fd
fix merge None value and non None value error (#13703)
mengjincn Nov 28, 2023
14cc907
Update the stable docs link (#13798)
adroitvarun Nov 28, 2023
fc40bd4
AnthropicFunctions function_call compatibility (#13901)
JohnnyFoulds Nov 28, 2023
1fd7242
Astra DB vector store, move constructor docstring to class docstring …
hemidactylus Nov 28, 2023
48fbc55
infra[patch], langchain[patch]: fix test deps and upper bound langcha…
baskaryan Nov 28, 2023
947daaf
Exclude Bedrock client and credentials_profile_name fields from seria…
dqbd Nov 28, 2023
970fe23
Fixes for opengpts release (#13960)
nfcampos Nov 28, 2023
0f255bb
In Runnable.stream_log build up final_output from adding output chunk…
nfcampos Nov 28, 2023
eb67f07
Track RunnableAssign as a separate run trace (#13972)
dqbd Nov 28, 2023
1aed2d1
core[patch]: release 0.0.7 (#13989)
baskaryan Nov 28, 2023
9fb6805
langchain[minor]: Add retriever for Knowledge Bases for Amazon Bedroc…
dlqqq Nov 28, 2023
61ec710
docs[patch]: update stack diagram (#13902)
baskaryan Nov 28, 2023
d8fe987
langchain[patch]: release 0.0.342 (#13992)
baskaryan Nov 28, 2023
95a472a
docs[patch]: install local core (#13990)
baskaryan Nov 28, 2023
8b9dc5e
langchain[patch]: contributing test guide update (#13993)
efriis Nov 28, 2023
6137894
templates[minor]: Add rag google sensitive data protection template (…
Nov 28, 2023
a20e8f8
experimental[patch]: release 0.0.43 (#13570)
baskaryan Nov 28, 2023
144710a
langchain[minor]: Updated DocugamiLoader, includes breaking changes (…
tjaffri Nov 28, 2023
41b3968
docs[patch]: Update CONTRIBUTING.md doc (#13965)
169 Nov 29, 2023
1ab8a14
docs[patch]: top menu (#13748)
leo-gan Nov 29, 2023
bf5787f
experimental[patch]: fixed namespace bug (#13585)
leo-gan Nov 29, 2023
f5326cf
docs[patch]: link to LangSmith docs (#13740)
leo-gan Nov 29, 2023
52eee45
renamed `google_vertex_ai_vector_search` notebook (#13484)
leo-gan Nov 29, 2023
04c4878
Remove `python_repl` from _BASE_TOOLS (#13962)
169 Nov 29, 2023
1a33e5b
Repair Wikipedia document loader `load_max_docs` and improve test cov…
queenvictoria Nov 29, 2023
926d4cf
Set default region from boto3 session for Bedrock (#13694)
Falydoor Nov 29, 2023
14799b1
infra[patch]: add base deps and fix docs lint (#13998)
baskaryan Nov 29, 2023
5eca1bd
Library Licenses (#13300)
efriis Nov 29, 2023
a47f1da
docs[patch]: RAG Cookbook example fix (#13914)
waseemhnyc Nov 29, 2023
85bb3a4
Switched VertexAI models from preview (#13657)
lkuligin Nov 29, 2023
d98ccc7
Fixed typo in steam.py that cuases mode missmatch
JohnY2002 Nov 29, 2023
aff1dba
Merge pull request #13945
lujingxuansc Nov 29, 2023
9b86fb3
secretStr for baichuan chat model api key (#13946)
nhywieza Nov 29, 2023
04bdf36
Merge branch 'langchain-ai:master' into feat/Shence
muntaqamahmood Nov 29, 2023
f97ab84
Merge pull request #13907
chyroc Nov 29, 2023
0e462b7
Update openai/create_llm_result function to consider kwargs (#13815)
darktheorys Nov 29, 2023
15b32cf
docs `OpenAI` platform page update (#14001)
leo-gan Nov 29, 2023
5c28bb6
docs `microsoft` page updates (#14000)
leo-gan Nov 29, 2023
fe9341a
feat: Add ERNIE-Bot-8K model support for ErnieBotChat. (#13716)
wangwei1237 Nov 29, 2023
643d288
[docs] fix reduce prompt in summarization example (#13726)
cmpadden Nov 29, 2023
0bc7c1b
Add Outline provider doc (#13938)
yuskhan Nov 29, 2023
74045bf
max length attribute for spacy splitter for large docs (#13875)
kunal8164705 Nov 29, 2023
981f78f
Fix: (issue #13825) Getting an error with DallEAPIWrapper (#13874)
ggeutzzang Nov 29, 2023
750485e
Add object parsing functionality (#13864)
Amyh102 Nov 29, 2023
6463d2d
small fix matching engine AttributeError - object has no attribute (#…
saiwas Nov 29, 2023
d0b818b
DOCS: added missing imports (#13736) (#13737)
Pedrush Nov 29, 2023
5f5c701
docs: Install langsmith from conda-forge (#13335)
pavelzw Nov 29, 2023
a578076
Mask api key for Together LLM (#13981)
normand1 Nov 29, 2023
1cd9d5f
docs[patch]: fix typo langchain version for mongodb integration (#14006)
whitedogg13 Nov 29, 2023
7d6a2b7
Merge branch 'master' into feat/Shence
muntaqamahmood Nov 29, 2023
458383b
lint and format check
muntaqamahmood Nov 29, 2023
9e2ae86
langchain[patch]: Adds progress bar to GooglePalmEmbeddings (#13812)
ugm2 Nov 29, 2023
1c4bfb8
langchain[patch]: Mathpix PDF loader supports arbitrary extra params …
Nov 29, 2023
4964278
docs[patch]: Update typo in map.ipynb (#14030)
nnmer Nov 29, 2023
9c0ad0c
langchain[patch]: Improve HyDe with custom prompts and ability to sup…
yvesloy Nov 29, 2023
3c29b0d
templates[patch]: template pyproject updates (#14035)
efriis Nov 29, 2023
d4405bc
langchain[patch]: Release 0.0.343 (#14037)
baskaryan Nov 29, 2023
7ec4dbe
langchain[minor]: Add StackExchange API integration (#14002)
SauhaardW Nov 29, 2023
3eb3915
langchain[minor]: Reduce the number of tokens required to describe a …
tomasonjo Nov 29, 2023
6f64cb5
Remove deprecated param and flexibility for prompt (#13310)
toshish Nov 29, 2023
9bd6e9d
update pdf document loaders' metadata source to url for online pdf (#…
123-fake-st Nov 29, 2023
a0e859d
langchain[patch]: fix cohere reranker init #12899 (#14029)
yoch Nov 29, 2023
1600ebe
langchain[patch]: Mask API key for ForeFrontAI LLM (#14013)
mmahmad Nov 29, 2023
dbaeb16
langchain[minor]: add volcengine endpoint as LLM (#13942)
h3l Nov 29, 2023
00a6e89
langchain[minor]: Add serpapi tools (#13934)
HamJaw1432 Nov 29, 2023
1dd713a
delete unused file
muntaqamahmood Nov 30, 2023
734c4cb
Merge branch 'master' into feat/Shence
muntaqamahmood Nov 30, 2023
a00db4b
Add multi-input Reddit search tool (#13893)
clwillhuang Nov 30, 2023
f3dd4a1
DROP BOX Loader Documentation Update (#14047)
keenborder786 Nov 30, 2023
c2e3963
Merriam-Webster Dictionary Tool (#12044)
Zollerboy1 Nov 30, 2023
67c55cb
Implemented MongoDB Atlas Self-Query Retriever (#13321)
AthulVincent Nov 30, 2023
d1d693b
Fix issue where response_if_no_docs_found is not implemented on async…
sudranga Nov 30, 2023
54355b6
Update index.mdx (#13285)
NPuhlmann Nov 30, 2023
235bdb9
Support Vald secure connection (#13269)
mtanig Nov 30, 2023
41a4c06
Added support for a Pandas DataFrame OutputParser (#13257)
RohanDey02 Nov 30, 2023
f4d520c
Fix .env file path in integration_test README.md (#14028)
FacerAin Nov 30, 2023
d42a27a
fix import
andrewqian2001 Nov 30, 2023
124d7e6
add: notebook title
muntaqamahmood Nov 30, 2023
87a84da
Merge branch 'feat/Shence' of https://github.com/muntaqamahmood/langc…
muntaqamahmood Nov 30, 2023
45eff25
fix: updated the steam.ipynb to provide example
JohnY2002 Nov 30, 2023
d33fde4
Merge branch 'master' into feat/Shence
muntaqamahmood Nov 30, 2023
1ecfbfd
cr
hwchase17 Nov 30, 2023
cc7d2c5
cr
hwchase17 Nov 30, 2023
e893a70
spell check
muntaqamahmood Nov 30, 2023
dc845fd
Merge branch 'develop' into feat/Shence
muntaqamahmood Nov 30, 2023
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
7 changes: 5 additions & 2 deletions libs/langchain/langchain/utilities/steam.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from typing import Any

import steamspypi
from bs4 import BeautifulSoup

from langchain.pydantic_v1 import BaseModel, Extra, root_validator
Expand All @@ -13,7 +12,7 @@


class SteamWebAPIWrapper(BaseModel):
# Steam WebAPI Implementation will go here...
"""Wrapper for Steam API."""

steam: Any # for python-steam-api

Expand Down Expand Up @@ -117,6 +116,10 @@ def get_users_games(self, steam_id: str) -> list[str]:
return self.steam.users.get_owned_games(steam_id, False, False)

def recommended_games(self, steam_id: str) -> dict:
try:
import steamspypi
except ImportError:
raise ImportError("steamspypi library is not installed.")
users_games = self.get_users_games(steam_id)
result = {}
most_popular_genre = ""
Expand Down