Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant