@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 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: Config): void;
62
+ export declare function apply(ctx: Context, config?: Config): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lihuu/dsh-ollama-cloud",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "DeepSeek Harness plugin: adds the Ollama cloud chat-completions provider for LLM models.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
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)