Skip to content

Commit

Permalink
Improve examples
Browse files Browse the repository at this point in the history
  • Loading branch information
NoraMA-01 authored Jan 21, 2025
1 parent 792c507 commit 609a132
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions examples/SOPHIA-Expert-OAI.ipynb
Original file line number Diff line number Diff line change
@@ -1,25 +1,4 @@
# Train an Expert Agent in Sophia III
# This example assumes that you have your Sophia III server set up and running and that you have an OpenAI API Key to use for setting up this agent.
# You can use any other provider, but this example specifically uses OpenAI for the agent.

# Create the Agent
# For this example, we will create an expert on Sophia III. We will use the OpenAI Provider and gpt-4o model in this example.
# These settings can be easily changed in the streamlit app or over API.

from sophiaiiisdk import SophiaIIISDK

sophia_server = "http://localhost:7437" # Change this to your Sophia III server URL

api_key = "None" # Change this to your Sophia III API key (This should be your JWT in the web interface)
sophia = SophiaIIISDK(base_uri=sophia_server, api_key=api_key)

# If you don't have your JWT but have your authenticator:
# sophia = SophiaIIISDK(base_uri=sophia_server)
# sophia.login(email="Your email address", otp="123456")

agent_name = "Sophia III" # Change this if desired

sophia.add_agent(
agent_name=agent_name,
settings={
"provider": "rotation",
Expand Down

0 comments on commit 609a132

Please sign in to comment.