mirror of
https://github.com/AIDotNet/AntSK.git
synced 2026-02-17 22:10:14 +08:00
style 样式修改
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user