-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Quart draft * Fix ask and test * Quart deploying now * Use semantic * Get tests working * Revert simple * Typing fixes * dont use pipe
- Loading branch information
Showing
21 changed files
with
216 additions
and
191 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
from abc import ABC, abstractmethod | ||
from typing import Any | ||
|
||
|
||
class Approach: | ||
def run(self, q: str, overrides: dict[str, Any]) -> Any: | ||
raise NotImplementedError | ||
class ChatApproach(ABC): | ||
@abstractmethod | ||
async def run(self, history: list[dict], overrides: dict[str, Any]) -> Any: | ||
... | ||
|
||
|
||
class AskApproach(ABC): | ||
@abstractmethod | ||
async def run(self, q: str, overrides: dict[str, Any]) -> Any: | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.