diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2adadfb..e69e1e5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index e6e92e2..acb438a 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -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' @@ -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 diff --git a/README.md b/README.md index af077c8..0c8541b 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/langchain_wavespeed/tools.py b/langchain_wavespeed/tools.py index 45eba7d..f49ff08 100644 --- a/langchain_wavespeed/tools.py +++ b/langchain_wavespeed/tools.py @@ -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.", ) diff --git a/pyproject.toml b/pyproject.toml index 960c9ee..7046408 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" } diff --git a/tests/unit_tests/test_tools.py b/tests/unit_tests/test_tools.py index 8a015db..a892dbc 100644 --- a/tests/unit_tests/test_tools.py +++ b/tests/unit_tests/test_tools.py @@ -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}