Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

OpenAILink

Guides

  • OpenAILink

Tech Notes

  • Configuring OpenAI Credentials

Symbols

  • OpenAIChatMessageObject
  • OpenAIChatObject
  • OpenAICompletion
  • OpenAICompletionObject
  • OpenAICreateImage
  • OpenAIEmbedding
  • $OpenAIKey
  • OpenAIModels
  • $OpenAIKey
  • $OpenAIUser
ChristopherWolfram`OpenAILink`
OpenAIChatMessageObject
​
OpenAIChatMessageObject[…]
represents a message in a ChatGPT conversation.
​
​
OpenAIChatMessageObject[role,text]
creates a message with the specified role and text.
​
Details and Options

Examples  
(1)
Basic Examples  
(1)
Create a message:
In[1]:=
OpenAIChatMessageObject
["user","Hello! How are you?"]
Out[1]=
OpenAIChatMessageObject
role: user
text: Hello! How are you?

Use the message in a chat:
In[2]:=
OpenAICompletion
[%]
Out[2]=
OpenAIChatMessageObject
role: assistant
text: ​As an AI language model, I don't have feelings, but I'm always functioning optimally. Thank you for asking. How can I assist you today?

SeeAlso
OpenAICompletion
RelatedGuides
▪
OpenAILink
""

© 2025 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com