Welcome to Portkey Forum

N
Newt
Offline, last seen 9 hours ago
Joined November 16, 2024
Hello, how can i transfer Ownership?
1 comment
G
uhhhhm i think i found a bug

just added openrouter and used Run Test Request on the Getting Started Area
5 comments
N
G
N
Newt
·

Portkey in Rust

Hello everyone, i am testing Portkey atm

it looks pretty Promising

i use Rust with the async-openai crate and now i get some errors, and i dont know how to fix them

with this setup:
Plain Text
let config = OpenAIConfig::new()
    .with_api_base("https://api.portkey.ai/v1")
    .with_api_key("portkeyApiKey");

println!("using Portkey");

let openai_client = Arc::new(OpenAIClient::with_config(config));


i am getting this error:
Plain Text
ERROR async_openai::error: 71: failed deserialization of: {"status":"failure","message":"Either x-portkey-config or x-portkey-provider header is required"}


what do i need exactly?
i could create a custom http client, but what does this headers mean? cant find them in the documentation
3 comments
V
N