-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add venice.ai api model provider #1008
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -451,6 +451,20 @@ export const models: Models = { | |
[ModelClass.IMAGE]: settings.IMAGE_HYPERBOLIC_MODEL || "FLUX.1-dev", | ||
}, | ||
}, | ||
[ModelProviderName.VENICE]: { | ||
endpoint: "https://api.venice.ai/api/v1", | ||
settings: { | ||
stop: [], | ||
maxInputTokens: 128000, | ||
maxOutputTokens: 8192, | ||
temperature: 0.6, | ||
}, | ||
model: { | ||
[ModelClass.SMALL]: settings.SMALL_VENICE_MODEL || "llama-3.3-70b", | ||
[ModelClass.MEDIUM]: settings.MEDIUM_VENICE_MODEL || "llama-3.3-70b", | ||
[ModelClass.LARGE]: settings.LARGE_VENICE_MODEL || "llama-3.1-405b", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could probably add an image model here like There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I originally had image generation in here but it needs more work so I figured I'd add it in a later PR. In the first commit here it's included though. |
||
}, | ||
}, | ||
}; | ||
|
||
export function getModel(provider: ModelProviderName, type: ModelClass) { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can just add this as a case around line 149, as venice follow the openAI api spec.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea I tested this as well (definitely works) but I plan to add the venice_parameters that are exclusive to venice as they come out.