Skip to content

Commit

Permalink
UPDATE: update version to 1.9.3, remove ape-core dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
engineerA314 committed Sep 17, 2024
1 parent 47fbff2 commit 0fc9ece
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setup(
name="weavel",
version="1.9.2",
version="1.9.3",
packages=find_namespace_packages(),
entry_points={},
description="Weavel, Prompt Optimization and Evaluation for LLM Applications",
Expand Down
2 changes: 1 addition & 1 deletion weavel/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

from .utils import *

__version___ = "1.8.2"
__version___ = "1.9.3"
12 changes: 10 additions & 2 deletions weavel/types/prompts.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
from typing import Any, Dict, List, Optional, Union
from typing import Any, Dict, List, Optional, Union, Literal
from pydantic import BaseModel
from ape.types import ResponseFormat

class JsonSchema(BaseModel):
name: str
schema: Dict[str, Any]
strict: bool = True


class ResponseFormat(BaseModel):
type: Literal["json_object", "json_schema", "xml"]
json_schema: Optional[JsonSchema] = None

class Prompt(BaseModel):
name: str
Expand Down

0 comments on commit 0fc9ece

Please sign in to comment.