@tokenite/sdk 2.4.0 → 2.5.0

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/README.md CHANGED
@@ -549,6 +549,8 @@ export type ModelInfo = {
549
549
  readonly displayName: string;
550
550
  /** The lab that built the model */
551
551
  readonly creator: 'anthropic' | 'openai' | 'google' | 'grok';
552
+ /** Absolute URL to the creator's logo — use it as the model's icon in a picker */
553
+ readonly creatorLogoUrl: string;
552
554
  /** Capability tiers this model satisfies (cheap / fast / smart / reasoning) */
553
555
  readonly tiers: readonly string[];
554
556
  /** Feature capabilities, e.g. "vision", "tools", "thinking" */
package/dist/client.js CHANGED
@@ -235,6 +235,10 @@ export const Tokenite = (config) => {
235
235
  ...p,
236
236
  logoUrl: absoluteUrl(p.logoUrl, baseUrl),
237
237
  })),
238
+ models: data.models.map((m) => ({
239
+ ...m,
240
+ creatorLogoUrl: absoluteUrl(m.creatorLogoUrl, baseUrl),
241
+ })),
238
242
  };
239
243
  },
240
244
  /**
package/dist/types.d.ts CHANGED
@@ -268,6 +268,8 @@ export type ModelInfo = {
268
268
  readonly displayName: string;
269
269
  /** The lab that built the model */
270
270
  readonly creator: 'anthropic' | 'openai' | 'google' | 'grok';
271
+ /** Absolute URL to the creator's logo — use it as the model's icon in a picker */
272
+ readonly creatorLogoUrl: string;
271
273
  /** Capability tiers this model satisfies (cheap / fast / smart / reasoning) */
272
274
  readonly tiers: readonly string[];
273
275
  /** Feature capabilities, e.g. "vision", "tools", "thinking" */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tokenite/sdk",
3
- "version": "2.4.0",
3
+ "version": "2.5.0",
4
4
  "description": "SDK for integrating \"Login with Tokenite\" into your app. Your users bring their own AI tokens — you pay nothing.",
5
5
  "type": "module",
6
6
  "exports": {