Merged
Conversation
Updates `agent_ai.py` to streamline audio and image generation. The audio generation method now explicitly passes all keyword arguments to the OpenAI SDK, allowing for direct use of OpenAI-specific parameters like 'instructions' and 'speed' and simplifying parameter handling. The image generation method is refactored to route calls to provider-specific implementations (`vision.generate_image_openrouter` and `vision.generate_image_litellm`) based on the model prefix. This improves modularity and allows for cleaner handling of different provider APIs. Additionally, `types.py` is updated to use a new `litellm_adapters` module for filtering None values and applying provider-specific parameter patches, promoting better organization and maintainability of LiteLLM configurations.
Introduces a new --defaults flag to the `af init` command, allowing users to bypass interactive prompts and initialize a new agent project with default settings. This flag also implicitly sets the `nonInteractive` mode, streamlining the agent initialization process for users who prefer to use the standard configurations.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Testing
./scripts/test-all.shChecklist
CHANGELOG.md(or this change does not warrant a changelog entry).Screenshots (if UI-related)
Related issues