mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-08-17 16:34:44 -05:00
Clarify where the LLM API key files should be. #9758
This commit is contained in:
@@ -51,7 +51,7 @@ Select your preferred LLM provider from the dropdown:
|
||||
Use Claude models from Anthropic, or any Anthropic-compatible API provider.
|
||||
|
||||
* **API URL**: Custom API endpoint URL (leave empty for default: https://api.anthropic.com/v1).
|
||||
* **API Key File**: Path to a file containing your Anthropic API key (obtain from https://console.anthropic.com/). Optional when using a custom URL with a provider that does not require authentication.
|
||||
* **API Key File**: Path to a file containing your Anthropic API key (obtain from https://console.anthropic.com/). This path refers to the filesystem where the pgAdmin server is running (e.g., inside the container if using Docker). The ``~`` prefix is expanded to the home directory of the user running the pgAdmin server process. Optional when using a custom URL with a provider that does not require authentication.
|
||||
* **Model**: Select from available Claude models (e.g., claude-sonnet-4-20250514).
|
||||
|
||||
**OpenAI**
|
||||
@@ -59,7 +59,7 @@ Select your preferred LLM provider from the dropdown:
|
||||
LiteLLM, LM Studio, EXO, or other local inference servers).
|
||||
|
||||
* **API URL**: Custom API endpoint URL (leave empty for default: https://api.openai.com/v1). Include the ``/v1`` path prefix if required by your provider.
|
||||
* **API Key File**: Path to a file containing your OpenAI API key (obtain from https://platform.openai.com/). Optional when using a custom URL with a provider that does not require authentication.
|
||||
* **API Key File**: Path to a file containing your OpenAI API key (obtain from https://platform.openai.com/). This path refers to the filesystem where the pgAdmin server is running (e.g., inside the container if using Docker). The ``~`` prefix is expanded to the home directory of the user running the pgAdmin server process. Optional when using a custom URL with a provider that does not require authentication.
|
||||
* **Model**: Select from available GPT models (e.g., gpt-4).
|
||||
|
||||
**Ollama**
|
||||
|
||||
@@ -52,7 +52,10 @@ Use the fields on the *AI* panel to configure your LLM provider:
|
||||
to use an Anthropic-compatible API provider.
|
||||
|
||||
* Use the *API Key File* field to specify the path to a file containing your
|
||||
Anthropic API key. The API key may be optional when using a custom API URL
|
||||
Anthropic API key. This path refers to the filesystem where the pgAdmin
|
||||
server is running (e.g., inside the container if using Docker). The ``~``
|
||||
prefix is expanded to the home directory of the user running the pgAdmin
|
||||
server process. The API key may be optional when using a custom API URL
|
||||
with a provider that does not require authentication.
|
||||
|
||||
* Use the *Model* field to select from the available Claude models. Click the
|
||||
@@ -68,7 +71,10 @@ Use the fields on the *AI* panel to configure your LLM provider:
|
||||
(e.g., ``http://localhost:1234/v1``).
|
||||
|
||||
* Use the *API Key File* field to specify the path to a file containing your
|
||||
OpenAI API key. The API key may be optional when using a custom API URL
|
||||
OpenAI API key. This path refers to the filesystem where the pgAdmin
|
||||
server is running (e.g., inside the container if using Docker). The ``~``
|
||||
prefix is expanded to the home directory of the user running the pgAdmin
|
||||
server process. The API key may be optional when using a custom API URL
|
||||
with a provider that does not require authentication.
|
||||
|
||||
* Use the *Model* field to select from the available GPT models. Click the
|
||||
|
||||
@@ -123,6 +123,8 @@ class LLMModule(PgAdminModule):
|
||||
category_label=gettext('Anthropic'),
|
||||
help_str=gettext(
|
||||
'Path to a file containing your Anthropic API key. '
|
||||
'This path must be on the server hosting pgAdmin, '
|
||||
'e.g. inside the container when using Docker. '
|
||||
'The file should contain only the API key. The API key '
|
||||
'may be optional when using a custom API URL with a '
|
||||
'provider that does not require authentication.'
|
||||
@@ -185,6 +187,8 @@ class LLMModule(PgAdminModule):
|
||||
category_label=gettext('OpenAI'),
|
||||
help_str=gettext(
|
||||
'Path to a file containing your OpenAI API key. '
|
||||
'This path must be on the server hosting pgAdmin, '
|
||||
'e.g. inside the container when using Docker. '
|
||||
'The file should contain only the API key. The API key '
|
||||
'may be optional when using a custom API URL with a '
|
||||
'provider that does not require authentication.'
|
||||
|
||||
Reference in New Issue
Block a user