@easbot/ollama-sdk 0.1.2 → 0.1.3
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/dist/index.cjs +7 -7
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.mjs +7 -7
- package/package.json +17 -19
package/dist/index.d.cts
CHANGED
|
@@ -5,6 +5,8 @@ interface OllamaConfig {
|
|
|
5
5
|
baseURL?: string;
|
|
6
6
|
fetch?: typeof fetch;
|
|
7
7
|
headers?: Record<string, string>;
|
|
8
|
+
logPath?: string;
|
|
9
|
+
logLevel?: 'DEBUG' | 'INFO' | 'WARN' | 'ERROR';
|
|
8
10
|
}
|
|
9
11
|
interface OllamaProviderOptions {
|
|
10
12
|
temperature?: number;
|
|
@@ -84,7 +86,7 @@ declare class TimeoutError extends OllamaError {
|
|
|
84
86
|
}
|
|
85
87
|
|
|
86
88
|
declare const OLLAMA_DEFAULT_OPTIONS: {
|
|
87
|
-
readonly numCtx:
|
|
89
|
+
readonly numCtx: 262144;
|
|
88
90
|
readonly temperature: 0.7;
|
|
89
91
|
readonly topK: 40;
|
|
90
92
|
readonly topP: 0.9;
|
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,8 @@ interface OllamaConfig {
|
|
|
5
5
|
baseURL?: string;
|
|
6
6
|
fetch?: typeof fetch;
|
|
7
7
|
headers?: Record<string, string>;
|
|
8
|
+
logPath?: string;
|
|
9
|
+
logLevel?: 'DEBUG' | 'INFO' | 'WARN' | 'ERROR';
|
|
8
10
|
}
|
|
9
11
|
interface OllamaProviderOptions {
|
|
10
12
|
temperature?: number;
|
|
@@ -84,7 +86,7 @@ declare class TimeoutError extends OllamaError {
|
|
|
84
86
|
}
|
|
85
87
|
|
|
86
88
|
declare const OLLAMA_DEFAULT_OPTIONS: {
|
|
87
|
-
readonly numCtx:
|
|
89
|
+
readonly numCtx: 262144;
|
|
88
90
|
readonly temperature: 0.7;
|
|
89
91
|
readonly topK: 40;
|
|
90
92
|
readonly topP: 0.9;
|