fix: exclude id field from prompt update request body
This commit is contained in:
parent
8a8b0453ad
commit
f1fdb59bbf
1 changed files with 2 additions and 2 deletions
|
|
@ -95,8 +95,8 @@ async def update_prompt(
|
|||
detail=f"Prompt with ID {promptId} not found"
|
||||
)
|
||||
|
||||
# Convert Prompt to dict for interface
|
||||
update_data = promptData.dict()
|
||||
# Convert Prompt to dict for interface, excluding the id field
|
||||
update_data = promptData.dict(exclude={'id'})
|
||||
|
||||
# Update prompt
|
||||
updatedPrompt = managementInterface.updatePrompt(promptId, update_data)
|
||||
|
|
|
|||
Loading…
Reference in a new issue