Skip to content

Commit

Permalink
Merge branch 'main' into fix/body-reuse-during-error
Browse files Browse the repository at this point in the history
  • Loading branch information
jpwilliams authored Nov 27, 2024
2 parents a3f96a1 + 0c2bb8e commit 2957526
Show file tree
Hide file tree
Showing 24 changed files with 2,600 additions and 31 deletions.
5 changes: 5 additions & 0 deletions .changeset/quick-buckets-cover.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@inngest/middleware-validation": patch
---

Initial release of `@inngest/middleware-validation`
5 changes: 5 additions & 0 deletions .changeset/twenty-buttons-retire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"inngest": minor
---

Add `anthropic()` model for `step.ai.*()`
15 changes: 15 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,21 @@ jobs:
- run: pnpm install
- run: pnpm test

"middleware-validation_test":
name: "middleware-validation: Test"
runs-on: ubuntu-latest
defaults:
run:
working-directory: packages/middleware-validation
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-and-build
with:
install-dependencies: false
build: false
- run: pnpm install
- run: pnpm test

package_inngest:
name: "inngest: Package"
runs-on: ubuntu-latest
Expand Down
4 changes: 3 additions & 1 deletion packages/inngest/src/components/ai/adapter.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { type AnthropicAiAdapter } from "./adapters/anthropic.js";
import { type OpenAiAiAdapter } from "./adapters/openai.js";

/**
Expand Down Expand Up @@ -91,7 +92,7 @@ export namespace AiAdapter {
/**
* Supported I/O formats for AI models.
*/
export type Format = "openai-chat"; // | "anthropic" | "gemini" | "bedrock";
export type Format = "openai-chat" | "anthropic";

/**
* A function that creates a model that adheres to an existng AI adapter
Expand All @@ -108,6 +109,7 @@ export namespace AiAdapter {
*/
const adapters = {
"openai-chat": null as unknown as OpenAiAiAdapter,
anthropic: null as unknown as AnthropicAiAdapter,
} satisfies Record<AiAdapter.Format, AiAdapter>;

/**
Expand Down
Loading

0 comments on commit 2957526

Please sign in to comment.