feat: support model remap now

This commit is contained in:
JustSong committed 2023-06-27 13:42:45 +08:00
1 parent b456624a35
commit 1ab01b7eb5
5 files changed
+57 -12

No files matched your search

+1
View File
@@ -88,6 +88,7 @@ func Distribute() func(c *gin.Context) {
c.Set("channel", channel.Type)
c.Set("channel_id", channel.Id)
c.Set("channel_name", channel.Name)
c.Set("model_mapping", channel.ModelMapping)
c.Request.Header.Set("Authorization", fmt.Sprintf("Bearer %s", channel.Key))
c.Set("base_url", channel.BaseURL)
if channel.Type == common.ChannelTypeAzure {