Skip to content

Commit

Permalink
🐛 Fix force_paragen_model_slug
Browse files Browse the repository at this point in the history
  • Loading branch information
luoshuijs committed Mar 27, 2024
1 parent 0c5ae5f commit 0132170
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/openai/src/serve/proxy/req.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ async fn handle_conv_request(req: &mut RequestExt) -> Result<(), ResponseError>
// Parse model
let model = GPTModel::from_str(model).map_err(ResponseError::BadRequest)?;

body.insert("force_paragen_model_slug".to_string(), json!(""));

// If model is gpt3 or gpt4, then add arkose_token
if (with_context!(arkose_gpt3_experiment) && model.is_gpt3()) || model.is_gpt4() {
let condition = match body.get(ARKOSE_TOKEN) {
Expand Down

0 comments on commit 0132170

Please sign in to comment.