@lihuu/dsh-ollama-cloud 0.1.1 → 0.1.2
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.js +1 -1
- package/lib/index.d.ts +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -797,7 +797,7 @@ function resolveAdapterOptions(config) {
|
|
|
797
797
|
retryPolicy: resolveRetryPolicy(config.retryPolicy, "llm-ollama-cloud: retryPolicy")
|
|
798
798
|
};
|
|
799
799
|
}
|
|
800
|
-
function apply(ctx, config) {
|
|
800
|
+
function apply(ctx, config = {}) {
|
|
801
801
|
const options = () => resolveAdapterOptions(config);
|
|
802
802
|
const connection = options();
|
|
803
803
|
credentialRef(connection.apiKeyEnv);
|
package/lib/index.d.ts
CHANGED
|
@@ -59,4 +59,4 @@ export declare const PUBLIC_BASE_URL = "https://ollama.com/v1";
|
|
|
59
59
|
* @returns validated connection facts plus the credential reference.
|
|
60
60
|
*/
|
|
61
61
|
export declare function resolveAdapterOptions(config: Config): OllamaConnectionOptions;
|
|
62
|
-
export declare function apply(ctx: Context, config
|
|
62
|
+
export declare function apply(ctx: Context, config?: Config): void;
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -181,7 +181,7 @@ interface CredentialsLike {
|
|
|
181
181
|
resolve(ref: string): Promise<{ value: string; source: string } | undefined>
|
|
182
182
|
}
|
|
183
183
|
|
|
184
|
-
export function apply(ctx: Context, config: Config): void {
|
|
184
|
+
export function apply(ctx: Context, config: Config = {}): void {
|
|
185
185
|
// Static composition: connection facts resolve once at load. A config
|
|
186
186
|
// change in the mount requires a restart — there is no settings section.
|
|
187
187
|
const options = (): OllamaConnectionOptions => resolveAdapterOptions(config)
|