Skip to content

Conversation

@pavelgj
Copy link
Collaborator

@pavelgj pavelgj commented Sep 30, 2024

Running a simple app:

import { gemini15Flash, googleAI } from '@genkit-ai/googleai';
import { genkit } from 'genkit';

const ai = genkit({ plugins: [googleAI()] });

(async () => {
  const response = await ai.generate({
    model: gemini15Flash,
    prompt: 'tell me a joke',
  });

  console.log(response.text());
})();
$ tsx src/test.ts 
Why don't scientists trust atoms? 

Because they make up everything! 

Also fixed model deprecation warning.

Fixes #848

Checklist (if applicable):

  • Tested (manually, unit tested, etc.)

@pavelgj pavelgj requested a review from apascal07 September 30, 2024 16:11
@pavelgj pavelgj merged commit d5337bc into next Oct 1, 2024
4 checks passed
@pavelgj pavelgj deleted the pj/quietGenkit branch October 1, 2024 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants