Skip to content

Commit

Permalink
Merge branch 'cp-080-fixes' of https://github.com/solliancenet/founda…
Browse files Browse the repository at this point in the history
…tionallm into cp-080-fixes
  • Loading branch information
joelhulen committed Jul 31, 2024
2 parents b4c429b + df5b3a4 commit f67b2c2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class OperationsManager():
def __init__(self, config: Configuration):
self.config = config
# Retrieve the State API configuration settings.
self.state_api_url = config.get_value('FoundationaLLM:APIEndpoints:StateAPI:Essentials:APIUrl').rstrip('/')
self.state_api_url = config.get_value('FoundationaLLM:APIEndpoints:StateAPI:Essentials:APIUrl').rstrip('/')
self.state_api_key = config.get_value('FoundationaLLM:APIEndpoints:StateAPI:Essentials:APIKey')
env = os.environ.get('FOUNDATIONALLM_ENV', 'prod')
self.verify_certs = False if env == 'dev' else True
Expand Down Expand Up @@ -49,7 +49,7 @@ async def create_operation(
"charset":"utf-8",
"Content-Type":"application/json"
}
print(f'{self.state_api_url}/instances/{instance_id}/operations/{operation_id}')

# Call the State API to create a new operation.
r = requests.post(
f'{self.state_api_url}/instances/{instance_id}/operations/{operation_id}',
Expand Down

0 comments on commit f67b2c2

Please sign in to comment.