#chat completion

1 messages · Page 1 of 1 (latest)

obsidian bridge
#

You tried to access openai.ChatCompletion, but this is no longer supported in openai>=1.0.0

sour coyoteBOT
#

Hi @obsidian bridge. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

The error message you're seeing indicates that the openai.ChatCompletion method is no longer supported in versions of the OpenAI Python library that are 1.0.0 or later. This change was made as part of the updates in the OpenAI Python SDK V1.0, as mentioned in the changelog (https://platform.openai.com/docs/changelog).

Instead, you should use the new method for creating chat completions. However, the exact method to use depends on the specific version of the OpenAI Python library you're using, and the model you're trying to access.

For example, if you're trying to use the gpt-4 model, you should use the chat completions endpoint as mentioned in this forum post (https://community.openai.com/t/735807). The text completion endpoint has been deprecated.

If you're still using old code, you can run openai migrate to automatically upgrade your codebase to use the 1.0.0 interface. Alternatively, you can pin your installation to the old version, e.g. pip install openai==0.28. A detailed migration guide is available here (https://github.com/openai/openai-python/discussions/742).

Please note that the exact code to use can vary depending on your specific use case and the model you're trying to access. Always refer to the official OpenAI API documentation (https://platform.openai.com/docs/api-reference) for the most accurate and up-to-date information.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:

#

@obsidian bridge kapa.ai is still learning and improving, please let us know how it did by reacting below

merry pendant
#

@sour coyote give me tips of how to make a minecraft redstone door

sour coyoteBOT
#

Let me check the knowledge base for you. One moment! :books:

#

I'm sorry, but the knowledge sources provided do not contain information on how to make a Minecraft redstone door. As an AI developed by OpenAI, I can only provide information based on the given knowledge sources. I recommend checking Minecraft tutorials or guides for detailed instructions on how to make a redstone door.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:

#

@merry pendant kapa.ai is still learning and improving, please let us know how it did by reacting below

merry pendant
#

@sour coyote make me a minecraft redstone door

sour coyoteBOT
#

Let me check the knowledge base for you. One moment! :books:

#

I'm sorry, but the knowledge sources provided do not contain information on how to make a Minecraft redstone door. As an AI developed by OpenAI, I can only provide information based on the given knowledge sources. I recommend checking Minecraft tutorials or guides for detailed instructions on how to make a redstone door.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: