Skip to content

Commit

Permalink
chore: Update parameters type annotation in workflows.chat and Bump v…
Browse files Browse the repository at this point in the history
…ersion to 0.9.1 (#151)

- Change parameters type annotation from Optional[Dict[str, str]] to
Optional[Dict[str, Any]]
- Bump version to 0.9.1
  • Loading branch information
chyroc authored Dec 25, 2024
1 parent fd82f41 commit 565a0f2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cozepy/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import sys
from functools import lru_cache

VERSION = "0.9.0"
VERSION = "0.9.1"


def get_os_version() -> str:
Expand Down
10 changes: 5 additions & 5 deletions cozepy/workflows/chat/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import AsyncIterator, Dict, List, Optional
from typing import Any, AsyncIterator, Dict, List, Optional

from cozepy.auth import Auth
from cozepy.chat import (
Expand All @@ -23,7 +23,7 @@ def stream(
*,
workflow_id: str,
additional_messages: Optional[List[Message]] = None,
parameters: Optional[Dict[str, str]] = None,
parameters: Optional[Dict[str, Any]] = None,
app_id: Optional[str] = None,
bot_id: Optional[str] = None,
conversation_id: Optional[str] = None,
Expand Down Expand Up @@ -62,7 +62,7 @@ def _create(
*,
workflow_id: str,
additional_messages: Optional[List[Message]] = None,
parameters: Optional[Dict[str, str]] = None,
parameters: Optional[Dict[str, Any]] = None,
app_id: Optional[str] = None,
bot_id: Optional[str] = None,
conversation_id: Optional[str] = None,
Expand Down Expand Up @@ -109,7 +109,7 @@ async def stream(
*,
workflow_id: str,
additional_messages: Optional[List[Message]] = None,
parameters: Optional[Dict[str, str]] = None,
parameters: Optional[Dict[str, Any]] = None,
app_id: Optional[str] = None,
bot_id: Optional[str] = None,
conversation_id: Optional[str] = None,
Expand Down Expand Up @@ -149,7 +149,7 @@ async def _create(
*,
workflow_id: str,
additional_messages: Optional[List[Message]] = None,
parameters: Optional[Dict[str, str]] = None,
parameters: Optional[Dict[str, Any]] = None,
app_id: Optional[str] = None,
bot_id: Optional[str] = None,
conversation_id: Optional[str] = None,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cozepy"
version = "0.9.0"
version = "0.9.1"
description = "OpenAPI SDK for Coze(coze.com/coze.cn)"
authors = ["chyroc <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit 565a0f2

Please sign in to comment.