Skip to content

Commit

Permalink
Merge branch 'hotfixes' into integration
Browse files Browse the repository at this point in the history
  • Loading branch information
fit-alessandro-berti committed Nov 20, 2023
2 parents afe8aff + e33cfe6 commit c38d105
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pm4py/algo/querying/llm/connectors/openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ def apply(query: str, parameters: Optional[Dict[Any, Any]] = None) -> str:
message = {"role": "user", "content": query}

response = client.chat.completions.create(model=model, messages=[message])
return response["choices"][0]["message"]["content"]

return response.choices[0].message.content

0 comments on commit c38d105

Please sign in to comment.