Skip to content

Commit

Permalink
Merge pull request #522 from insop/insop/issue_521
Browse files Browse the repository at this point in the history
BootstrapFewShot failing due to lm.copy for AzureOpenAI, #521
  • Loading branch information
okhat authored Mar 2, 2024
2 parents cc9f4f3 + 5cdd7eb commit 5ecc042
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions dsp/modules/azure_openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ def __init__(
kwargs["model"] = model

self.kwargs = {
"api_base": api_base,
"api_version": api_version,
"api_key": api_key,
"temperature": 0.0,
"max_tokens": 150,
"top_p": 1,
Expand Down
2 changes: 1 addition & 1 deletion dsp/modules/lm.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,4 @@ def copy(self, **kwargs):
kwargs = {**self.kwargs, **kwargs}
model = kwargs.pop('model')

return self.__class__(model, **kwargs)
return self.__class__(model=model, **kwargs)

0 comments on commit 5ecc042

Please sign in to comment.