smoltalk 0.0.8 → 0.0.9

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.
@@ -8,5 +8,6 @@ export declare class SmolGoogle extends BaseClient implements SmolClient {
8
8
  private model;
9
9
  constructor(config: SmolGoogleConfig);
10
10
  getClient(): GoogleGenAI;
11
+ getModel(): string;
11
12
  text(config: PromptConfig): Promise<Result<PromptResult>>;
12
13
  }
@@ -20,6 +20,9 @@ export class SmolGoogle extends BaseClient {
20
20
  getClient() {
21
21
  return this.client;
22
22
  }
23
+ getModel() {
24
+ return this.model;
25
+ }
23
26
  async text(config) {
24
27
  const messages = config.messages.map((msg) => msg.toGoogleMessage());
25
28
  const tools = (config.tools || []).map((tool) => {
@@ -8,5 +8,6 @@ export declare class SmolOpenAi extends BaseClient implements SmolClient {
8
8
  private model;
9
9
  constructor(config: SmolOpenAiConfig);
10
10
  getClient(): OpenAI;
11
+ getModel(): string;
11
12
  text(config: PromptConfig): Promise<Result<PromptResult>>;
12
13
  }
@@ -21,6 +21,9 @@ export class SmolOpenAi extends BaseClient {
21
21
  getClient() {
22
22
  return this.client;
23
23
  }
24
+ getModel() {
25
+ return this.model;
26
+ }
24
27
  async text(config) {
25
28
  const messages = config.messages.map((msg) => msg.toOpenAIMessage());
26
29
  const request = {
package/dist/logger.js CHANGED
@@ -4,7 +4,6 @@ export function getLogger(level = "error") {
4
4
  if (loggerInstance) {
5
5
  return loggerInstance;
6
6
  }
7
- console.log("Initializing new logger with level", level);
8
7
  loggerInstance = new EgonLog({ level });
9
8
  return loggerInstance;
10
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "smoltalk",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "description": "A common interface for LLM APIs",
5
5
  "homepage": "https://github.com/egonSchiele/smoltalk",
6
6
  "scripts": {