Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(backend): adding Azure AI Foundry OpenAPI support #3683

Merged
merged 6 commits into from
Jan 15, 2025

Conversation

Sma1lboy
Copy link
Collaborator

@Sma1lboy Sma1lboy commented Jan 14, 2025

Azure OpenAI HTTP API Support

Added HTTP API support for Azure OpenAI Service, enabling seamless integration with all OpenAI API models available through Azure AI Service, including:

  • GPT series chat models
  • Embedding models

add the following configuration to your ~/.tabby/config.toml to get started:

# Configure chat model
[model.chat.http]
kind = "azure/chat"
model_name = "gpt-4o-mini"
api_endpoint = "https://xxx.openai.azure.com"  
api_key = "your-api-key"

# Configure embedding model
[model.embedding.http]
kind = "azure/embedding"
model_name = "text-embedding-3-small"
api_endpoint = "https://xxx.openai.azure.com"  
api_key = "your-api-key"

Relate Issues

@Sma1lboy Sma1lboy requested a review from zwpaper January 14, 2025 04:29
@Sma1lboy Sma1lboy marked this pull request as ready for review January 14, 2025 04:29
@Sma1lboy Sma1lboy force-pushed the feat-azure-api-support branch from 3711346 to 5383bfc Compare January 14, 2025 05:46
Copy link
Member

@zwpaper zwpaper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

otherwise LGTM

crates/http-api-bindings/src/embedding/azure.rs Outdated Show resolved Hide resolved
crates/http-api-bindings/src/chat/mod.rs Outdated Show resolved Hide resolved
crates/http-api-bindings/src/embedding/azure.rs Outdated Show resolved Hide resolved
crates/http-api-bindings/src/embedding/mod.rs Outdated Show resolved Hide resolved
@Sma1lboy Sma1lboy requested a review from zwpaper January 14, 2025 20:35
@wsxiaoys wsxiaoys merged commit cbdc98d into TabbyML:main Jan 15, 2025
3 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants