@@ -1282,6 +1282,7 @@ def create_prompt(
12821282 tags : Optional [List [str ]] = None ,
12831283 type : Optional [Literal ["chat" ]],
12841284 config : Optional [Any ] = None ,
1285+ commit_message : Optional [str ] = None ,
12851286 ) -> ChatPromptClient : ...
12861287
12871288 @overload
@@ -1295,6 +1296,7 @@ def create_prompt(
12951296 tags : Optional [List [str ]] = None ,
12961297 type : Optional [Literal ["text" ]] = "text" ,
12971298 config : Optional [Any ] = None ,
1299+ commit_message : Optional [str ] = None ,
12981300 ) -> TextPromptClient : ...
12991301
13001302 def create_prompt (
@@ -1307,6 +1309,7 @@ def create_prompt(
13071309 tags : Optional [List [str ]] = None ,
13081310 type : Optional [Literal ["chat" , "text" ]] = "text" ,
13091311 config : Optional [Any ] = None ,
1312+ commit_message : Optional [str ] = None ,
13101313 ) -> PromptClient :
13111314 """Create a new prompt in Langfuse.
13121315
@@ -1318,6 +1321,7 @@ def create_prompt(
13181321 tags: The tags of the prompt. Defaults to None. Will be applied to all versions of the prompt.
13191322 config: Additional structured data to be saved with the prompt. Defaults to None.
13201323 type: The type of the prompt to be created. "chat" vs. "text". Defaults to "text".
1324+ commit_message: Optional string describing the change.
13211325
13221326 Returns:
13231327 TextPromptClient: The prompt if type argument is 'text'.
@@ -1345,6 +1349,7 @@ def create_prompt(
13451349 labels = labels ,
13461350 tags = tags ,
13471351 config = config or {},
1352+ commitMessage = commit_message ,
13481353 type = "chat" ,
13491354 )
13501355 server_prompt = self .client .prompts .create (request = request )
@@ -1360,6 +1365,7 @@ def create_prompt(
13601365 labels = labels ,
13611366 tags = tags ,
13621367 config = config or {},
1368+ commitMessage = commit_message ,
13631369 type = "text" ,
13641370 )
13651371
0 commit comments