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: support azure-openai #166

Merged
merged 14 commits into from
Oct 30, 2023
Merged

feat: support azure-openai #166

merged 14 commits into from
Oct 30, 2023

Conversation

sigoden
Copy link
Owner

@sigoden sigoden commented Oct 29, 2023

Configuration:

clients:
  # See https://learn.microsoft.com/en-us/azure/ai-services/openai/chatgpt-quickstart
  - type: azure-openai                                # Azure openai configuration
    api_base: https://RESOURCE.openai.azure.com       # Azure openai base URL
    api_key: xxx                                      # Azure openai api key, alternative to AZURE_OPENAI_KEY
    models:                                           # Support models
      - name: MyGPT4                                  # Model deployment name
        max_tokens: 4096
    proxy: socks5://127.0.0.1:1080                    # Set proxy server. Optional
    connect_timeout: 10                               # Set a timeout in seconds for connect to gpt. Optional

@sigoden
Copy link
Owner Author

sigoden commented Oct 29, 2023

Can anyone help me test this?

@madnight
Copy link

@sigoden I have tested this with a GPT-4 32k deployment in Azure. It works.

@sigoden
Copy link
Owner Author

sigoden commented Oct 30, 2023

@madnight Thanks

@sigoden sigoden merged commit 3638047 into main Oct 30, 2023
3 checks passed
@sigoden sigoden deleted the feat-azure-openai branch October 30, 2023 22:36
rooct pushed a commit to rooct/aichat that referenced this pull request Nov 30, 2023
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.

2 participants