fix: 修复api样式问题
This commit is contained in:
@@ -148,7 +148,7 @@ async function copyText(text: string) {
|
||||
>
|
||||
<template #default>
|
||||
<div class="leading-normal text-sm">
|
||||
自 2025 年末起,AI 领域接口标准逐渐分化,原有的统一接口 <code class="bg-yellow-100 dark:bg-yellow-900 px-1 rounded">/v1/chat/completions</code> 已不再兼容所有模型。各厂商推出的新接口差异较大,接入第三方工具时,请务必根据具体模型选择正确的 API 类型。您可前往
|
||||
自 2025 年末起,AI 领域接口标准逐渐分化,原有的统一接口 <code class="bg-yellow-100 px-1 rounded">/v1/chat/completions</code> 已不再兼容所有模型。各厂商推出的新接口差异较大,接入第三方工具时,请务必根据具体模型选择正确的 API 类型。您可前往
|
||||
<router-link to="/model-library" class="text-primary font-bold hover:underline">模型库</router-link>
|
||||
查看各模型对应的 API 信息。
|
||||
</div>
|
||||
@@ -203,7 +203,7 @@ async function copyText(text: string) {
|
||||
<span class="font-bold text-sm">调用示例 (cURL)</span>
|
||||
</div>
|
||||
</template>
|
||||
<div class="code-block bg-gray-50 dark:bg-[#161b22] p-3 rounded-md border border-gray-200 dark:border-gray-700">
|
||||
<div class="code-block bg-gray-50 p-3 rounded-md border border-gray-200 ">
|
||||
<pre class="text-xs overflow-x-auto font-mono m-0"><code class="language-bash">curl {{ fullUrl }} \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer YOUR_API_KEY" \
|
||||
|
||||
Reference in New Issue
Block a user