feat: DIA-1362: Add custom LLM endpoint testing scripts #210
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds tests to verify Custom LLM endpoint connection.
How to create a custom LLM endpoint
ollama run llama3.1
/v1
suffix):http://localhost:11434/v1
llama3.1
ollama
localhost
is not available to use), use ngrok or any other proxy serveruser:pass
string, it must be provided as base64 encoded parameter in the corresponding custom LLM endpoint field. For example, runecho -n "user:pass" | base64
, and then use the string:Basic <base64 encoded credentials>
auth_proxy_server.py
script launching it with:TARGET_URL=http://localhost:11434 EXPECTED_HEADER=secret uvicorn auth_proxy_server:app
and providesecret
as Authentication header field in Custom LLM endpoint connection