Skip to content
This repository has been archived by the owner on Feb 14, 2025. It is now read-only.

fix(pages): corrected tool model assignment #87

Merged
merged 2 commits into from
Apr 14, 2024

Conversation

Daethyra
Copy link
Owner

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:

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}}

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}}
```
@Daethyra Daethyra enabled auto-merge April 14, 2024 04:16
@Daethyra Daethyra self-assigned this Apr 14, 2024
@Daethyra Daethyra added the bug Something isn't working label Apr 14, 2024
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.
@Daethyra Daethyra merged commit be9e16d into streamlit Apr 14, 2024
3 checks passed
@Daethyra Daethyra deleted the patch/infonexus-toollm branch April 14, 2024 05:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant