Closed sangee2004 closed 6 months ago
I made a modification to tools to make it an array... so the tools=["sys.write"] should be what fixed it.
addressed in README on main.
Also need to include json in the prompt like this - "the response json format should be" . Without this , script fails to execute with following errors:
content [1] content | Waiting for model response...2024/03/07 15:53:18 error, status code: 400, message: 'messages' must contain the word 'json' in some form, to use 'response_format' of type 'json_object'.
Should be addressed.
This issue is addressed now. Able to run the example successfully - https://github.com/gptscript-ai/py-gptscript?tab=readme-ov-file#example-usage .
Installed using -
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ gptscript==0.1.0rc1
Executing python code from - https://github.com/gptscript-ai/py-gptscript?tab=readme-ov-file#example-usage , results in following errors:
Making few changes in the python code , results in the following expected results:
changes made to the script: