Skip to content

Add provider field and provider-aware request headersFeat/anthropic support#35

Open
OmprakashSahani wants to merge 2 commits into
ibigio:mainfrom
OmprakashSahani:feat/anthropic-support
Open

Add provider field and provider-aware request headersFeat/anthropic support#35
OmprakashSahani wants to merge 2 commits into
ibigio:mainfrom
OmprakashSahani:feat/anthropic-support

Conversation

@OmprakashSahani

Copy link
Copy Markdown

Summary

This PR adds groundwork for provider-specific model configuration and request handling.

Changes:

  • Adds an optional provider field to ModelConfig
  • Marks existing default OpenAI models with provider: openai
  • Adds provider helper methods in LLMClient
  • Makes request headers provider-aware
  • Preserves existing OpenAI and Azure OpenAI behavior

Motivation

ShellAI currently assumes OpenAI-compatible request behavior in the LLM client. Adding an explicit provider field makes the model configuration more extensible and prepares the codebase for future provider-specific integrations such as Anthropic.

Notes

This PR does not fully implement Anthropic payload or streaming response parsing yet. It only introduces the configuration and request-header groundwork needed for provider-specific support.

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.

1 participant