@series-inc/rundot-game-sdk 5.0.1 → 5.0.3

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.
@@ -262,18 +262,50 @@ interface AiMessage {
262
262
  content: string;
263
263
  }
264
264
  type AiChatCompletionRequest = {
265
+ /** Model identifier (e.g., 'gpt-4o', 'claude-3-5-sonnet-20241022') */
265
266
  model: string;
266
- messages?: Array<AiMessage>;
267
+ /** Array of message objects in OpenAI chat format */
268
+ messages: Array<AiMessage>;
269
+ /** Maximum number of tokens to generate */
267
270
  maxTokens?: number;
271
+ /** Upper bound for tokens generated, including visible output and reasoning tokens */
272
+ maxCompletionTokens?: number;
273
+ /** Sampling temperature (0.0 to 2.0) */
268
274
  temperature?: number;
275
+ /** Nucleus sampling parameter (0.0 to 1.0) */
269
276
  topP?: number;
277
+ /** Top-k sampling parameter */
270
278
  topK?: number;
279
+ /** Number of completions to generate (1-10) */
271
280
  n?: number;
281
+ /** Up to 4 sequences where the API will stop generating tokens */
272
282
  stop?: string | string[];
283
+ /** Presence penalty (-2.0 to 2.0) */
273
284
  presencePenalty?: number;
285
+ /** Frequency penalty (-2.0 to 2.0) */
274
286
  frequencyPenalty?: number;
287
+ /** Token logit biases */
275
288
  logitBias?: Record<string, number>;
289
+ /** Object specifying the format that the model must output */
290
+ responseFormat?: Record<string, any>;
291
+ /** Random seed for reproducible outputs (Beta feature) */
276
292
  seed?: number;
293
+ /** Unique identifier representing your end-user */
294
+ user?: string;
295
+ /** Timeout in seconds for completion requests */
296
+ timeout?: number;
297
+ /** Whether to return log probabilities of output tokens */
298
+ logprobs?: boolean;
299
+ /** Number of most likely tokens (0-5) to return at each position */
300
+ topLogprobs?: number;
301
+ /** Unique identifier for tracking and managing safety-related requests */
302
+ safetyIdentifier?: string;
303
+ /** Dictionary of headers to be sent with the request */
304
+ headers?: Record<string, any>;
305
+ /** Alternative to headers, used to send extra headers in LLM API request */
306
+ extraHeaders?: Record<string, any>;
307
+ /** Custom tags for organizing completions */
308
+ tags?: string[];
277
309
  /**
278
310
  * This is ONLY ever used when running the sdk outside of RUN.game.
279
311
  * This gets ignored when the game using the sdk is used within a RUN.game instance.
@@ -289,7 +321,7 @@ type AiChatCompletionData = {
289
321
  prompt_cost: number;
290
322
  completion_cost: number;
291
323
  };
292
- object: string;
324
+ object: unknown;
293
325
  created: number;
294
326
  model: string;
295
327
  choices: Array<{
@@ -3595,7 +3595,7 @@ function initializeTime(rundotGameApi, host) {
3595
3595
  }
3596
3596
 
3597
3597
  // src/version.ts
3598
- var SDK_VERSION = "5.0.1";
3598
+ var SDK_VERSION = "5.0.2";
3599
3599
 
3600
3600
  // src/shared-assets/base64Utils.ts
3601
3601
  function base64ToArrayBuffer(base64) {
@@ -5296,5 +5296,5 @@ function initializeSocial(rundotGameApi, host) {
5296
5296
  }
5297
5297
 
5298
5298
  export { BaseCdnApi, DEFAULT_SHARED_LIB_CDN_BASE, EMBEDDED_LIBRARIES, EMBEDDED_LIBRARY_BY_KEY, HASH_ALGORITHM_NODE, HASH_ALGORITHM_WEB_CRYPTO, HapticFeedbackStyle, HostCdnApi, HostDeviceApi, HostEnvironmentApi, HostProfileApi, HostSystemApi, HostTimeApi, MODULE_TO_LIBRARY_SPECIFIERS, MockAdsApi, MockAiApi, MockAnalyticsApi, MockAvatarApi, MockCdnApi, MockDeviceApi, MockEnvironmentApi, MockFeaturesApi, MockHapticsApi, MockIapApi, MockLeaderboardApi, MockLifecycleApi, MockLoggingApi, MockNavigationApi, MockNotificationsApi, MockPopupsApi, MockPreloaderApi, MockProfileApi, MockSharedAssetsApi, MockSocialApi, MockStorageApi, MockSystemApi, MockTimeApi, ROOM_GAME_PHASES, RemoteHost, RpcAdsApi, RpcAiApi, RpcAnalyticsApi, RpcAvatarApi, RpcClient, RpcFeaturesApi, RpcHapticsApi, RpcIapApi, RpcLeaderboardApi, RpcLifecycleApi, RpcLoggingApi, RpcNavigationApi, RpcNotificationsApi, RpcPopupsApi, RpcPreloaderApi, RpcRoomsApi, RpcSharedAssetsApi, RpcSimulationApi, RpcSocialApi, RpcStorageApi, RundotGameMessageId, RundotGameRoom, SDK_VERSION, SandboxProfileApi, base64ToArrayBuffer, base64ToUtf8, computeScoreHash, createHost, createMockStorageApi, getLibraryDefinition, initializeAds, initializeAi, initializeAnalytics, initializeAvatar3d, initializeCdn, initializeFeaturesApi, initializeHaptics, initializeIap, initializeLeaderboard, initializeLifecycleApi, initializeLocalNotifications, initializeLoggingApi, initializePopups, initializePreloader, initializeProfile, initializeRoomsApi, initializeSimulation, initializeSocial, initializeStackNavigation, initializeStorage, initializeSystem, initializeTime, isPacificDaylightTime, setupRoomNotifications };
5299
- //# sourceMappingURL=chunk-LSYX453J.js.map
5300
- //# sourceMappingURL=chunk-LSYX453J.js.map
5299
+ //# sourceMappingURL=chunk-QT3UKD6U.js.map
5300
+ //# sourceMappingURL=chunk-QT3UKD6U.js.map