Skip to content

Commit e6e3ab4

Browse files
committed
add google provider
1 parent f7b4d03 commit e6e3ab4

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ fluent-ai includes support for multiple AI providers and modalities.
2222
| --------- | ------------------ | ------------------ | ------------------ | ------------------ |
2323
| anthropic | :white_check_mark: | | | :white_check_mark: |
2424
| fal | | | :white_check_mark: | |
25+
| google | :white_check_mark: | | | |
2526
| ollama | :white_check_mark: | :white_check_mark: | | :white_check_mark: |
2627
| openai | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
2728
| voyageai | | :white_check_mark: | | |

src/jobs/job.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,12 @@ const falJobSchema = z
216216
})
217217
.and(z.discriminatedUnion("type", [imageJobSchema]));
218218

219+
const googleJobSchema = z
220+
.object({
221+
provider: z.literal("google"),
222+
})
223+
.and(z.discriminatedUnion("type", [chatJobSchema]));
224+
219225
const ollamaJobSchema = z
220226
.object({
221227
provider: z.literal("ollama"),
@@ -251,6 +257,7 @@ const voyageaiJobSchema = z
251257
export const jobSchema = z.union([
252258
anthropicJobSchema,
253259
falJobSchema,
260+
googleJobSchema,
254261
ollamaJobSchema,
255262
openaiJobSchema,
256263
voyageaiJobSchema,

0 commit comments

Comments
 (0)