Skip to content

Commit

Permalink
removed github package workflow + updated getFirebaseApp
Browse files Browse the repository at this point in the history
  • Loading branch information
pranav-kural committed Jul 7, 2024
1 parent 5bf8a31 commit ba4f276
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 42 deletions.
38 changes: 0 additions & 38 deletions .github/workflows/publish-github.yml

This file was deleted.

4 changes: 2 additions & 2 deletions src/agents/chat-agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export type ChatAgentConfig = {
modelConfig?: ModelConfig;
} & AgentTypeConfig;

type DefaultChatAgentConfigType = {
export type DefaultChatAgentConfigType = {
agentType: ChatAgentType;
model: SupportedModels;
};
Expand Down Expand Up @@ -157,7 +157,7 @@ export interface ChatAgentInterface
extends ChatAgentAttributes,
ChatAgentMethods {}

type GenerateSystemPromptResponseParams = {
export type GenerateSystemPromptResponseParams = {
agentType?: ChatAgentType;
prompt: Dotprompt;
model?: string;
Expand Down
21 changes: 20 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,31 @@
// import { ChatAgent } from "./agents/chat-agent";
// import { defineChatEndpoint } from "./endpoints/endpoints";
// import { runServer, setupGenkit } from "./genkit/genkit";


// setupGenkit();

// defineChatEndpoint({
// chatAgent: new ChatAgent({
// agentType: "close-ended",
// topic: "Store Inventory Data",
// model: "gemini15Flash",
// modelConfig: {
// version: "latest",
// temperature: 0.5,
// maxOutputTokens: 2048,
// safetySettings: [
// {
// category: "HARM_CATEGORY_DANGEROUS_CONTENT",
// threshold: "BLOCK_LOW_AND_ABOVE",
// },
// ],
// },
// }),
// endpoint: "chat",
// topic: "Store Inventory Data",
// });

// runServer();

export {};
export {};
2 changes: 1 addition & 1 deletion src/integrations/firebase/firebase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
* @param params App options for initializing the Firebase app.
* @returns instance of the Firebase app.
*/
export const getFirebaseApp = (params: AppOptions): app.App =>
export const getFirebaseApp = (params?: AppOptions): app.App =>
initializeApp(params);

/**
Expand Down

0 comments on commit ba4f276

Please sign in to comment.