neulab / prompt2model

prompt2model - Generate Deployable Models from Natural Language Instructions
Apache License 2.0
1.95k stars 173 forks source link

Add api_tools import to utils init file (to fix #346) #347

Closed viswavi closed 1 year ago

viswavi commented 1 year ago

Description

344 makes the API-based model used in prompt2model configurable, but there's a bug in the notebook file where the default api agent (api_tools.default_api_agent) is set configurably, but this variable is not exposed in the current pip release.

This PR makes it such that this file can be accessed from the pip package.

References

This PR fixes issue #346.

Blocked by

N/A

viswavi commented 1 year ago

You're right. It's not necessary - the problem discussed in #346 is due to the latest release being out-of-date, not the cause that I originally thought.