Skip to content

Commit 3fa85e0

Browse files
committed
rename credential functions
1 parent c19dbd2 commit 3fa85e0

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎packages/gen/gen_ai_hub/evaluations/credentials.py‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
Service,
99
Source,
1010
VCAPEnvironment,
11-
extract_credentials as _extract_core_credentials,
12-
fetch_credentials as _fetch_core_credentials,
11+
extract_credentials as _do_extract_credentials,
12+
fetch_credentials as _do_fetch_credentials,
1313
get_nested_value,
1414
init_conf,
15-
resolve_credentials as _resolve_core_credentials,
15+
resolve_credentials as _do_resolve_credentials,
1616
resolve_resource_group,
1717
validate_credentials,
1818
)
@@ -49,12 +49,12 @@
4949

5050
def extract_credentials(source: Source, exclude: List[str] = None) -> Dict[str, str]:
5151
"""Extract all evaluation credentials from a source."""
52-
return _extract_core_credentials(source, credential_values=EVAL_CREDENTIAL_VALUES, exclude=exclude)
52+
return _do_extract_credentials(source, credential_values=EVAL_CREDENTIAL_VALUES, exclude=exclude)
5353

5454

5555
def resolve_credentials(sources: List[Source]) -> Dict[str, str]:
5656
"""Extract evaluation credentials from the first source that has any defined."""
57-
return _resolve_core_credentials(sources, credential_values=EVAL_CREDENTIAL_VALUES)
57+
return _do_resolve_credentials(sources, credential_values=EVAL_CREDENTIAL_VALUES)
5858

5959

6060
def fetch_credentials(profile: str = None, **kwargs) -> Dict[str, str]:
@@ -64,4 +64,4 @@ def fetch_credentials(profile: str = None, **kwargs) -> Dict[str, str]:
6464
Precedence order: kwargs > AICORE_SERVICE_KEY > environment variables > config file > VCAP service
6565
(see ai_core_sdk.credentials.fetch_credentials for the full behavior).
6666
"""
67-
return _fetch_core_credentials(profile=profile, credential_values=EVAL_CREDENTIAL_VALUES, **kwargs)
67+
return _do_fetch_credentials(profile=profile, credential_values=EVAL_CREDENTIAL_VALUES, **kwargs)

0 commit comments

Comments
 (0)