MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / get_openai_api_url

Function get_openai_api_url

web/pgadmin/llm/utils.py:419–424  ·  view source on GitHub ↗

Get the OpenAI API URL. See :func:`get_anthropic_api_url` for the resolution and rejection rules.

()

Source from the content-addressed store, hash-verified

417
418
419def get_openai_api_url():
420 """
421 Get the OpenAI API URL. See :func:`get_anthropic_api_url` for
422 the resolution and rejection rules.
423 """
424 return _resolve_pref_url('openai_api_url', config.OPENAI_API_URL)
425
426
427def get_openai_api_key():

Callers 3

get_llm_clientFunction · 0.90
get_openai_modelsFunction · 0.90
get_llm_configFunction · 0.85

Calls 1

_resolve_pref_urlFunction · 0.85

Tested by

no test coverage detected