Skip to content
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

[JS] Log level change + repetitive 'Shutting down all Genkit servers...' message #1689

Open
sevseux opened this issue Jan 29, 2025 · 0 comments
Labels
bug Something isn't working js

Comments

@sevseux
Copy link

sevseux commented Jan 29, 2025

Describe the bug

Hi, it's not a bug but why the log recently changed from debug to info ? (inside this PR)

logger.info('Shutting down all Genkit servers...');

✔  functions: Loaded functions definitions from source: api, backend
>  Shutting down all Genkit servers...
>  Shutting down all Genkit servers...

To Reproduce

I currently use genkit without external server and Flows but inside my firebase functions running in Emulator.
I don't need to firebase init genkit

const { genkit } = require("genkit");
const { openAI, gpt4o } = require("genkitx-openai");

const genkitInstance = genkit({
    plugins: [
        openAI({
            apiKey: process.env.GENKIT_OPENAI_API_KEY,
        }),
    ],
    model: gpt4o,
});

const { output } = await genkitInstance.generate({
    prompt: "Say hi",
});

Expected behavior

Avoid getting "Shutting down all Genkit servers..." for every reload during development

Runtime (please complete the following information):

  • OS: [e.g. Linux, MacOS] W11 w/ WSL2
  • Version [e.g. 22]
"@genkit-ai/googleai": "^0.9.12",
"genkit": "^0.9.12",
"genkitx-openai": "^0.13.0",
"firebase-tools": "^13.29.1",
"firebase-admin": "^13.0.2",
"firebase-functions": "^6.2.0",

** Node version

  • run node --version at paste here
    v20.13.1

Additional context

Thanks !

@sevseux sevseux added bug Something isn't working js labels Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working js
Projects
Status: No status
Development

No branches or pull requests

1 participant