Skip to content

Commit

Permalink
cf-worker: update & change model
Browse files Browse the repository at this point in the history
  • Loading branch information
sdip15fa committed Apr 24, 2024
1 parent 75f3044 commit 4c62e9b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cf-worker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
"wrangler": "^3.0.0"
},
"dependencies": {
"@cloudflare/ai": "^1.0.53"
"@cloudflare/ai": "^1.1.0"
}
}
2 changes: 1 addition & 1 deletion cf-worker/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export default {
let response: string;
for (let i = 5; i > 0; i--) {
try {
response = await ai.run('@hf/thebloke/openchat_3.5-awq', chat);
response = await ai.run('@cf/meta/llama-3-8b-instruct', chat);
break;
} catch {
if (i === 1) {
Expand Down
8 changes: 4 additions & 4 deletions cf-worker/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
# yarn lockfile v1


"@cloudflare/ai@^1.0.53":
version "1.0.53"
resolved "https://registry.yarnpkg.com/@cloudflare/ai/-/ai-1.0.53.tgz#f786fdd538e25e5023f3cdbd53a21ec0e71dd359"
integrity sha512-bVuvvm+LU/EoZ5mehL0uakOld1gvrOEQpnRqXbkNIjypHlxTLPLe3LDU3RZdaSTTUI+dK5beLI5qcmAu8h1/iQ==
"@cloudflare/ai@^1.1.0":
version "1.1.0"
resolved "https://registry.yarnpkg.com/@cloudflare/ai/-/ai-1.1.0.tgz#89c17ae15b1779147077b4a8a0a36c422e5d7a96"
integrity sha512-6j2aeelMfPj2YVj/zQBAj9PAbEZSrO/t+Wywy3Gvk93JsTlsZvEH+V9JYIZHynhSt0juuOrSWP9ju3vN6lUDMQ==

"@cloudflare/kv-asset-handler@^0.2.0":
version "0.2.0"
Expand Down

0 comments on commit 4c62e9b

Please sign in to comment.