Interface ConversationConfigOptions

Library specific configuration options for the Conversation class, used by the ConversationConfig class.

Hierarchy

  • ConversationConfigOptions

Properties

context?: string

The first system message to set the context for the GPT model.

Default

"You are a large language model trained by OpenAI. Answer as concisely as possible."
disableModeration?: boolean | "soft"

By default, messages are checked for violations of the OpenAI Community Guidelines and throw an error if any are found.
Set this to true to disable this check.
Set this to "soft" to still check for violations, but not throw an error if any are found. The violations will be added to the flags property of the message.

Note: This is not recommended, as it could result in account suspension. Additionally, OpenAI's Moderation API is free to use.

Default

false
dry?: boolean

Dry run. Don't send any requests to OpenAI. Responses will mirror the last message in the conversation.

Default

false

Generated using TypeDoc