llmpt 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "llmpt",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "LLM Proxy Trace - local LLM proxy that captures full traces with real-time Web dashboard",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1,9 +0,0 @@
1
- import { Provider } from './base.js';
2
- import type { ProviderConfig } from '../types.js';
3
- export declare class OllamaProvider extends Provider {
4
- constructor(config: ProviderConfig);
5
- getUpstreamUrl(requestPath: string): string;
6
- getUpstreamHeaders(incomingHeaders?: Record<string, string>): Record<string, string>;
7
- matchesPath(path: string): boolean;
8
- }
9
- //# sourceMappingURL=ollama.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ollama.d.ts","sourceRoot":"","sources":["../../../src/server/providers/ollama.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,qBAAa,cAAe,SAAQ,QAAQ;gBAC9B,MAAM,EAAE,cAAc;IAIlC,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM;IAM3C,kBAAkB,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAMpF,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;CAGnC"}
@@ -1,24 +0,0 @@
1
- // ============================================================
2
- // Ollama Provider Adapter
3
- // ============================================================
4
- import { Provider } from './base.js';
5
- export class OllamaProvider extends Provider {
6
- constructor(config) {
7
- super('ollama', config);
8
- }
9
- getUpstreamUrl(requestPath) {
10
- const cleanPath = requestPath.startsWith('/') ? requestPath.slice(1) : requestPath;
11
- const base = this.config.baseUrl.replace(/\/+$/, '');
12
- return `${base}/${cleanPath}`;
13
- }
14
- getUpstreamHeaders(incomingHeaders) {
15
- const headers = { 'Content-Type': 'application/json' };
16
- if (this.config.headers)
17
- Object.assign(headers, this.config.headers);
18
- return headers;
19
- }
20
- matchesPath(path) {
21
- return path.startsWith('/api/') || path.startsWith('api/');
22
- }
23
- }
24
- //# sourceMappingURL=ollama.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ollama.js","sourceRoot":"","sources":["../../../src/server/providers/ollama.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,0BAA0B;AAC1B,+DAA+D;AAE/D,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAGrC,MAAM,OAAO,cAAe,SAAQ,QAAQ;IAC1C,YAAY,MAAsB;QAChC,KAAK,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;IAC1B,CAAC;IAED,cAAc,CAAC,WAAmB;QAChC,MAAM,SAAS,GAAG,WAAW,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC;QACnF,MAAM,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QACrD,OAAO,GAAG,IAAI,IAAI,SAAS,EAAE,CAAC;IAChC,CAAC;IAED,kBAAkB,CAAC,eAAwC;QACzD,MAAM,OAAO,GAA2B,EAAE,cAAc,EAAE,kBAAkB,EAAE,CAAC;QAC/E,IAAI,IAAI,CAAC,MAAM,CAAC,OAAO;YAAE,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACrE,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,WAAW,CAAC,IAAY;QACtB,OAAO,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;IAC7D,CAAC;CACF"}