From 0a4dc00655f16a46dcb5f797cc2b6bc810c8d780 Mon Sep 17 00:00:00 2001 From: Daethyra <109057945+Daethyra@users.noreply.github.com> Date: Sat, 13 Apr 2024 21:16:19 -0700 Subject: [PATCH 1/2] fix(pages): corrected tool model assignment Changed the tool model assignment in the InfoNexus page from "OpenAI" to "ChatOpenAI" to ensure compatibility with the "v1/chat/completions" endpoint Previously, calls to the `llm-math` tool, which requires NumExpr, would throw an error: ```PowerShell openai.NotFoundError: Error code: 404 - {'error': {'message': 'This is a chat model and not supported in the v1/completions endpoint. Did you mean to use v1/chat/completions?', 'type': 'invalid_request_error', 'param': 'model', 'code': None}} ``` --- "freestream/pages/3_\360\237\233\240\357\270\217_InfoNexus.py" | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git "a/freestream/pages/3_\360\237\233\240\357\270\217_InfoNexus.py" "b/freestream/pages/3_\360\237\233\240\357\270\217_InfoNexus.py" index 9197011..d99864c 100644 --- "a/freestream/pages/3_\360\237\233\240\357\270\217_InfoNexus.py" +++ "b/freestream/pages/3_\360\237\233\240\357\270\217_InfoNexus.py" @@ -62,7 +62,7 @@ # Set a model for tools # Requires an 'LLM' not 'Chat Model' -toollm = OpenAI( +toollm = ChatOpenAI( model="gpt-3.5-turbo", temperature=temperature_slider, openai_api_key=st.secrets.OPENAI.openai_api_key, From e22e5f54287daa5155c54a6f7d964d452b41ec00 Mon Sep 17 00:00:00 2001 From: Daethyra <109057945+Daethyra@users.noreply.github.com> Date: Sat, 13 Apr 2024 21:17:10 -0700 Subject: [PATCH 2/2] chore(version): update project version to 4.1.1 Forgot to do this earlier. Bumped the project version from 4.1.0 to 4.1.1 in pyproject.toml to reflect the latest changes and updates made to the FreeStream project. --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index de20992..9dc1278 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [tool.poetry] name = "FreeStream" -version = "4.1.0" +version = "4.1.1" description = "Free AI Assistants." authors = ["Daethyra <109057945+Daethyra@users.noreply.github.com>"] readme = "README.md"