fix: base_url port
feat: add types for reasoning_content and _metadata fix: key format incompatibility
This commit is contained in:
parent
c7601b2270
commit
76703e2e3e
5 changed files with 54 additions and 7 deletions
|
|
@ -64,9 +64,9 @@ export class SecureCompletionClient {
|
|||
private secureMemoryImpl = createSecureMemory();
|
||||
private readonly keySize: 2048 | 4096;
|
||||
|
||||
constructor(config: ClientConfig = { routerUrl: 'https://api.nomyo.ai:12434' }) {
|
||||
constructor(config: ClientConfig = { routerUrl: 'https://api.nomyo.ai:12435' }) {
|
||||
const {
|
||||
routerUrl = 'https://api.nomyo.ai:12434',
|
||||
routerUrl = 'https://api.nomyo.ai:12435',
|
||||
allowHttp = false,
|
||||
secureMemory = true,
|
||||
keySize = 4096,
|
||||
|
|
@ -174,7 +174,7 @@ export class SecureCompletionClient {
|
|||
throw new SecurityError(
|
||||
'Server public key must be fetched over HTTPS to prevent MITM attacks. ' +
|
||||
'For local development, initialize with allowHttp=true: ' +
|
||||
'new SecureChatCompletion({ baseUrl: "http://localhost:12434", allowHttp: true })'
|
||||
'new SecureChatCompletion({ baseUrl: "http://localhost:12435", allowHttp: true })'
|
||||
);
|
||||
} else {
|
||||
console.warn('Fetching key over HTTP (local development mode)');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue