mirror of
https://github.com/lfnovo/open-notebook.git
synced 2026-04-28 19:40:50 +00:00
Creates the API layer for Open Notebook Creates a services API gateway for the Streamlit front-end Migrates the SurrealDB SDK to the official one Change all database calls to async New podcast framework supporting multiple speaker configurations Implement the surreal-commands library for async processing Improve docker image and docker-compose configurations
25 lines
1.1 KiB
Python
25 lines
1.1 KiB
Python
from typing import ClassVar, List, Literal, Optional
|
|
|
|
from pydantic import Field
|
|
|
|
from open_notebook.domain.base import RecordModel
|
|
|
|
|
|
class ContentSettings(RecordModel):
|
|
record_id: ClassVar[str] = "open_notebook:content_settings"
|
|
default_content_processing_engine_doc: Optional[
|
|
Literal["auto", "docling", "simple"]
|
|
] = Field("auto", description="Default Content Processing Engine for Documents")
|
|
default_content_processing_engine_url: Optional[
|
|
Literal["auto", "firecrawl", "jina", "simple"]
|
|
] = Field("auto", description="Default Content Processing Engine for URLs")
|
|
default_embedding_option: Optional[Literal["ask", "always", "never"]] = Field(
|
|
"ask", description="Default Embedding Option for Vector Search"
|
|
)
|
|
auto_delete_files: Optional[Literal["yes", "no"]] = Field(
|
|
"yes", description="Auto Delete Uploaded Files"
|
|
)
|
|
youtube_preferred_languages: Optional[List[str]] = Field(
|
|
["en", "pt", "es", "de", "nl", "en-GB", "fr", "de", "hi", "ja"],
|
|
description="Preferred languages for YouTube transcripts",
|
|
)
|