AbanteAI / spice

accelerant
Apache License 2.0
4 stars 2 forks source link

Update dataclasses.replace calls in DefaultRetryStrategy #112

Closed mentatai[bot] closed 2 months ago

mentatai[bot] commented 2 months ago

This pull request addresses issue #111 by updating the dataclasses.replace calls to call_args.model_copy(update={...}) in the DefaultRetryStrategy class. This change is necessary because SpiceCallArgs has been converted from a dataclass to a Pydantic model. The updates ensure that the retry strategy correctly modifies the temperature attribute of call_args based on the attempt number.

Closes #111

Thanks for using MentatBot. Give comments a :+1: or :-1: to help me improve!

biobootloader commented 2 months ago

perfect! can we also bump up the version of spice since we fixed this bug and will need to re-release?

mentatai[bot] commented 2 months ago

You are out of MentatBot commits. Your usage will refresh September 5 at 07:00 AM.