Initial commit: KidsAI Explorer with complete functionality
- Complete KidsAI Explorer application - Multi-language support (English/German) - AI-powered educational guidance using OpenAI - Interactive chat interface for children - Proper placeholder translation fixes - Mobile-responsive design - Educational framework for critical thinking
This commit is contained in:
45
node_modules/openai/beta/realtime/internal-base.d.mts
generated
vendored
Normal file
45
node_modules/openai/beta/realtime/internal-base.d.mts
generated
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
import { RealtimeClientEvent, RealtimeServerEvent, ErrorEvent } from "../../resources/beta/realtime/realtime.mjs";
|
||||
import { EventEmitter } from "../../lib/EventEmitter.mjs";
|
||||
import { OpenAIError } from "../../error.mjs";
|
||||
import OpenAI, { AzureOpenAI } from "../../index.mjs";
|
||||
export declare class OpenAIRealtimeError extends OpenAIError {
|
||||
/**
|
||||
* The error data that the API sent back in an `error` event.
|
||||
*/
|
||||
error?: ErrorEvent.Error | undefined;
|
||||
/**
|
||||
* The unique ID of the server event.
|
||||
*/
|
||||
event_id?: string | undefined;
|
||||
constructor(message: string, event: ErrorEvent | null);
|
||||
}
|
||||
type Simplify<T> = {
|
||||
[KeyType in keyof T]: T[KeyType];
|
||||
} & {};
|
||||
type RealtimeEvents = Simplify<{
|
||||
event: (event: RealtimeServerEvent) => void;
|
||||
error: (error: OpenAIRealtimeError) => void;
|
||||
} & {
|
||||
[EventType in Exclude<RealtimeServerEvent['type'], 'error'>]: (event: Extract<RealtimeServerEvent, {
|
||||
type: EventType;
|
||||
}>) => unknown;
|
||||
}>;
|
||||
export declare abstract class OpenAIRealtimeEmitter extends EventEmitter<RealtimeEvents> {
|
||||
/**
|
||||
* Send an event to the API.
|
||||
*/
|
||||
abstract send(event: RealtimeClientEvent): void;
|
||||
/**
|
||||
* Close the websocket connection.
|
||||
*/
|
||||
abstract close(props?: {
|
||||
code: number;
|
||||
reason: string;
|
||||
}): void;
|
||||
protected _onError(event: null, message: string, cause: any): void;
|
||||
protected _onError(event: ErrorEvent, message?: string | undefined): void;
|
||||
}
|
||||
export declare function isAzure(client: Pick<OpenAI, 'apiKey' | 'baseURL'>): client is AzureOpenAI;
|
||||
export declare function buildRealtimeURL(client: Pick<OpenAI, 'apiKey' | 'baseURL'>, model: string): URL;
|
||||
export {};
|
||||
//# sourceMappingURL=internal-base.d.mts.map
|
||||
Reference in New Issue
Block a user