Skip to content

Commit

Permalink
address PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Vivihung committed May 2, 2023
1 parent 1de9af8 commit adb279d
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class BotController : ControllerBase
/// <param name="memoryStore">The memory store.</param>
/// <param name="chatRepository">The chat session repository.</param>
/// <param name="chatMessageRepository">The chat message repository.</param>
/// <param name="aiServiceOptions">The AI service options.</param>
/// <param name="aiServiceOptions">The AI service options where we need the embedding settings from.</param>
/// <param name="botSchemaOptions">The bot schema options.</param>
/// <param name="documentMemoryOptions">The document memory options.</param>
/// <param name="logger">The logger.</param>
Expand Down Expand Up @@ -79,7 +79,9 @@ public class BotController : ControllerBase
embeddingOptions: this._embeddingOptions,
botSchemaOptions: this._botSchemaOptions))
{
return this.BadRequest("Incompatible schema");
return this.BadRequest("Incompatible schema. " +
$"The supported bot schema is {this._botSchemaOptions.Name}/{this._botSchemaOptions.Version} for the {this._embeddingOptions.DeploymentOrModelId} model from {this._embeddingOptions.AIService}. " +
$"But the uploaded file is with schema {bot.Schema.Name}/{bot.Schema.Version} for the {bot.EmbeddingConfigurations.DeploymentOrModelId} model from {bot.EmbeddingConfigurations.AIService}.");
}

string chatTitle = $"{bot.ChatTitle} - Clone";
Expand Down

0 comments on commit adb279d

Please sign in to comment.