devasurya commited on
Commit
f572436
·
verified ·
1 Parent(s): 8a8748c

Update my_agent.py

Browse files
Files changed (1) hide show
  1. my_agent.py +6 -5
my_agent.py CHANGED
@@ -15,7 +15,7 @@ import os
15
 
16
 
17
  model = OpenAIServerModel(
18
- model_id="GEMINI_15_PRO", # Replace with the desired model ID
19
  api_base=os.getenv("BASE_URL"), # Base URL for the API
20
  api_key=os.getenv("OKTA_ACCESS_TOKEN"), # API key for authentication
21
  custom_role_conversions=None,
@@ -23,10 +23,10 @@ model = OpenAIServerModel(
23
  client_kwargs={
24
  "default_headers": {"Subscription-Key": os.getenv("SUBSCRIPTION_KEY")}, # Additional headers,
25
  },
26
- web_search_options={
27
- "enabled": True,
28
- "dynamic_threshold": 0.5
29
- }
30
  )
31
 
32
  # Load system prompt from prompt.yaml file
@@ -47,6 +47,7 @@ agent = CodeAgent(
47
  name=None,
48
  description=None,
49
  prompt_templates=prompt_templates,
 
50
  model=model)
51
 
52
 
 
15
 
16
 
17
  model = OpenAIServerModel(
18
+ model_id="CLAUDE_3_SONNET_37", # Replace with the desired model ID
19
  api_base=os.getenv("BASE_URL"), # Base URL for the API
20
  api_key=os.getenv("OKTA_ACCESS_TOKEN"), # API key for authentication
21
  custom_role_conversions=None,
 
23
  client_kwargs={
24
  "default_headers": {"Subscription-Key": os.getenv("SUBSCRIPTION_KEY")}, # Additional headers,
25
  },
26
+ # web_search_options={
27
+ # "enabled": True,
28
+ # "dynamic_threshold": 0.5
29
+ # }
30
  )
31
 
32
  # Load system prompt from prompt.yaml file
 
47
  name=None,
48
  description=None,
49
  prompt_templates=prompt_templates,
50
+ additional_authorized_imports=['pandas', 'numpy', 'openpyxl', 'xlrd'],
51
  model=model)
52
 
53