one-api
one-api copied to clipboard
GPT4o image输入格式有问题
问题描述 使用gpt-4o输入图片时候的message格式导致报错
复现步骤 https://cookbook.openai.com/examples/gpt_with_vision_for_video_understanding 运行官方codebook, 使用one-key的代理
预期结果
在
result = client.chat.completions.create(**params)
处会报错.
报错信息
"Error code: 500 - {'error': {'message': 'Panic detected, error: interface conversion: interface {} is string, not map[string]interface {}. Please submit an issue with the related log here: https://github.com/songquanpeng/one-api', 'type': 'one_api_panic'}}"