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

Dependency Updates: Bump the genkit group across 1 directory with 5 updates #189

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
151 changes: 110 additions & 41 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -150,19 +150,19 @@
"typescript-eslint": "^8.0.0"
},
"dependencies": {
"@genkit-ai/ai": "^0.5.17",
"@genkit-ai/core": "^0.5.17",
"@genkit-ai/dotprompt": "^0.5.17",
"@genkit-ai/ai": "^0.9.5",
"@genkit-ai/core": "^0.9.5",
"@genkit-ai/dotprompt": "^0.9.5",
"@genkit-ai/flow": "^0.5.17",
"@genkit-ai/googleai": "^0.5.17",
"@genkit-ai/googleai": "^0.9.5",
"@langchain/community": "^0.3.9",
"@langchain/core": "^0.3.3",
"@langchain/google-genai": "^0.1.0",
"@langchain/openai": "^0.3.0",
"d3-dsv": "^2.0.0",
"dotenv": "^16.4.5",
"firebase-admin": "^12.7.0",
"genkitx-openai": "^0.10.1",
"genkitx-openai": "^0.11.0",
"langchain": "^0.3.2",
"zod": "^3.23.8"
}
524 changes: 332 additions & 192 deletions pnpm-lock.yaml

Large diffs are not rendered by default.


Unchanged files with check annotations Beta

const dallEConfig = params.modelConfig ?? this.modelConfig;
// return response
return {
res: await generate({

Check failure on line 378 in src/agents/chat-agent.ts

GitHub Actions / build (20.x)

Expected 2 arguments, but got 1.
model: dallE3,
config: {
...dallEConfig,
});
// add chat history and obtain new chat ID
params.chatId = await params.chatHistoryStore.addChatHistory(
res.toHistory()

Check failure on line 434 in src/agents/chat-agent.ts

GitHub Actions / build (20.x)

Property 'toHistory' does not exist on type 'GenerateResponse<any>'.
);
// return response in specified format
return {
if (!chatHistory)
throw new Error(`No data found for chat ID ${params.chatId}.`);
// generate response for given query (will use chat prompt and any provided chat history, context and tools)
const res = await generate({

Check failure on line 450 in src/agents/chat-agent.ts

GitHub Actions / build (20.x)

Expected 2 arguments, but got 1.
model:
SupportedModelNames[
params.modelConfig?.name ??
// update chat history with new messages (user query and model response)
await params.chatHistoryStore.addMessages(
params.chatId,
res.toHistory().slice(-2)

Check failure on line 471 in src/agents/chat-agent.ts

GitHub Actions / build (20.x)

Property 'toHistory' does not exist on type 'GenerateResponse<any>'.
);
// return response in specified format
return {
import type {ConfigOptions} from '@genkit-ai/core';

Check failure on line 1 in src/config/config.ts

GitHub Actions / build (20.x)

Module '"@genkit-ai/core"' has no exported member 'ConfigOptions'.
import type {SupportedModels} from '../models/models';
import type {StartServerParamsType} from '../core/server';
if (outputSchema.format === 'json') {
config.cacheStore.cacheResponse(queryHash, {
responseType: 'json',
response: JSON.stringify(response.res.output()),

Check failure on line 580 in src/core/core.ts

GitHub Actions / build (20.x)

'response.res.output' is of type 'unknown'.
});
}
// if media
else if (outputSchema.format === 'media') {
const mediaContent = response.res.media();

Check failure on line 585 in src/core/core.ts

GitHub Actions / build (20.x)

Cannot invoke an object which is possibly 'null'.

Check failure on line 585 in src/core/core.ts

GitHub Actions / build (20.x)

'response.res.media' is possibly 'null'.

Check failure on line 585 in src/core/core.ts

GitHub Actions / build (20.x)

This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?
// if we have valid data
if (mediaContent?.contentType && mediaContent?.url) {
config.cacheStore.cacheResponse(queryHash, {
else {
config.cacheStore.cacheResponse(queryHash, {
responseType: 'text',
response: response.res.text(),

Check failure on line 601 in src/core/core.ts

GitHub Actions / build (20.x)

This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?
});
}
}