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:
20
node_modules/openai/lib/ChatCompletionRunner.mjs
generated
vendored
Normal file
20
node_modules/openai/lib/ChatCompletionRunner.mjs
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
import { AbstractChatCompletionRunner, } from "./AbstractChatCompletionRunner.mjs";
|
||||
import { isAssistantMessage } from "./chatCompletionUtils.mjs";
|
||||
export class ChatCompletionRunner extends AbstractChatCompletionRunner {
|
||||
static runTools(client, params, options) {
|
||||
const runner = new ChatCompletionRunner();
|
||||
const opts = {
|
||||
...options,
|
||||
headers: { ...options?.headers, 'X-Stainless-Helper-Method': 'runTools' },
|
||||
};
|
||||
runner._run(() => runner._runTools(client, params, opts));
|
||||
return runner;
|
||||
}
|
||||
_addMessage(message, emit = true) {
|
||||
super._addMessage(message, emit);
|
||||
if (isAssistantMessage(message) && message.content) {
|
||||
this._emit('content', message.content);
|
||||
}
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=ChatCompletionRunner.mjs.map
|
||||
Reference in New Issue
Block a user