Skip to content

Commit

Permalink
Merge branch 'master' into feat/get_a_tool_from_a_tookit
Browse files Browse the repository at this point in the history
  • Loading branch information
yiyiyi0817 authored Oct 10, 2024
2 parents 4a14dcc + e02f724 commit a15a720
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ body:
attributes:
label: What version of camel are you using?
description: Run command `python3 -c 'print(__import__("camel").__version__)'` in your shell and paste the output here.
placeholder: E.g., 0.2.1a
placeholder: E.g., 0.2.2
validations:
required: true

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ conda create --name camel python=3.10
conda activate camel
# Clone github repo
git clone -b v0.2.1a https://github.com/camel-ai/camel.git
git clone -b v0.2.2 https://github.com/camel-ai/camel.git
# Change directory into project directory
cd camel
Expand Down
2 changes: 1 addition & 1 deletion camel/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# limitations under the License.
# =========== Copyright 2023 @ CAMEL-AI.org. All Rights Reserved. ===========

__version__ = '0.2.1a'
__version__ = '0.2.2'

__all__ = [
'__version__',
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
project = 'CAMEL'
copyright = '2024, CAMEL-AI.org'
author = 'CAMEL-AI.org'
release = '0.2.1a'
release = '0.2.2'

html_favicon = (
'https://raw.githubusercontent.com/camel-ai/camel/master/misc/favicon.png'
Expand Down
2 changes: 1 addition & 1 deletion docs/get_started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ conda create --name camel python=3.10
conda activate camel
# Clone github repo
git clone -b v0.2.1a https://github.com/camel-ai/camel.git
git clone -b v0.2.2 https://github.com/camel-ai/camel.git
# Change directory into project directory
cd camel
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 = "poetry.core.masonry.api"

[tool.poetry]
name = "camel-ai"
version = "0.2.1a"
version = "0.2.2"
authors = ["CAMEL-AI.org"]
description = "Communicative Agents for AI Society Study"
readme = "README.md"
Expand Down
16 changes: 9 additions & 7 deletions test/messages/test_func_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,16 @@ def test_function_func_message(function_func_message: FunctionCallingMessage):
def test_assistant_func_message_to_openai_function_message(
assistant_func_message: FunctionCallingMessage,
):
with pytest.raises(
ValueError,
match=(
"Invalid request for converting into function message"
" due to missing function name or results."
),
):
expected_msg_dict: Dict[str, str] = {
"role": "function",
"name": "add",
"content": "{'result': {'None'}}",
}

assert (
assistant_func_message.to_openai_function_message()
== expected_msg_dict
)


def test_function_func_message_to_openai_assistant_message(
Expand Down

0 comments on commit a15a720

Please sign in to comment.