Skip to content

Commit

Permalink
Add openai_client as property.
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoLjl committed Nov 13, 2023
1 parent 1b77e98 commit f66a0d9
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 15 deletions.
4 changes: 4 additions & 0 deletions autogen/agentchat/contrib/gpt_assistant_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,10 @@ def assistant_id(self):
"""Return the assistant id"""
return self._openai_assistant.id

@property
def openai_client(self):
return self._openai_client

def get_assistant_instructions(self):
"""Return the assistant instructions from OAI assistant API"""
return self._openai_assistant.instructions
Expand Down
55 changes: 40 additions & 15 deletions notebook/agentchat_oai_code_interpreter.ipynb

Large diffs are not rendered by default.

0 comments on commit f66a0d9

Please sign in to comment.