mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-15 15:41:05 +00:00
perf: add outlink usage (#4691)
* update doc * perf: add outlink usage * feat: jina provider
This commit is contained in:
@@ -3,14 +3,14 @@ import { MongoOutLink } from './schema';
|
||||
import { FastGPTProUrl } from '../../common/system/constants';
|
||||
import { ChatHistoryItemResType } from '@fastgpt/global/core/chat/type';
|
||||
|
||||
export const addOutLinkUsage = async ({
|
||||
export const addOutLinkUsage = ({
|
||||
shareId,
|
||||
totalPoints
|
||||
}: {
|
||||
shareId: string;
|
||||
totalPoints: number;
|
||||
}) => {
|
||||
MongoOutLink.findOneAndUpdate(
|
||||
return MongoOutLink.findOneAndUpdate(
|
||||
{ shareId },
|
||||
{
|
||||
$inc: { usagePoints: totalPoints },
|
||||
|
Reference in New Issue
Block a user