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(llm): add Cloudflare OpenAI Gateway support #764

Merged
merged 8 commits into from
Mar 22, 2024

Conversation

fanweixiao
Copy link
Member

@fanweixiao fanweixiao commented Mar 22, 2024

name: ai-zipper
host: 0.0.0.0
port: 9000

auth:
  type: token
  token: <YOMO_TOKEN>

bridge:
  ai:
    server:
      addr: localhost:8000
      provider: cloudflare_openai

    providers:
      cloudflare_openai:
        endpoint: https://gateway.ai.cloudflare.com/v1/<ID>/<Endpoint_Name>
        api_key: sk-<OpenAI_API_KEY>
        model: gpt-4-1106-preview

@fanweixiao fanweixiao self-assigned this Mar 22, 2024
Copy link

vercel bot commented Mar 22, 2024

@fanweixiao is attempting to deploy a commit to the YoMo Team on Vercel.

A member of the Team first needs to authorize it.

@fanweixiao fanweixiao marked this pull request as ready for review March 22, 2024 03:24
@fanweixiao fanweixiao requested a review from woorui as a code owner March 22, 2024 03:24
Copy link

codecov bot commented Mar 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 64.94%. Comparing base (7f08807) to head (79ee097).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #764      +/-   ##
==========================================
+ Coverage   64.48%   64.94%   +0.45%     
==========================================
  Files          43       44       +1     
  Lines        2506     2533      +27     
==========================================
+ Hits         1616     1645      +29     
+ Misses        776      775       -1     
+ Partials      114      113       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@fanweixiao fanweixiao merged commit 23aee92 into yomorun:master Mar 22, 2024
5 of 6 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.

None yet

2 participants