Skip to content

Commit

Permalink
Fix wrong package ecosystem in dependabot config (#23)
Browse files Browse the repository at this point in the history
* Fix wrong package ecosystem in dependabot config

* Update openai models and tests
  • Loading branch information
kumaranvpl committed Aug 14, 2024
1 parent 7422ac5 commit af90e16
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ updates:
schedule:
interval: "weekly"
# Pnpm
- package-ecosystem: "pnpm"
- package-ecosystem: "npm"
directory: "/auth_callout"
schedule:
interval: "weekly"
17 changes: 9 additions & 8 deletions fastagency/models/llms/openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,25 @@
from ..registry import register

OpenAIModels: TypeAlias = Literal[
"gpt-4o-2024-08-06",
"gpt-4-1106-preview",
"gpt-4-0613",
"gpt-4",
"chatgpt-4o-latest",
"gpt-4-turbo-preview",
"gpt-4o-mini",
"gpt-4-0125-preview",
"gpt-4o-mini-2024-07-18",
"gpt-3.5-turbo",
"gpt-3.5-turbo-1106",
"gpt-4o-mini-2024-07-18",
"gpt-3.5-turbo-0125",
"gpt-4o-mini",
"gpt-3.5-turbo-16k",
"gpt-4-turbo-2024-04-09",
"gpt-3.5-turbo-0125",
"gpt-4-turbo",
"gpt-3.5-turbo-1106",
"gpt-3.5-turbo-instruct-0914",
"gpt-3.5-turbo-instruct",
"gpt-4o",
"gpt-4-0613",
"gpt-4o-2024-05-13",
"gpt-4",
"gpt-4o-2024-08-06",
"gpt-4-turbo",
]

__all__ = [
Expand Down
4 changes: 2 additions & 2 deletions tests/app/test_openai_extensively.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@ def test_validate_incorrect_model(self, model_dict: Dict[str, Any]) -> None:
expected = {
"type": "literal_error",
"loc": ["model"],
"msg": "Input should be 'gpt-4-1106-preview', 'gpt-4-turbo-preview', 'gpt-4o-mini', 'gpt-4-0125-preview', 'gpt-4o-mini-2024-07-18', 'gpt-3.5-turbo', 'gpt-3.5-turbo-16k', 'gpt-4-turbo-2024-04-09', 'gpt-3.5-turbo-0125', 'gpt-4-turbo', 'gpt-3.5-turbo-1106', 'gpt-3.5-turbo-instruct-0914', 'gpt-3.5-turbo-instruct', 'gpt-4o', 'gpt-4-0613', 'gpt-4o-2024-05-13', 'gpt-4' or 'gpt-4o-2024-08-06'",
"msg": "Input should be 'gpt-4o-2024-08-06', 'gpt-4-1106-preview', 'gpt-4-0613', 'gpt-4', 'chatgpt-4o-latest', 'gpt-4-turbo-preview', 'gpt-4-0125-preview', 'gpt-3.5-turbo', 'gpt-3.5-turbo-1106', 'gpt-4o-mini-2024-07-18', 'gpt-3.5-turbo-0125', 'gpt-4o-mini', 'gpt-3.5-turbo-16k', 'gpt-4-turbo-2024-04-09', 'gpt-3.5-turbo-instruct-0914', 'gpt-3.5-turbo-instruct', 'gpt-4o', 'gpt-4o-2024-05-13' or 'gpt-4-turbo'",
"ctx": {
"expected": "'gpt-4-1106-preview', 'gpt-4-turbo-preview', 'gpt-4o-mini', 'gpt-4-0125-preview', 'gpt-4o-mini-2024-07-18', 'gpt-3.5-turbo', 'gpt-3.5-turbo-16k', 'gpt-4-turbo-2024-04-09', 'gpt-3.5-turbo-0125', 'gpt-4-turbo', 'gpt-3.5-turbo-1106', 'gpt-3.5-turbo-instruct-0914', 'gpt-3.5-turbo-instruct', 'gpt-4o', 'gpt-4-0613', 'gpt-4o-2024-05-13', 'gpt-4' or 'gpt-4o-2024-08-06'"
"expected": "'gpt-4o-2024-08-06', 'gpt-4-1106-preview', 'gpt-4-0613', 'gpt-4', 'chatgpt-4o-latest', 'gpt-4-turbo-preview', 'gpt-4-0125-preview', 'gpt-3.5-turbo', 'gpt-3.5-turbo-1106', 'gpt-4o-mini-2024-07-18', 'gpt-3.5-turbo-0125', 'gpt-4o-mini', 'gpt-3.5-turbo-16k', 'gpt-4-turbo-2024-04-09', 'gpt-3.5-turbo-instruct-0914', 'gpt-3.5-turbo-instruct', 'gpt-4o', 'gpt-4o-2024-05-13' or 'gpt-4-turbo'"
},
}
# print(f"{msg_dict=}")
Expand Down
17 changes: 9 additions & 8 deletions tests/models/llms/test_openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,24 +118,25 @@ def test_openai_schema(self) -> None:
"default": "gpt-3.5-turbo",
"description": "The model to use for the OpenAI API, e.g. 'gpt-3.5-turbo'",
"enum": [
"gpt-4o-2024-08-06",
"gpt-4-1106-preview",
"gpt-4-0613",
"gpt-4",
"chatgpt-4o-latest",
"gpt-4-turbo-preview",
"gpt-4o-mini",
"gpt-4-0125-preview",
"gpt-4o-mini-2024-07-18",
"gpt-3.5-turbo",
"gpt-3.5-turbo-1106",
"gpt-4o-mini-2024-07-18",
"gpt-3.5-turbo-0125",
"gpt-4o-mini",
"gpt-3.5-turbo-16k",
"gpt-4-turbo-2024-04-09",
"gpt-3.5-turbo-0125",
"gpt-4-turbo",
"gpt-3.5-turbo-1106",
"gpt-3.5-turbo-instruct-0914",
"gpt-3.5-turbo-instruct",
"gpt-4o",
"gpt-4-0613",
"gpt-4o-2024-05-13",
"gpt-4",
"gpt-4o-2024-08-06",
"gpt-4-turbo",
],
"title": "Model",
"type": "string",
Expand Down

0 comments on commit af90e16

Please sign in to comment.