promptslab / Promptify

Prompt Engineering | Prompt Versioning | Use GPT or other prompt based models to get structured output. Join our discord for Prompt-Engineering, LLMs and other latest research
https://discord.gg/m88xfYMbK6
Apache License 2.0
3.11k stars 232 forks source link

Support ChatGPT api #37

Closed monk1337 closed 1 year ago

monk1337 commented 1 year ago

https://platform.openai.com/docs/guides/chat

xin007-kong commented 1 year ago
model = OpenAI('key', model="gpt-3.5-turbo")

TypeError: init() got an unexpected keyword argument 'model'

monk1337 commented 1 year ago

Please install it from the Git version.

pip3 install git+https://github.com/promptslab/Promptify.git

xin007-kong commented 1 year ago

@monk1337 The problem has been solved after I uninstall the promptify and then reinstall it following your instructions. Thank you very much!