Skip to content

Commit

Permalink
add google ai initial data
Browse files Browse the repository at this point in the history
  • Loading branch information
sdcb committed Jan 18, 2025
1 parent be003bb commit 31fb0c6
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/BE/DB/Init/BasicData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ private static void InsertTransactionTypes(ChatsDB db)

private static void InsertModelReferences(ChatsDB db)
{
// Generated from data, hash: 9a260fb4f9f10c860ddfa1eba88bb4f3097caddf475eb39618431604002b38aa
// Generated from data, hash: bcd5a4d707fabdfc1dc936a05fa8f28f44117908b195d1aafbc531240d17d238
db.ModelReferences.AddRange(
[
new(){ Id=0, ProviderId=0, Name="Test", ShortName=null, IsLegacy=false, MinTemperature=0.00M, MaxTemperature=2.00M, AllowSearch=false, AllowVision=true, AllowSystemPrompt=true, AllowStreaming=true, ContextWindow=2048, MaxResponseTokens=2048, TokenizerId=1, InputTokenPrice1M=0.00000M, OutputTokenPrice1M=0.00000M, CurrencyCode="RMB", },
Expand Down Expand Up @@ -248,13 +248,16 @@ private static void InsertModelReferences(ChatsDB db)
new(){ Id=1217, ProviderId=12, Name="Phi-3.5-vision-instruct", ShortName="Phi-3.5", IsLegacy=false, MinTemperature=0.00M, MaxTemperature=2.00M, AllowSearch=false, AllowVision=true, AllowSystemPrompt=true, AllowStreaming=true, ContextWindow=131072, MaxResponseTokens=4096, TokenizerId=null, InputTokenPrice1M=1.00000M, OutputTokenPrice1M=2.00000M, CurrencyCode="USD", },
new(){ Id=1218, ProviderId=12, Name="o1-preview", ShortName=null, IsLegacy=true, MinTemperature=1.00M, MaxTemperature=1.00M, AllowSearch=false, AllowVision=false, AllowSystemPrompt=false, AllowStreaming=false, ContextWindow=128000, MaxResponseTokens=32768, TokenizerId=null, InputTokenPrice1M=15.00000M, OutputTokenPrice1M=60.00000M, CurrencyCode="USD", },
new(){ Id=1219, ProviderId=12, Name="o1-mini", ShortName=null, IsLegacy=false, MinTemperature=1.00M, MaxTemperature=1.00M, AllowSearch=false, AllowVision=false, AllowSystemPrompt=false, AllowStreaming=false, ContextWindow=128000, MaxResponseTokens=65536, TokenizerId=null, InputTokenPrice1M=3.00000M, OutputTokenPrice1M=12.00000M, CurrencyCode="USD", },
new(){ Id=1220, ProviderId=12, Name="o1-2024-12-17", ShortName="o1", IsLegacy=false, MinTemperature=1.00M, MaxTemperature=1.00M, AllowSearch=false, AllowVision=true, AllowSystemPrompt=true, AllowStreaming=false, ContextWindow=200000, MaxResponseTokens=100000, TokenizerId=2, InputTokenPrice1M=15.00000M, OutputTokenPrice1M=60.00000M, CurrencyCode="USD", }
new(){ Id=1220, ProviderId=12, Name="o1-2024-12-17", ShortName="o1", IsLegacy=false, MinTemperature=1.00M, MaxTemperature=1.00M, AllowSearch=false, AllowVision=true, AllowSystemPrompt=true, AllowStreaming=false, ContextWindow=200000, MaxResponseTokens=100000, TokenizerId=2, InputTokenPrice1M=15.00000M, OutputTokenPrice1M=60.00000M, CurrencyCode="USD", },
new(){ Id=1300, ProviderId=13, Name="gemini-2.0-flash-thinking-exp", ShortName="gemini", IsLegacy=false, MinTemperature=0.00M, MaxTemperature=2.00M, AllowSearch=false, AllowVision=true, AllowSystemPrompt=true, AllowStreaming=true, ContextWindow=40000, MaxResponseTokens=8000, TokenizerId=null, InputTokenPrice1M=0.00000M, OutputTokenPrice1M=0.00000M, CurrencyCode="USD", },
new(){ Id=1301, ProviderId=13, Name="gemini-2.0-flash-exp", ShortName="gemini", IsLegacy=false, MinTemperature=0.00M, MaxTemperature=2.00M, AllowSearch=false, AllowVision=true, AllowSystemPrompt=true, AllowStreaming=true, ContextWindow=1048576, MaxResponseTokens=8000, TokenizerId=null, InputTokenPrice1M=0.00000M, OutputTokenPrice1M=0.00000M, CurrencyCode="USD", },
new(){ Id=1302, ProviderId=13, Name="gemini-exp-1206", ShortName="gemini", IsLegacy=false, MinTemperature=0.00M, MaxTemperature=2.00M, AllowSearch=false, AllowVision=true, AllowSystemPrompt=true, AllowStreaming=true, ContextWindow=2097152, MaxResponseTokens=8000, TokenizerId=null, InputTokenPrice1M=0.00000M, OutputTokenPrice1M=0.00000M, CurrencyCode="USD", }
]);
}

private static void InsertModelProviders(ChatsDB db)
{
// Generated from data, hash: 615290985867eb3467e7889a31c4edf5dcdbd113930d67df8e19b6cd27c955ca
// Generated from data, hash: 0c51c3982b9ce410261a8695176e270a98f6ab8433fd70c1afcd24c22653d4e7
db.ModelProviders.AddRange(
[
new(){ Id=0, Name="Test", InitialHost=null, InitialSecret=null, },
Expand All @@ -269,7 +272,8 @@ private static void InsertModelProviders(ChatsDB db)
new(){ Id=9, Name="Zhipu AI", InitialHost=null, InitialSecret="", },
new(){ Id=10, Name="DeepSeek", InitialHost=null, InitialSecret="", },
new(){ Id=11, Name="x.ai", InitialHost=null, InitialSecret="xai-yourkey", },
new(){ Id=12, Name="Github Models", InitialHost=null, InitialSecret="ghp_yourkey", }
new(){ Id=12, Name="Github Models", InitialHost=null, InitialSecret="ghp_yourkey", },
new(){ Id=13, Name="Google AI", InitialHost=null, InitialSecret="", }
]);
}
};

0 comments on commit 31fb0c6

Please sign in to comment.