mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-10 10:22:29 +08:00
move providers to their own folder
This commit is contained in:
parent
d413e6015a
commit
ff679b00b6
@ -76,7 +76,7 @@ import etapiBackupRoute from "../etapi/backup.js";
|
||||
|
||||
import apiDocsRoute from "./api_docs.js";
|
||||
|
||||
const MAX_ALLOWED_FILE_SIZE_MB = 250;
|
||||
const MAX_ALLOWED_FILE_SIZE_MB = 100000;
|
||||
const GET = "get",
|
||||
PST = "post",
|
||||
PUT = "put",
|
||||
|
@ -1,8 +1,8 @@
|
||||
import options from '../options.js';
|
||||
import type { AIService, ChatCompletionOptions, ChatResponse, Message } from './ai_interface.js';
|
||||
import { OpenAIService } from './openai_service.js';
|
||||
import { AnthropicService } from './anthropic_service.js';
|
||||
import { OllamaService } from './ollama_service.js';
|
||||
import { OpenAIService } from './providers/openai_service.js';
|
||||
import { AnthropicService } from './providers/anthropic_service.js';
|
||||
import { OllamaService } from './providers/ollama_service.js';
|
||||
import log from '../log.js';
|
||||
|
||||
type ServiceProviders = 'openai' | 'anthropic' | 'ollama';
|
||||
|
@ -1,6 +1,6 @@
|
||||
import options from '../options.js';
|
||||
import { BaseAIService } from './base_ai_service.js';
|
||||
import type { ChatCompletionOptions, ChatResponse, Message } from './ai_interface.js';
|
||||
import options from '../../options.js';
|
||||
import { BaseAIService } from '../base_ai_service.js';
|
||||
import type { ChatCompletionOptions, ChatResponse, Message } from '../ai_interface.js';
|
||||
|
||||
export class AnthropicService extends BaseAIService {
|
||||
constructor() {
|
@ -1,6 +1,6 @@
|
||||
import options from '../options.js';
|
||||
import { BaseAIService } from './base_ai_service.js';
|
||||
import type { ChatCompletionOptions, ChatResponse, Message } from './ai_interface.js';
|
||||
import options from '../../options.js';
|
||||
import { BaseAIService } from '../base_ai_service.js';
|
||||
import type { ChatCompletionOptions, ChatResponse, Message } from '../ai_interface.js';
|
||||
|
||||
export class OllamaService extends BaseAIService {
|
||||
constructor() {
|
@ -1,6 +1,6 @@
|
||||
import options from '../options.js';
|
||||
import { BaseAIService } from './base_ai_service.js';
|
||||
import type { ChatCompletionOptions, ChatResponse, Message } from './ai_interface.js';
|
||||
import options from '../../options.js';
|
||||
import { BaseAIService } from '../base_ai_service.js';
|
||||
import type { ChatCompletionOptions, ChatResponse, Message } from '../ai_interface.js';
|
||||
|
||||
export class OpenAIService extends BaseAIService {
|
||||
constructor() {
|
Loading…
x
Reference in New Issue
Block a user