@squidcloud/client 1.0.220 → 1.0.222

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.
@@ -40,6 +40,11 @@ export interface StableDiffusionCoreOptions extends BaseAiGenerateImageOptions {
40
40
  /** The possible sources for the LLM provider API key. */
41
41
  export type ApiKeySource = 'user' | 'system';
42
42
  export type OpenAiResponseFormat = 'text' | 'json_object';
43
+ export type AiFileUrlType = 'image';
44
+ export interface AiFileUrl {
45
+ type: AiFileUrlType;
46
+ url: string;
47
+ }
43
48
  /** The options for the AI chatbot chat method. */
44
49
  export interface AiChatbotChatOptions {
45
50
  /** The maximum number of tokens to use when making the request to the AI model. Default to the max tokens the model can accept */
@@ -58,6 +63,8 @@ export interface AiChatbotChatOptions {
58
63
  temperature?: number;
59
64
  /** The model to use for this chat. If not provided, the profile model will be used */
60
65
  overrideModel?: AiChatModelName;
66
+ /** File URLs (only images supported at the moment) */
67
+ fileUrls?: Array<AiFileUrl>;
61
68
  }
62
69
  export type AiChatbotMutationType = 'insert' | 'update' | 'delete';
63
70
  export type AiChatbotResourceType = 'instruction' | 'context' | 'profile';
@@ -1,3 +1,4 @@
1
+ import { AiFileUrl } from '../public-types/ai-chatbot.public-types';
1
2
  export type AiChatResponseFormat = 'text' | 'json_object';
2
3
  export interface AiChatOptions {
3
4
  maxTokens: number;
@@ -5,4 +6,5 @@ export interface AiChatOptions {
5
6
  temperature: number;
6
7
  instructions: string;
7
8
  clientId: string;
9
+ fileUrls: Array<AiFileUrl>;
8
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squidcloud/client",
3
- "version": "1.0.220",
3
+ "version": "1.0.222",
4
4
  "description": "A typescript implementation of the Squid client",
5
5
  "main": "dist/cjs/index.js",
6
6
  "types": "dist/typescript-client/src/index.d.ts",