---
title: mixins | CodeWeaver Docs
description: API reference for codeweaver.providers.config.categories.mixins
url: "https://docs.knitli.com/api/providers/config/categories/mixins"
type: static
generatedAt: "2026-04-17T17:21:08.749Z"
---

# mixins
       [Open in ChatGPT](https://chatgpt.com/?q=Read%20https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fconfig%2Fcategories%2Fmixins%2F.%20I%20want%20to%20ask%20questions%20about%20it.)[Open in Claude](https://claude.ai/new?q=Read%20https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fconfig%2Fcategories%2Fmixins%2F.%20I%20want%20to%20ask%20questions%20about%20it.)[View in Markdown](/codeweaver/api/providers/config/categories/mixins.md)       [Share on LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fconfig%2Fcategories%2Fmixins%2F)[Share on X](https://x.com/intent/tweet?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fconfig%2Fcategories%2Fmixins%2F&text=mixins)[Share on Threads](https://threads.net/intent/post?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fconfig%2Fcategories%2Fmixins%2F&text=mixins)[Share on Bluesky](https://bsky.app/intent/compose?text=mixins%20https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fconfig%2Fcategories%2Fmixins%2F)[Share on Facebook](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fconfig%2Fcategories%2Fmixins%2F)[Share on Reddit](https://reddit.com/submit?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fconfig%2Fcategories%2Fmixins%2F&title=mixins)[Share on Hacker News](https://news.ycombinator.com/submitlink?u=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fconfig%2Fcategories%2Fmixins%2F&t=mixins)[Share on Email](mailto:?subject=mixins&body=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fconfig%2Fcategories%2Fmixins%2F)[Share on WhatsApp](https://wa.me/?text=mixins%20https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fconfig%2Fcategories%2Fmixins%2F)[Share on Telegram](https://t.me/share/url?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fproviders%2Fconfig%2Fcategories%2Fmixins%2F&text=mixins)
# `codeweaver.providers.config.categories.mixins`
[Section titled “codeweaver.providers.config.categories.mixins”](#codeweaverprovidersconfigcategoriesmixins)
Mixin classes for specific providers.

## Class: `AzureProviderMixin`
[Section titled “Class: AzureProviderMixin”](#class-azureprovidermixin)
Provider settings for Azure.

You need to provide these settings if you are using Azure for either Cohere *embedding or reranking models* or OpenAI *embedding* models. You need to provide these for agentic models too, but not with this class (well, we’ll probably try to make it work if you do, but no garauntees).

**For OpenAI embedding models:** **We only support the “**next-generation** Azure OpenAI API.” Currently, you need to opt into this API in your Azure settings. We didn’t want to start supporting the old API knowing it’s going away.

Note that we don’t currently support using Azure’s SDKs directly for embedding or reranking models. Instead, we use the OpenAI or Cohere clients configured to use Azure endpoints.

For agent models: We support both OpenAI APIs for agentic models because our support comes from `pydantic_ai`, which supports both, it also implements the Azure SDK for agents.

### Method: `as_azure_options`
[Section titled “Method: as_azure_options”](#method-as_azure_options)

**

```
as_azure_options()
```

Return the settings as an AzureOptions TypedDict.

## Class: `BedrockProviderMixin`
[Section titled “Class: BedrockProviderMixin”](#class-bedrockprovidermixin)
Settings for AWS provider.

## Class: `FastEmbedProviderMixin`
[Section titled “Class: FastEmbedProviderMixin”](#class-fastembedprovidermixin)
Special settings for FastEmbed-GPU provider.

These settings only apply if you are using a FastEmbed provider, installed the `codeweaver[fastembed-gpu]` or `codeweaver[full-gpu]` extra, have a CUDA-capable GPU, and have properly installed and configured the ONNX GPU runtime (see ONNX docs).

You can provide these settings with your CodeWeaver embedding provider settings, or rerank provider settings. If you’re using fastembed-gpu for both, we’ll assume you are using the same settings for both if we find one of them.

Important: You cannot have both `fastembed` and `fastembed-gpu` installed at the same time. They conflict with each other. Make sure to uninstall `fastembed` if you want to use `fastembed-gpu`.