Relative Content

Tag Archive for pythonartificial-intelligenceopenai-api

Its say I cant execute the line “for response in openai.ChatCompletion.create()”

for response in openai.ChatCompletion.create( model=st.session_state[“openai_model”], messages=[ {“role”: m[“role”], “content”: m[“content”]} for m in st.session_state.messages ], This is the block of code that is not working python artificial-intelligence openai-api New contributor Iqra Zafar is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

Ai book writer script

I would like to create a script to write full books using chat gpt
I got the following script, but I want longer content (output). How can I force it?