Skip to content

Commit

Permalink
use correct url
Browse files Browse the repository at this point in the history
  • Loading branch information
j4ys0n committed Dec 10, 2024
1 parent 287c2c3 commit 984b21e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ version: '3.6'

services:
llmp:
image: ghcr.io/j4ys0n/llm-proxy:1.5.2
image: ghcr.io/j4ys0n/llm-proxy:1.5.3
container_name: llmp
hostname: llmp
restart: unless-stopped
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: '3.6'

services:
llmp:
image: ghcr.io/j4ys0n/llm-proxy:1.5.2
image: ghcr.io/j4ys0n/llm-proxy:1.5.3
container_name: llmp
hostname: llmp
restart: unless-stopped
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "llm-proxy",
"version": "1.5.2",
"version": "1.5.3",
"description": "Manages Nginx for reverse proxy to multiple LLMs, with TLS & Bearer Auth tokens",
"main": "dist/index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/llm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function getPath(url: string): { path: string, base: string, apiKey?: string } {
try {
const urlParts = url.split('|')
const apiKey = urlParts.length > 1 ? urlParts[1] : undefined
const urlObject = new URL(url)
const urlObject = new URL(urlParts[0])
return {
path: urlObject.pathname || '/v1',
base: urlObject.origin,
Expand Down

0 comments on commit 984b21e

Please sign in to comment.