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 Cloudflare Workers AI #2966

Closed
wants to merge 48 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
f2996eb
Delete .nvmrc
sxjeru May 31, 2024
6de6000
Merge branch 'lobehub:main' into cf
sxjeru Jun 21, 2024
4b1d4c6
feat: Add Cloudflare as a model provider
sxjeru Jun 21, 2024
b774549
fix
sxjeru Jun 21, 2024
1336aae
fix
sxjeru Jun 21, 2024
ff5361e
fix
sxjeru Jun 21, 2024
6d658bd
fix
sxjeru Jun 21, 2024
5a0a4da
fix
sxjeru Jun 21, 2024
3608659
fix
sxjeru Jun 21, 2024
161af46
fix
sxjeru Jun 21, 2024
aa609af
fix icon
sxjeru Jun 21, 2024
0972e11
fix
sxjeru Jun 21, 2024
8ad1100
Create .nvmrc
sxjeru Jun 21, 2024
ed2f3c0
Delete src/config/modelProviders/.nvmrc
sxjeru Jun 21, 2024
e47aee5
CF -> CLOUDFLARE
sxjeru Jun 21, 2024
1909a89
Merge branch 'cf' of https://github.com/sxjeru/lobe-chat into cf
sxjeru Jun 21, 2024
5a1180c
revert
sxjeru Jun 21, 2024
7648bde
chore: Update agentRuntime.ts and auth.ts to support Cloudflare accou…
sxjeru Jun 21, 2024
9d036ee
Add provider setting
sxjeru Jun 21, 2024
7fe9401
fix
sxjeru Jun 21, 2024
fa23ba4
Update cloudflare.ts
sxjeru Jun 21, 2024
4414320
fix
sxjeru Jun 24, 2024
8d1f973
Update cloudflare.ts
sxjeru Jun 24, 2024
3b57709
Merge branch 'main' into cf
sxjeru Jun 24, 2024
7efaab9
accountID
sxjeru Jul 1, 2024
87f0721
fix
sxjeru Jul 1, 2024
7844a5b
Merge branch 'main' into cf
sxjeru Jul 1, 2024
26de0f1
i18n
sxjeru Jul 1, 2024
65463e0
Merge branch 'main' into cf
sxjeru Jul 10, 2024
7fe207a
Merge branch 'main' into cf
sxjeru Jul 25, 2024
e0f541a
Update index.ts
sxjeru Jul 27, 2024
bc26fd8
Update baichuan.ts
sxjeru Jul 27, 2024
0f5462f
Merge branch 'main' into cf
sxjeru Jul 27, 2024
bb02954
Update cloudflare.ts
sxjeru Jul 27, 2024
85021aa
save changes
BrandonStudio Jul 31, 2024
cb7dd1c
commit check
BrandonStudio Jul 31, 2024
ac8d4f2
disable function calling for now
BrandonStudio Jul 31, 2024
eefacf5
does not catch errors when fetching models
BrandonStudio Jul 31, 2024
5fc4c81
ready to add base url
BrandonStudio Jul 31, 2024
52ff9d1
commit check
BrandonStudio Jul 31, 2024
b8492e2
revert change
BrandonStudio Aug 1, 2024
b452d30
revert string boolean check
BrandonStudio Aug 1, 2024
b46c642
fix type error on Vercel.
BrandonStudio Aug 1, 2024
2dca07d
i18n by groq/llama-3.1-8b-instant
BrandonStudio Aug 1, 2024
0f40d15
rename env var
BrandonStudio Aug 1, 2024
8469931
Merge branch 'cf' into pr/BrandonStudio/38
sxjeru Aug 1, 2024
b3351d8
Merge branch 'main' into cf
sxjeru Aug 1, 2024
65c0bd2
Merge branch 'main' into cf
sxjeru Aug 4, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
disable function calling for now
  • Loading branch information
BrandonStudio committed Jul 31, 2024
commit ac8d4f287c8fd3e784692e38460cf35dc5a96811
2 changes: 2 additions & 0 deletions src/libs/agent-runtime/cloudflare/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ function getModelDisplayName(model: any, beta: boolean): string {
}

function getModelFunctionCalling(model: any): boolean {
return false;
// eslint-disable-next-line no-unreachable
try {
const fcProperty = model['properties'].filter(
(property: any) => property[CF_PROPERTY_NAME] === 'function_calling',
Expand Down