mirror of
https://github.com/openai/codex.git
synced 2026-11-20 22:40:37 +00:00
merge upstream/dev/codex/add-custom-models-support-in-config.toml-r2 into collab stack
This commit is contained in:
@@ -383,7 +383,7 @@ impl ModelClient {
|
||||
};
|
||||
let text = create_text_param_for_request(verbosity, &prompt.output_schema);
|
||||
let payload = ApiCompactionInput {
|
||||
model: &model_info.slug,
|
||||
model: model_info.request_model_slug(),
|
||||
input: &input,
|
||||
instructions: &instructions,
|
||||
tools,
|
||||
@@ -436,7 +436,7 @@ impl ModelClient {
|
||||
.with_telemetry(Some(request_telemetry));
|
||||
|
||||
let payload = ApiMemorySummarizeInput {
|
||||
model: model_info.slug.clone(),
|
||||
model: model_info.request_model_slug().to_string(),
|
||||
raw_memories,
|
||||
reasoning: effort.map(|effort| Reasoning {
|
||||
effort: Some(effort),
|
||||
@@ -726,7 +726,7 @@ impl ModelClientSession {
|
||||
let text = create_text_param_for_request(verbosity, &prompt.output_schema);
|
||||
let prompt_cache_key = Some(self.client.state.conversation_id.to_string());
|
||||
let request = ResponsesApiRequest {
|
||||
model: model_info.slug.clone(),
|
||||
model: model_info.request_model_slug().to_string(),
|
||||
instructions: instructions.clone(),
|
||||
input,
|
||||
tools,
|
||||
|
||||
Reference in New Issue
Block a user