pgadmin-org / pgadmin-org/pgadmin4

AI Configuration - auth header support?

Open
#10,382 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature
Dominant language
Python
Stars
3.8k
Forks
891
Avg merge
4d 7h
Merged PRs (30d)
8

Description

My environment has api support for a few LLMs we can tap into, but our api requires that we send out our API token in a http header.

For example in curl, we would use something like:

curl -X POST https://url/v1/chat/completions -H "Authorization: Bearer " .... rest of curl information.

I haven't been able to get it to work by adding user/pass, or 'https://tokenid:token@url/v1/chat/....

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or test is named in the issue. Start by locating the AI configuration's outbound chat-completions request and review how authentication is currently supplied. Done means a configured token can be sent in an Authorization header, with coverage for that request.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
ai, api
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.