mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-17 01:56:27 +08:00
feat(server): refactor provider interface (#11665)
fix AI-4 fix AI-18 better provider/model choose to allow fallback to similar models (e.g., self-hosted) when the provider is not fully configured split functions of different output types
This commit is contained in:
@@ -743,7 +743,7 @@ export class ChatSessionService {
|
||||
* // allocate a session, can be reused chat in about 12 hours with same session
|
||||
* await using session = await session.get(sessionId);
|
||||
* session.push(message);
|
||||
* copilot.generateText(session.finish(), model);
|
||||
* copilot.text({ modelId }, session.finish());
|
||||
* }
|
||||
* // session will be disposed after the block
|
||||
* @param sessionId session id
|
||||
|
||||
Reference in New Issue
Block a user