mirror of
https://github.com/lfnovo/open-notebook.git
synced 2026-04-29 03:50:04 +00:00
feat: improve dev commands, update all langchain dependencies to their latest major versions
This commit is contained in:
parent
77feff344f
commit
b1bd522c5c
8 changed files with 464 additions and 60 deletions
|
|
@ -2,7 +2,7 @@ import asyncio
|
|||
from typing import Any, ClassVar, Dict, List, Literal, Optional, Tuple, Union
|
||||
|
||||
from loguru import logger
|
||||
from pydantic import BaseModel, Field, field_validator
|
||||
from pydantic import BaseModel, ConfigDict, Field, field_validator
|
||||
from surreal_commands import submit_command
|
||||
from surrealdb import RecordID
|
||||
|
||||
|
|
@ -142,6 +142,8 @@ class SourceInsight(ObjectModel):
|
|||
|
||||
|
||||
class Source(ObjectModel):
|
||||
model_config = ConfigDict(arbitrary_types_allowed=True)
|
||||
|
||||
table_name: ClassVar[str] = "source"
|
||||
asset: Optional[Asset] = None
|
||||
title: Optional[str] = None
|
||||
|
|
@ -151,9 +153,6 @@ class Source(ObjectModel):
|
|||
default=None, description="Link to surreal-commands processing job"
|
||||
)
|
||||
|
||||
class Config:
|
||||
arbitrary_types_allowed = True
|
||||
|
||||
@field_validator("command", mode="before")
|
||||
@classmethod
|
||||
def parse_command(cls, value):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue