maxwelljoslyn / gm-trainer

Provide a training ground for RPG Game Masters by using LLMs as pseudo-players.
0 stars 0 forks source link

Add max number of tries to exponential backoff for LLM request failures #2

Closed maxwelljoslyn closed 7 months ago

maxwelljoslyn commented 7 months ago

I'm using a plain Exception rather than a more specific type because I don't know what errors exactly a third party library might throw upon a bad response. If I wanted to use their more specific library specific types, I would have to depend on them (e.g. to catch Claude errors, I'd have to depend on anthropic_py, or whatever Anthropic's Python package is called.) For now, I don't want to do that.

maxwelljoslyn commented 7 months ago

Closed by 6ad93f2aa64f7eeecc4e1d8a697182cb0e24bfc2.