suspect
suspect
CDCloudflare Developers
Created by suspect on 4/28/2024 in #general-help
How to use `@cf/unum/uform-gen2-qwen-500m` via REST API ?
my error for uform is
{
"errors": [
{
"message": "InferenceUpstreamError: must be string, must have required property 'image', must be number, must match exactly one schema in oneOf",
"code": 1000
}
],
"success": false,
"result": {},
"messages": []
}
{
"errors": [
{
"message": "InferenceUpstreamError: must be string, must have required property 'image', must be number, must match exactly one schema in oneOf",
"code": 1000
}
],
"success": false,
"result": {},
"messages": []
}
4 replies
CDCloudflare Developers
Created by suspect on 4/28/2024 in #general-help
How to use `@cf/unum/uform-gen2-qwen-500m` via REST API ?
API Scheme for uform-gen2-qwen-500m
{
"oneOf": [
{
"type": "string",
"format": "binary"
},
{
"type": "object",
"properties": {
"image": {
"type": "array",
"items": {
"type": "number"
}
},
"prompt": {
"type": "string"
},
"max_tokens": {
"type": "integer",
"default": 512
}
}
}
]
}
{
"oneOf": [
{
"type": "string",
"format": "binary"
},
{
"type": "object",
"properties": {
"image": {
"type": "array",
"items": {
"type": "number"
}
},
"prompt": {
"type": "string"
},
"max_tokens": {
"type": "integer",
"default": 512
}
}
}
]
}
and api scheme for @cf/microsoft/resnet-50
{
"oneOf": [
{
"type": "string",
"format": "binary"
},
{
"type": "object",
"properties": {
"image": {
"type": "array",
"items": {
"type": "number"
}
}
}
}
]
}
{
"oneOf": [
{
"type": "string",
"format": "binary"
},
{
"type": "object",
"properties": {
"image": {
"type": "array",
"items": {
"type": "number"
}
}
}
}
]
}
both seme kinda similar and i shoud sadisfy:
{
"type": "string",
"format": "binary"
},
{
"type": "string",
"format": "binary"
},
4 replies