-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
136 additions
and
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
# 0.2.1 - 8/4/24 | ||
|
||
- Make startup error messages much nicer | ||
|
||
# 0.2.0 - 8/2/24 | ||
|
||
- Support for `tuple` serde datatype | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from manifest.types.service import Service | ||
|
||
ENV_KEY_NAMES = { | ||
Service.OPENAI: "OPENAI_API_KEY", | ||
} |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
from typing import TYPE_CHECKING | ||
|
||
if TYPE_CHECKING: | ||
from manifest.types.service import Service | ||
|
||
|
||
class NoLLMFoundError(Exception): | ||
"""When the automatic LLM initialization fails to find any LLM api keys in | ||
the environment.""" | ||
|
||
pass | ||
|
||
|
||
class UnknownLLMServiceError(Exception): | ||
"""When the user specifies an unknown LLM service.""" | ||
|
||
def __init__(self, service: str): | ||
self.service = service | ||
super().__init__(f"Unknown LLM service: {service}") | ||
|
||
|
||
class NoApiKeyError(Exception): | ||
"""When the automatic LLM initialization fails to find an api key for a | ||
specific LLM service.""" | ||
|
||
def __init__(self, service: "Service"): | ||
self.service = service | ||
super().__init__(f"No API key found for {service}") |
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