neulab / prompt2model

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

Error when running example #348

Closed albertah1 closed 1 year ago

albertah1 commented 1 year ago

I am running prompt2model_demo.py and enter the example text. This error appears repeatedly immediately:

Parsing prompt... ERROR:root:{'max_tokens': 4000, 'input_cost_per_token': 1.5e-06, 'output_cost_per_token': 2e-06} is not of type 'integer' - 'max_tokens' ERROR:root:{'max_tokens': 4000, 'input_cost_per_token': 1.5e-06, 'output_cost_per_token': 2e-06} is not of type 'integer' - 'max_tokens'

chintanshrinath commented 1 year ago

@albertah1 I am getting same issue

neubig commented 1 year ago

Sorry about this, we've reproduced and @viswavi is working on it.

viswavi commented 1 year ago

The latest release (0.0.6 on PyPi) should fix these issues @albertah1 @chintanshrinath. Apologies for the reliability issues here.

Do pip install --upgrade prompt2model to fetch these updates.