You can get chat text completions (based on a thread of chat messages) from any of the chat enabled models using the /chat/completions
REST API endpoint or Chat
Python client class.
Generate a chat text completion
To generate a chat text completion, you can use the following code examples. Depending on your preference or requirements, select the appropriate method for your application.
If you’d like to have tabs to show multiple CodeBlocks at a time, you can use the CodeBlocks
component as demonstrated above.