Spaces:
Runtime error
Runtime error
Update my_agent.py
Browse files14 unmodified lines151617181920211 unmodified line2324252627282930313214 unmodified lines47484950515214 unmodified linesmodel = OpenAIServerModel(model_id="GEMINI_15_PRO", # Replace with the desired model IDapi_base=os.getenv("BASE_URL"), # Base URL for the APIapi_key=os.getenv("OKTA_ACCESS_TOKEN"), # API key for authenticationcustom_role_conversions=None,1 unmodified lineclient_kwargs={"default_headers": {"Subscription-Key": os.getenv("SUBSCRIPTION_KEY")}, # Additional headers,},web_search_options={"enabled": True,"dynamic_threshold": 0.5})# Load system prompt from prompt.yaml file14 unmodified linesname=None,description=None,prompt_templates=prompt_templates,model=model)14 unmodified lines151617181920211 unmodified line2324252627282930313214 unmodified lines4748495051525314 unmodified linesmodel = OpenAIServerModel(model_id="CLAUDE_3_SONNET_37", # Replace with the desired model IDapi_base=os.getenv("BASE_URL"), # Base URL for the APIapi_key=os.getenv("OKTA_ACCESS_TOKEN"), # API key for authenticationcustom_role_conversions=None,1 unmodified lineclient_kwargs={"default_headers": {"Subscription-Key": os.getenv("SUBSCRIPTION_KEY")}, # Additional headers,},# web_search_options={# "enabled": True,# "dynamic_threshold": 0.5# })# Load system prompt from prompt.yaml file14 unmodified linesname=None,description=None,prompt_templates=prompt_templates,additional_authorized_imports=['pandas', 'numpy', 'openpyxl', 'xlrd'],model=model)
my_agent.py+6-5