
Version 0.10
artopenai 0.10.0
Breaking Changes - API Consolidation
-
Artwork analysis functions deprecated - The following functions are deprecated and will be removed in a future release:
-
art_about_ai()→ Useartcurator::art_about_ai()instead -
art_style_ai()→ Useartcurator::art_style_ai()instead -
classify_styles_ai()→ Useartcurator::classify_styles_ai()instead -
art_profile_ai()→ Useartcurator::art_profile_ai()instead -
art_profile_full_ai()→ Useartcurator::art_profile_full_ai()instead
Rationale: artcurator now provides a unified interface for artwork analysis with provider abstraction (switch between Gemini/OpenAI). All artwork-specific prompts and high-level functions have been consolidated there.
-
-
Removed internal utilities (now provided by artcore):
- Removed
b64EncodeImage()fromR/internal-utils.R→ Useartcore::b64EncodeImage() - Removed
%||%operator definition → Imported fromartcore - Removed duplicate utility functions from
R/internal-utils.R
- Removed
New Exports - Low-Level API
-
Exported
openai_responses()- Previously internal.openai_responses()is now exported for use by artcurator and other packages- Provides low-level access to OpenAI Responses API
- Supports full parameter control: msgs, temp, json_schema, tools, store, prev_response_id, etc.
- Use for custom prompts and advanced workflows
-
b64EncodeImage()now provided by artcore- No longer exported from
artopenai; callartcore::b64EncodeImage()directly
- No longer exported from
Dependencies
- Added to Imports:
artcore (>= 1.4.0)- Provides shared HTTP, config, and image utilities - Removed from Imports:
base64enc,magick- Now provided by artcore dependency - Dependencies alphabetized for consistency
Tests
- Removed legacy artwork httptest2-based tests that depended on
b64EncodeImage()in this package- Test files removed:
test-artwork-ai.R,test-artwork-plus-ai.R - Artwork analysis testing is now handled in the
artcuratorpackage alongside the consolidated API
- Test files removed:
Migration Guide
For artpipelines and Other Consumers
Replace direct artopenai function calls with artcurator:
# Before
artopenai::art_about_ai(img_path)
artopenai::art_style_ai(img_path)
# After
artcurator::art_about_ai(img_path, provider = "openai")
artcurator::art_style_ai(img_path, provider = "openai")See vignette("artpipelines-integration", package = "artcurator") for complete migration guide.