Skip to content

Commit

Permalink
Merge branch 'vercel:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
rajatsandeepsen authored Dec 27, 2024
2 parents 40288e1 + ac101a2 commit 7fbfcdd
Show file tree
Hide file tree
Showing 27 changed files with 1,270 additions and 1,466 deletions.
5 changes: 5 additions & 0 deletions .changeset/fast-books-fail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ai-sdk/togetherai': patch
---

feat (examples): Use shared base e2e feature test suite.
Original file line number Diff line number Diff line change
Expand Up @@ -229,3 +229,13 @@ const { text } = await generateText({
```

This structure provides a clean, type-safe implementation that leverages the OpenAI Compatible package while maintaining consistency with the usage of other AI SDK providers.

### Internal API

As you work on your provider you may need to use some of the internal API of the OpenAI Compatible package. You can import these from the `@ai-sdk/openai-compatible/internal` package, for example:

```ts
import { convertToOpenAICompatibleChatMessages } from '@ai-sdk/openai-compatible/internal';
```

You can see the latest available exports in the AI SDK [GitHub repository](https://github.com/vercel/ai/blob/main/packages/openai-compatible/src/internal/index.ts).
10 changes: 5 additions & 5 deletions examples/ai-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@
"@ai-sdk/anthropic": "1.0.6",
"@ai-sdk/azure": "1.0.13",
"@ai-sdk/cohere": "1.0.6",
"@ai-sdk/deepinfra": "0.0.2",
"@ai-sdk/fireworks": "0.0.5",
"@ai-sdk/deepinfra": "0.0.4",
"@ai-sdk/fireworks": "0.0.7",
"@ai-sdk/google": "1.0.12",
"@ai-sdk/google-vertex": "2.0.12",
"@ai-sdk/groq": "1.0.9",
"@ai-sdk/mistral": "1.0.6",
"@ai-sdk/openai": "1.0.11",
"@ai-sdk/openai-compatible": "0.0.11",
"@ai-sdk/openai-compatible": "0.0.13",
"@ai-sdk/provider": "1.0.3",
"@ai-sdk/togetherai": "0.0.12",
"@ai-sdk/xai": "1.0.12",
"@ai-sdk/togetherai": "0.0.14",
"@ai-sdk/xai": "1.0.14",
"@opentelemetry/sdk-node": "0.54.2",
"@opentelemetry/auto-instrumentations-node": "0.54.0",
"@opentelemetry/sdk-trace-node": "1.28.0",
Expand Down
Loading

0 comments on commit 7fbfcdd

Please sign in to comment.