Commit Graph

7 Commits

  • Python: Fixed instructions duplication in model clients (#1332)
    * Small fix
    
    * Updated instruction handling in chat clients
  • Python: [BREAKING] parameter naming and other fixes (#1255)
    * parameter naming and other fixes
    
    * fix test
    
    * fix azure openai responses decorator ordering
    
    * fix test
    
    * fix mypy
    
    * fixes in options handling
    
    * fix tests
    
    * final fixes
    
    * exclude macos tests
    
    * fix model param
  • Python: Add PDF file support to OpenAI content parser with filename mapping (#1121)
    * Add mapping for application media type in OpenAI responses client
    
    * Enhance multimodal input samples: Add PDF testing functionality and fix image sample
    
    * Standardize filename handling and add multimodal samples
    
    - Standardized filename extraction logic between chat and responses clients
    - Both clients now omit filename when not provided (no default fallback)
    - Added Azure Responses API multimodal sample with PDF support
    - Cleaned up Azure Chat sample to focus on supported features only
    - Fixed test comment placement for better code documentation
    - Updated README with clear API capability differences
    
    * Enhance multimodal input samples with image and PDF handling
    
    - Refactor image and PDF handling in `azure_chat_multimodal.py` and `openai_chat_multimodal.py` to use new utility functions.
    - Add `load_sample_pdf` and `create_sample_image` functions for better test asset management.
    - Remove redundant code for creating sample images and PDFs.
    - Introduce a sample PDF file in `sample_assets` for testing purposes.
    
    * Fix formatting in OpenAI chat client
    
    ---------
    
    Co-authored-by: Dmytro Struk <13853051+dmytrostruk@users.noreply.github.com>
  • Python: OpenAI Clients accepting api_key callback (#1139)
    * openai clients accepting callable
    
    * fixes
    
    * version checks
  • Python: Introducing AI Function approval (#1131)
    * support for local function approval
    
    * small fix
    
    * fix mypy
    
    * added bigger test scenario's for function calling and approvals
    
    * updated lock
    
    * updated return message for rejection
    
    * fix test
    
    * updated function result content handling
  • Python: [BREAKING] added SerializationMixin and applied to contents, agents, chat client… (#1012)
    * added SerializationMixin and applied to contents, agents, chat clients, removed AFBaseModel
    
    * fix annotations type
    
    * mypy fixes
    
    * fix tests
    
    * fix serializable subvalues and added large docstring
    
    * updated indents in code block
    
    * fixed exported urls
  • Python: [BREAKING] Main to core (#983)
    * removed pydantic from types
    
    * fix assistants client
    
    * Remove Pydantic usage from workflow code.
    
    * updated lock and test fixes
    
    * moved main to core, and setup meta package
    
    * updated versions
    
    * updated lock
    
    * fixed agents dependency
    
    * added retry to merge tests
    
    ---------
    
    Co-authored-by: Evan Mattson <evan.mattson@microsoft.com>