-
Notifications
You must be signed in to change notification settings - Fork 51
List models using open ai api #1234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…ccelerated-data-science into track_md_logs_for_error_logging
…o list_models_using_openAI_API
…-science into list_models_using_openAI_API
…racle/accelerated-data-science into list_models_using_openAI_API
…racle/accelerated-data-science into list_models_using_openAI_API
ads/aqua/client/client.py
Outdated
headers = {"Content-Type", "application/json"} | ||
response = self._client.get(self.endpoint, headers=headers, json={}).json() | ||
json_response = response.json() | ||
logger.debug(f"Response JSON: {json_response}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we want to keep this debug statement, we should be more specific in the message.
ads/aqua/config/container_config.py
Outdated
for key, default in config_keys.items() | ||
if key in additional_configurations | ||
] | ||
env_vars_dict = json.loads( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why these changes are here? This will override the changes made in another PR.
self.set_header("Content-Type", "application/json") | ||
|
||
model_deployment = AquaDeploymentApp().get(model_deployment_id) | ||
endpoint = model_deployment.endpoint + "/predict/v1/models" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SHouldn't we check if the endpoint already contains a "/" at the end?
Description
BASEURL/aqua/deployments/models/list/<md_ocid>