2adventure
2adventure
CDCloudflare Developers
Created by 2adventure on 12/22/2023 in #workers-help
"InferenceUpstreamError: ERROR 3026: Unknown internal error" when calling Workers AI
I'm running into the error InferenceUpstreamError: ERROR 3026: Unknown internal error when calling Workers AI on version 1.0.47 (latest):
const ai = new Ai(env.AI);
const prompt = [
{ role: "system", content: "Prompt" },
{ role: "user", content: "Prompt" },
{ role: "assistant", content: "Prompt" },
]
const result = await ai.run('@cf/meta/llama-2-7b-chat-int8', { messages: prompt });
const ai = new Ai(env.AI);
const prompt = [
{ role: "system", content: "Prompt" },
{ role: "user", content: "Prompt" },
{ role: "assistant", content: "Prompt" },
]
const result = await ai.run('@cf/meta/llama-2-7b-chat-int8', { messages: prompt });
2 replies
CDCloudflare Developers
Created by 2adventure on 12/21/2023 in #workers-help
Service Binding call resulting in TypeError
Hello, I'm currently working on implementing Service Bindings but I'm running into the following error when calling the fetch() of the service binding and passing on a string: TypeError: Fetch API cannot load: <MY-STRING> The Env interface:
export interface Env {
MY_SERVICE_BINDING: any;
}
export interface Env {
MY_SERVICE_BINDING: any;
}
The binding in the wrangler.toml:
services = [
{ binding = "MY_SERVICE_BINDING", service = "the-worker-im-calling" }
]
services = [
{ binding = "MY_SERVICE_BINDING", service = "the-worker-im-calling" }
]
The service binding fetch call:
const result = await env.MY_SERVICE_BINDING.fetch("MY-STRING");
const result = await env.MY_SERVICE_BINDING.fetch("MY-STRING");
17 replies