国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

102 lines
4.3KB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
  6. <title>修改AI模型</title>
  7. <link rel="stylesheet" href="/static/web/css/font-awesome.min.css">
  8. <link rel="stylesheet" href="/static/web/css/bootstrap.min.css">
  9. <link rel="stylesheet" href="/static/web/css/admin.css">
  10. </head>
  11. <body>
  12. <div class="container-fluid">
  13. <ol class="breadcrumb">
  14. <li class="breadcrumb-item"><a href="index_body.php">后台面板</a></li>
  15. <li class="breadcrumb-item"><a href="ai_main.php">AI模型管理</a></li>
  16. <li class="breadcrumb-item active">修改AI模型</li>
  17. </ol>
  18. <div class="card shadow-sm">
  19. <div class="card-header">修改AI模型</div>
  20. <div class="card-body">
  21. <form action="ai_edit.php" method="post" enctype="multipart/form-data" name="form1">
  22. <input type="hidden" name="id" value="<?php echo $myAI['id']?>">
  23. <input type="hidden" name="dopost" value="saveedit">
  24. <div class="table-responsive">
  25. <table class="table table-borderless">
  26. <tbody>
  27. <tr>
  28. <td width="260">名称</td>
  29. <td>
  30. <input type="text" name="title" id="title" value="<?php echo $myAI['title']?>" class="admin-input-lg" required>
  31. <a href="ai_model_add.php?aiid=<?php echo $myAI['id']?>" class="btn btn-success btn-sm">添加模型版本</a>
  32. </td>
  33. </tr>
  34. <tr>
  35. <td>描述</td>
  36. <td><textarea name="description" id="description" class="admin-textarea-sm"><?php echo $myAI['description']?></textarea></td>
  37. </tr>
  38. <tr>
  39. <td>公司名称</td>
  40. <td><input type="text" name="company" id="company" class="admin-input-lg" value="<?php echo $myAI['company']?>" required></td>
  41. </tr>
  42. <tr>
  43. <td>官方网址</td>
  44. <td><input type="text" name="website" id="website" class="admin-input-lg" value="<?php echo $myAI['website']?>"></td>
  45. </tr>
  46. <tr>
  47. <td>API Key</td>
  48. <td><input type="text" name="apikey" id="apikey" class="admin-input-lg" value="<?php echo $myAI['apikey']?>" required><a href="https://www.dedebiz.com/ai?from=dedebiz#models" target="_blank" class="text-success">(获取密钥)</a></td>
  49. </tr>
  50. <tr>
  51. <td>接口地址</td>
  52. <td><input type="text" name="baseurl" id="baseurl" class="admin-input-lg" value="<?php echo $myAI['baseurl']?>" required>(需兼容OpenAI接口标准)</td>
  53. </tr>
  54. <tr>
  55. <td colspan="2">
  56. <div class="table-responsive">
  57. <table class="table table-borderless table-hover">
  58. <thead>
  59. <tr>
  60. <td scope="col">ID</td>
  61. <td scope="col">Model</td>
  62. <td scope="col">名称</td>
  63. <td scope="col" width="30%">描述</td>
  64. <td scope="col">排序</td>
  65. <td scope="col">操作</td>
  66. </tr>
  67. </thead>
  68. <tbody>
  69. {dede:datalist}
  70. <tr>
  71. <td>{dede:field.id/}</td>
  72. <td>{dede:field.model function='dede_htmlspecialchars(@me)'/}</td>
  73. <td>{dede:field.title function='dede_htmlspecialchars(@me)'/}</td>
  74. <td>{dede:field.description/}</td>
  75. <td>{dede:field.sortrank/}</td>
  76. <td>
  77. <a href="ai_model_edit.php?id={dede:field.id/}" class="btn btn-light btn-sm"><i class="fa fa-pencil-square" title="修改"></i></a>
  78. <a href="ai_model_edit.php?id={dede:field.id/}&dopost=delete" class="btn btn-danger btn-sm"><i class="fa fa-trash" title="删除"></i></a>
  79. </td>
  80. </tr>
  81. {/dede:datalist}
  82. </tbody>
  83. </table>
  84. </div>
  85. </td>
  86. </tr>
  87. <tr>
  88. <td colspan="2" align="center">
  89. <button type="submit" class="btn btn-success btn-sm">保存</button>
  90. <button type="reset" class="btn btn-outline-success btn-sm">重置</button>
  91. <a href="ai_main.php" class="btn btn-outline-success btn-sm">返回</a>
  92. </td>
  93. </tr>
  94. </tbody>
  95. </table>
  96. </div>
  97. </form>
  98. </div>
  99. </div>
  100. </div>
  101. </body>
  102. </html>