Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: jackmpcollins/magentic
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.14.1
Choose a base ref
...
head repository: jackmpcollins/magentic
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.15.0
Choose a head ref
  • 6 commits
  • 12 files changed
  • 1 contributor

Commits on Feb 19, 2024

  1. Use Ellipses in functions with docstrings (#109)

    * Ignore unnecessary ... error
    
    * Add back ... to functions with docstring
    jackmpcollins authored Feb 19, 2024
    Configuration menu
    Copy the full SHA
    1028c8b View commit details
    Browse the repository at this point in the history
  2. Use function instead of FunctionCall in FunctionResultMessage (#110)

    * Remove from_function_call methods from FunctionResultMessage
    
    * Add tests for message_to_openai_message
    
    * Fix: Use FunctionCallFunctionSchema to name function in result message
    
    * Use function instead of function_call in FunctionResultMessage
    
    * Add test for chatprompt with function call
    jackmpcollins authored Feb 19, 2024
    Configuration menu
    Copy the full SHA
    f66feaf View commit details
    Browse the repository at this point in the history
  3. Add Message.format. Allow extending message_to_openai_message (#114)

    * Move Optional openai params to only pass if set
    
    * Move template formatting into Message classes
    
    * Remove *args from format methods
    
    * Cast str to T in format methods for mypy
    
    * Add Placeholder class for templating messages
    
    * Fix: make type_ param bc cannot read generic arg
    
    * Remove Message.format overloads to simplify typing
    
    * Delete Placeholder class
    
    * Do not format FunctionResultMessage
    
    * Use singledispatch to make message_to_openai_message extensible
    
    * Remove unneeded newlines
    
    * Add test_message_to_openai_message_raises
    
    * Test no error raised after new message type registered
    jackmpcollins authored Feb 19, 2024
    Configuration menu
    Copy the full SHA
    c908a15 View commit details
    Browse the repository at this point in the history
  4. poetry update (#115)

    * poetry update litellm
    
    * poetry update pytest
    
    * poetry update ruff
    
    * poetry update everything but pydantic
    
    * poetry update
    
    * Skip broken pydantic test
    jackmpcollins authored Feb 19, 2024
    Configuration menu
    Copy the full SHA
    4a095cb View commit details
    Browse the repository at this point in the history

Commits on Feb 20, 2024

  1. Add last_message property to Chat (#117)

    * Add last_message property to Chat
    
    * Add test for Chat.last_message
    
    * Leave .copy on messages property
    jackmpcollins authored Feb 20, 2024
    Configuration menu
    Copy the full SHA
    b1348a4 View commit details
    Browse the repository at this point in the history
  2. Bump version to 0.15.0

    jackmpcollins committed Feb 20, 2024
    Configuration menu
    Copy the full SHA
    2493419 View commit details
    Browse the repository at this point in the history
Loading