-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Default model aliases replace the concept of a model being a default. Now, a user can set up their default model aliases and tools can use those to interact with the default models without needing to worry about which model they are actually using. This change extends to knowledge so that knowledge will always use the same text-embedding model for a give knowledge set. Another minor change here: renaming agent usage to llm. Signed-off-by: Donnie Adams <[email protected]>
- Loading branch information
Showing
33 changed files
with
1,220 additions
and
119 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package types | ||
|
||
type DefaultModelAliasType string | ||
|
||
const ( | ||
DefaultModelAliasTypeTextEmbedding DefaultModelAliasType = "text-embedding" | ||
DefaultModelAliasTypeLLM DefaultModelAliasType = "llm" | ||
DefaultModelAliasTypeLLMMini DefaultModelAliasType = "llm-mini" | ||
DefaultModelAliasTypeImageGeneration DefaultModelAliasType = "image-generation" | ||
) | ||
|
||
type DefaultModelAlias struct { | ||
DefaultModelAliasManifest | ||
} | ||
|
||
type DefaultModelAliasManifest struct { | ||
Alias string `json:"alias"` | ||
Model string `json:"model"` | ||
} | ||
|
||
type DefaultModelAliasList List[DefaultModelAlias] |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Oops, something went wrong.