Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
matrix:
python-version: ['3.10', '3.11', '3.12', '3.13']
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: ${{ matrix.python-version }}
- name: Install
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ jobs:
id-token: write
steps:
- name: Checkout
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v3
with:
persist-credentials: false

- name: Set up Python
uses: actions/setup-python@3542bca2639a428e1796aaa6a2ffef0c0f575566 # v3
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: '3.11'

Expand All @@ -40,4 +40,4 @@ jobs:
run: python -m build

- name: Publish package
uses: pypa/gh-action-pypi-publish@ba38be9e461d3875417946c167d0b5f3d385a247 # release/v1
uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # release/v1
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ print(url) # https://.../output.png

### WaveSpeedVideoGeneration

Generate videos from text prompts (defaults to `wavespeed-ai/minimax-h3/text-to-video`, the cheap open-weights starting point; pass `model="bytedance/seedance-2.5/text-to-video"` for the highest quality):
Generate videos from text prompts (defaults to `bytedance/seedance-2.5/text-to-video`, the same default as the WaveSpeed CLI and MCP server; pass `model="wavespeed-ai/minimax-h3/text-to-video"` for a lower price):

```python
from langchain_wavespeed import WaveSpeedVideoGeneration
Expand Down
2 changes: 1 addition & 1 deletion langchain_wavespeed/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ class WaveSpeedVideoGeneration(_BaseWaveSpeedTool):
)
args_schema: type[BaseModel] = VideoGenerationInput
model: str = Field(
default="wavespeed-ai/minimax-h3/text-to-video",
default="bytedance/seedance-2.5/text-to-video",
description="WaveSpeed model id to run.",
)

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "langchain-wavespeed"
version = "0.1.3"
version = "0.1.4"
description = "An integration package connecting WaveSpeed AI and LangChain"
readme = "README.md"
license = { text = "MIT" }
Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/test_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def test_video_generation_invokes_default_model() -> None:
result = tool.invoke({"prompt": "a drone shot", "duration": 5})
assert result == VIDEO_URL
args, _ = client.run.call_args
assert args[0] == "wavespeed-ai/minimax-h3/text-to-video"
assert args[0] == "bytedance/seedance-2.5/text-to-video"
assert args[1] == {"prompt": "a drone shot", "duration": 5}


Expand Down