Skip to content

Commit 970e63b

Browse files
authored
feat(langchain): add solar model(solar-pro2) support (#48)
* update `tokenizers` dependency version `^0.19.1` -> `^0.20.0` * add `solar-pro2` model * update `poetry.lock` * except python 3.8 version * update langchain-upstage version
1 parent 33c177a commit 970e63b

File tree

7 files changed

+198
-121
lines changed

7 files changed

+198
-121
lines changed

.github/workflows/_compile_integration_test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ jobs:
2020
strategy:
2121
matrix:
2222
python-version:
23-
- "3.8"
2423
- "3.9"
2524
- "3.10"
2625
- "3.11"

.github/workflows/_integration_test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ jobs:
2626
strategy:
2727
matrix:
2828
python-version:
29-
- "3.8"
3029
- "3.9"
3130
- "3.10"
3231
- "3.11"

.github/workflows/_lint.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ jobs:
2929
# Starting new jobs is also relatively slow,
3030
# so linting on fewer versions makes CI faster.
3131
python-version:
32-
- "3.8"
3332
- "3.11"
3433
steps:
3534
- uses: actions/checkout@v4

.github/workflows/_test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ jobs:
2020
strategy:
2121
matrix:
2222
python-version:
23-
- "3.8"
2423
- "3.9"
2524
- "3.10"
2625
- "3.11"

libs/upstage/langchain_upstage/chat_models.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,9 @@
5353

5454
from langchain_upstage.document_parse import UpstageDocumentParseLoader
5555

56-
DOC_PARSING_MODEL = ["solar-pro"]
56+
DOC_PARSING_MODEL = ["solar-pro2", "solar-pro"]
5757
SOLAR_TOKENIZERS = {
58+
"solar-pro2": "upstage/solar-pro2-tokenizer",
5859
"solar-pro": "upstage/solar-pro-tokenizer",
5960
"solar-mini": "upstage/solar-1-mini-tokenizer",
6061
}

libs/upstage/poetry.lock

Lines changed: 194 additions & 114 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libs/upstage/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "langchain-upstage"
3-
version = "0.6.0"
3+
version = "0.6.1rc0"
44
description = "An integration package connecting Upstage and LangChain"
55
authors = []
66
readme = "README.md"
@@ -14,7 +14,7 @@ license = "MIT"
1414
python = ">=3.9,<4.0"
1515
pypdf = "^4.2.0"
1616
requests = "^2.31.0"
17-
tokenizers = "^0.19.1"
17+
tokenizers = "^0.20.0"
1818
langchain-openai = "^0.3"
1919
langchain-core = "^0.3.29"
2020

0 commit comments

Comments
 (0)