style 样式修改

This commit is contained in:
zyxucp
2024-05-26 00:50:23 +08:00
parent cda6e54f0b
commit 05cda17e2e
2 changed files with 8 additions and 8 deletions

View File

@@ -22,7 +22,13 @@
</Button>
</FormItem>
<FormItem Label="使用方法" LabelCol="_formItemLayout.LabelCol" WrapperCol="_formItemLayout.WrapperCol">
<TextArea @bind-Value="@_desc" ReadOnly="true" Rows="15" />
<h3>为了方便其他应用对接接口符合openai规范省略了温度TopP等参数。</h3>
<h3>BaseUrl:</h3>
<p>@_openApiUrl</p>
<h3>Headers::</h3>
<p>Authorization : Bearer @_appModel.SecretKey</p>
<h3>Body: </h3>
<TextArea @bind-Value="@_desc" ReadOnly="true" Rows="10" />
</FormItem>
</Form>
</Card>

View File

@@ -58,13 +58,7 @@ namespace AntSK.Pages.AppPage
private void GetDesc()
{
_desc = @$"为了方便其他应用对接接口符合openai规范省略了温度TopP等参数。
BaseUrl:
{_openApiUrl}
headers:
Authorization:Bearer {_appModel.SecretKey}
Body:
{JsonConvert.SerializeObject(new OpenAIModel() { messages = new List<OpenAIMessage>() { new OpenAIMessage() { role = "user", content = "" } } }, Formatting.Indented)}";
_desc = JsonConvert.SerializeObject(new OpenAIModel() { messages = new List<OpenAIMessage>() { new OpenAIMessage() { role = "user", content = "你好,你是谁" } } }, Formatting.Indented);
}
private void GetScript()