mirror of
https://github.com/PinkSheep27/SBU-Hackathon.git
synced 2026-10-11 00:30:26 -04:00
got rid of the excess whitespaces and added the maxOutputTokens into the GenerateConfig in the types.ts
This commit is contained in:
+13
-12
@@ -4,27 +4,28 @@ export type MessagePart = {
|
||||
text: string;
|
||||
}
|
||||
|
||||
export interface Message{
|
||||
export interface Message {
|
||||
role: MessageRole;
|
||||
parts:MessagePart[];
|
||||
parts: MessagePart[];
|
||||
}
|
||||
export type ChatHistory = Message[];
|
||||
|
||||
export interface GenerateConfig{
|
||||
temperature : number;
|
||||
topP : number;
|
||||
responseMimeType : string;
|
||||
export interface GenerateConfig {
|
||||
temperature: number;
|
||||
topP: number;
|
||||
responseMimeType: string;
|
||||
maxOutputTokens?: number;
|
||||
}
|
||||
|
||||
export interface ChatSetting{
|
||||
temperature :number;
|
||||
export interface ChatSetting {
|
||||
temperature: number;
|
||||
model: string;
|
||||
sysTemInstructions: string;
|
||||
}
|
||||
|
||||
export interface CardData {
|
||||
id: number;
|
||||
title: string;
|
||||
tracks: string[];
|
||||
summary: string;
|
||||
id: number;
|
||||
title: string;
|
||||
tracks: string[];
|
||||
summary: string;
|
||||
}
|
||||
Reference in New Issue
Block a user