Skip to content

Fix & improve error AI solutions #628

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

Merged
merged 1 commit into from
May 12, 2025

Conversation

msucevan
Copy link
Contributor

@msucevan msucevan commented May 9, 2025

This pull request introduces enhancements to the Restify framework, focusing on improved AI solution configuration, better resource publishing, and updates to exception handling. The changes include transitioning from static AI model settings to configurable options, adding support for publishing views, and refining how OpenAI solutions are generated.

AI Solution Configuration Updates:

  • config/restify.php: Replaced the boolean ai_solutions setting with a configuration array, allowing specification of the OpenAI model (gpt-4.1-mini) and maximum tokens (1000). This makes the AI solution more customizable.

Exception Handling Enhancements:

Resource Publishing Improvements:

Copy link

what-the-diff bot commented May 9, 2025

PR Summary

  • Enhanced AI Solutions Configuration: The AI solutions setup in Restify has been adjusted. Instead of simply turning AI on or off, we can now specify details such as which AI model to use (we're set to use 'gpt-4.1-mini') and limit its responses to 1000 items.
  • Streamlined Setup with Restify View Publishing: The setup process for Restify is improved by introducing a command that allows us to publish Restify views easily.
  • Improved Handling of AI Solutions Exceptions: Adjusments have been made to how exceptions in the AI Solutions are handled. Now, it uses the chat completion function of OpenAI's API. This helps to better integrate the latest model and message structures while retrieving solution content more efficiently.
  • Registered Functionality for View Publishing: A new functionality has been added in LaravelRestifyServiceProvider that allows us to choose a specific directory in the Laravel resource structure to store our Restify views. This provides greater customization and organization of our views.

Copy link
Collaborator

@binaryk binaryk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@binaryk binaryk merged commit d170cd0 into BinarCode:9.x May 12, 2025
@msucevan msucevan deleted the feat/re-work-ai-solution branch May 13, 2025 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants