dspy icon indicating copy to clipboard operation
dspy copied to clipboard

Adding `self.history = []` in the custom LM doc example

Open ovshake opened this issue 1 year ago • 1 comments

https://github.com/stanfordnlp/dspy/blob/b2816c4a35e3144a06752423de1afb8e68e1005f/docs/docs/deep-dive/language_model_clients/custom-lm-client.mdx#L54

In the code above, should self.history = [] be added? Since it is being referenced in the other function.

ovshake avatar Mar 06 '24 06:03 ovshake

@arnavsinghvi11

okhat avatar Mar 06 '24 14:03 okhat

Thanks @ovshake ! updated in docs.

arnavsinghvi11 avatar Mar 09 '24 20:03 arnavsinghvi11