generated from spatie/package-skeleton-laravel
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from HelgeSverre/feature/support-latest-stuff
Use string instead of Enum as Model parameter, improve readme
- Loading branch information
Showing
10 changed files
with
154 additions
and
79 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"preset": "laravel", | ||
"rules": { | ||
"class_attributes_separation": { | ||
"elements": { | ||
"const": "only_if_meta" | ||
} | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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,37 @@ | ||
<?php | ||
|
||
namespace HelgeSverre\ReceiptScanner; | ||
|
||
class ModelNames | ||
{ | ||
const DEFAULT = 'gpt-3.5-turbo-instruct'; | ||
|
||
// Turbo Models | ||
const TURBO = 'gpt-3.5-turbo'; | ||
const TURBO_INSTRUCT = 'gpt-3.5-turbo-instruct'; | ||
const TURBO_1106 = 'gpt-3.5-turbo-1106'; | ||
const TURBO_16K = 'gpt-3.5-turbo-16k'; | ||
|
||
// Legacy Turbo Models | ||
const TURBO_0613 = 'gpt-3.5-turbo-0613'; | ||
const TURBO_16K_0613 = 'gpt-3.5-turbo-16k-0613'; | ||
const TURBO_0301 = 'gpt-3.5-turbo-0301'; | ||
|
||
// GPT-4 Models | ||
const GPT4 = 'gpt-4'; | ||
const GPT4_32K = 'gpt-4-32k'; | ||
const GPT4_32K_0613 = 'gpt-4-32k-0613'; | ||
const GPT4_1106_PREVIEW = 'gpt-4-1106-preview'; | ||
|
||
// Legacy GPT-4 Models | ||
const GPT4_0314 = 'gpt-4-0314'; | ||
const GPT4_32K_0314 = 'gpt-4-32k-0314'; | ||
|
||
public static function isCompletionModel(string $modelName): bool | ||
{ | ||
return match ($modelName) { | ||
self::TURBO_INSTRUCT => true, | ||
default => false, | ||
}; | ||
} | ||
} |
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
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.