forked from lobehub/lobe-chat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
β¨ feat: add Ai21Labs model provider (lobehub#3727)
* β¨ feat: add Ai21Labs model provider * π¨ chore: fix rebase conflicts * π fix: fix CI error * π style: add model price * π fix: fix CI error
- Loading branch information
1 parent
8eac1bd
commit d2fe0f0
Showing
14 changed files
with
349 additions
and
0 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
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,37 @@ | ||
import { ModelProviderCard } from '@/types/llm'; | ||
|
||
// ref https://docs.ai21.com/reference/jamba-15-api-ref | ||
const Ai21: ModelProviderCard = { | ||
chatModels: [ | ||
{ | ||
displayName: 'Jamba 1.5 Mini', | ||
enabled: true, | ||
functionCall: true, | ||
id: 'jamba-1.5-mini', | ||
pricing: { | ||
input: 0.2, | ||
output: 0.4, | ||
}, | ||
tokens: 256_000, | ||
}, | ||
{ | ||
displayName: 'Jamba 1.5 Large', | ||
enabled: true, | ||
functionCall: true, | ||
id: 'jamba-1.5-large', | ||
pricing: { | ||
input: 2, | ||
output: 8, | ||
}, | ||
tokens: 256_000, | ||
}, | ||
], | ||
checkModel: 'jamba-1.5-mini', | ||
id: 'ai21', | ||
modelList: { showModelFetcher: true }, | ||
modelsUrl: 'https://docs.ai21.com/reference', | ||
name: 'Ai21Labs', | ||
url: 'https://studio.ai21.com', | ||
}; | ||
|
||
export default Ai21; |
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.