完善文档页文本向量与重排序调用支持
This commit is contained in:
@@ -44,6 +44,8 @@ const adminPaths: Record<AdminSection, string> = {
|
||||
|
||||
const docsPaths: Record<ApiDocSection, string> = {
|
||||
chat: '/docs/chat',
|
||||
embeddings: '/docs/embeddings',
|
||||
reranks: '/docs/reranks',
|
||||
imageGeneration: '/docs/images/generations',
|
||||
imageEdit: '/docs/images/edits',
|
||||
pricing: '/docs/pricing',
|
||||
@@ -134,6 +136,8 @@ function parseAdminSection(path: string): AdminSection {
|
||||
function parseDocSection(path: string): ApiDocSection {
|
||||
if (path === '/docs') return 'chat';
|
||||
if (path === '/docs/api/chat') return 'chat';
|
||||
if (path === '/docs/api/embeddings') return 'embeddings';
|
||||
if (path === '/docs/api/reranks') return 'reranks';
|
||||
if (path === '/docs/api/media') return 'imageGeneration';
|
||||
if (path === '/docs/playground') return 'chat';
|
||||
return docsSections[path] ?? 'chat';
|
||||
|
||||
Reference in New Issue
Block a user