Skip to content

Copy OAIAssistant

dfinke edited this page Apr 20, 2024 · 2 revisions

Copy-OAIAssistant

SYNOPSIS

Copies an OpenAI Assistant to create a new Assistant with optional name change.

SYNTAX

Copy-OAIAssistant [[-AssistantId] <Object>] [[-NewName] <Object>] [-ProgressAction <ActionPreference>]
 [<CommonParameters>]

DESCRIPTION

The Copy-OAIAssistant function copies an OpenAI Assistant identified by AssistantId and creates a new Assistant with optional name change.

EXAMPLES

EXAMPLE 1

Copy-OAIAssistant -AssistantId "assistant-12345" -NewName "MyCopiedAssistant"
Copies the OpenAI Assistant with ID "assistant-12345" and creates a new Assistant with the name "MyCopiedAssistant".

EXAMPLE 2

Copy-OAIAssistant -AssistantId "assistant-67890"
Copies the OpenAI Assistant with ID "assistant-67890" and creates a new Assistant with the same name as the original Assistant.

PARAMETERS

-AssistantId

Specifies the ID of the OpenAI Assistant to be copied.

Type: Object
Parameter Sets: (All)
Aliases: id

Required: False
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-NewName

Specifies the new name for the copied Assistant. If not provided, the copied Assistant will retain the same name as the original Assistant.

Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ProgressAction

{{ Fill ProgressAction Description }}

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

RELATED LINKS

Clone this wiki locally