Skip to content

Editor: Added agent #30761

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 13 commits into
base: dev
Choose a base branch
from
4 changes: 2 additions & 2 deletions editor/js/Agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ class Agent {
async init() {

// Initialize Google AI
const ai = new GoogleGenAI( { apiKey: 'GENAI_API_KEY' } );
const ai = new GoogleGenAI( { apiKey: 'AIzaSyAHEPxUn9Ow4Lk8oXM4jl3u_stzOIxkkGM' } );

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mrdoob any problem on exposing this key?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was exposing it intentionally, but seems like githack doesn't like serving stuff with keys...


// Get scene information
const sceneInfo = this.getSceneInfo();
Expand Down Expand Up @@ -410,7 +410,7 @@ class Agent {
Do not include any other text outside the JSON.`;

this.chat = await ai.chats.create( {
model: 'gemini-2.0-flash',
model: 'gemini-2.5-pro-exp-03-25',
history: [
{
role: 'user',
Expand Down