From 565a0f282dc3a62348bd7b3de7cf9499c2c4cc2b Mon Sep 17 00:00:00 2001 From: chyroc Date: Wed, 25 Dec 2024 20:10:03 +0800 Subject: [PATCH] chore: Update parameters type annotation in workflows.chat and Bump version 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 --- cozepy/version.py | 2 +- cozepy/workflows/chat/__init__.py | 10 +++++----- pyproject.toml | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cozepy/version.py b/cozepy/version.py index 7ef0015..85b8eb1 100644 --- a/cozepy/version.py +++ b/cozepy/version.py @@ -3,7 +3,7 @@ import sys from functools import lru_cache -VERSION = "0.9.0" +VERSION = "0.9.1" def get_os_version() -> str: diff --git a/cozepy/workflows/chat/__init__.py b/cozepy/workflows/chat/__init__.py index 4ce21a1..b58701b 100644 --- a/cozepy/workflows/chat/__init__.py +++ b/cozepy/workflows/chat/__init__.py @@ -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 ( @@ -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, @@ -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, @@ -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, @@ -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, diff --git a/pyproject.toml b/pyproject.toml index ead873d..1aa09c7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 "] readme = "README.md"