Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

New model support #72

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lucifertrj
Copy link
Contributor

  • I added AzureChatOpenAI model support
  • Model name is gpt4 32k

Copy link
Contributor

@nikhilchintawar nikhilchintawar left a comment

Choose a reason for hiding this comment

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

Please add the documentation for this model

leave blank if not using a proxy or service emulator."""
temperature: float = 0
"""What sampling temperature to use."""
openai_api_base: Optional[str] = None
Copy link
Contributor

Choose a reason for hiding this comment

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

You can remove the openai_api_base as it can be default as azure

model = AzureChatOpenAI(
deployment_name= self.config.deployment_name,
model_name = self.config.model_name,
openai_api_type="azure",
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove other parameters except openai_api_base & add

**self.config.parameters.dict()

If you see you added the all parameters as config but you're not accepting that from users.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants