mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-31 11:51:22 +00:00
feat(ollama): add 'ollama' to ModelApi type union (#11828)
This commit is contained in:
committed by
Peter Steinberger
parent
5378583da1
commit
91dda25d3b
@@ -4,7 +4,8 @@ export type ModelApi =
|
||||
| "anthropic-messages"
|
||||
| "google-generative-ai"
|
||||
| "github-copilot"
|
||||
| "bedrock-converse-stream";
|
||||
| "bedrock-converse-stream"
|
||||
| "ollama";
|
||||
|
||||
export type ModelCompatConfig = {
|
||||
supportsStore?: boolean;
|
||||
|
||||
@@ -9,6 +9,7 @@ export const ModelApiSchema = z.union([
|
||||
z.literal("google-generative-ai"),
|
||||
z.literal("github-copilot"),
|
||||
z.literal("bedrock-converse-stream"),
|
||||
z.literal("ollama"),
|
||||
]);
|
||||
|
||||
export const ModelCompatSchema = z
|
||||
|
||||
Reference in New Issue
Block a user