Skip to content
Open
5 changes: 5 additions & 0 deletions camel/configs/openai_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# ========= Copyright 2023-2025 @ CAMEL-AI.org. All Rights Reserved. =========
from __future__ import annotations

import uuid
from typing import Dict, Optional, Sequence, Type, Union

from pydantic import BaseModel
Expand Down Expand Up @@ -104,6 +105,9 @@ class ChatGPTConfig(BaseConfig):
parallel_tool_calls (bool, optional): A parameter specifying whether
the model should call tools in parallel or not.
(default: :obj:`None`)
prompt_cache_key (str, optional): A key used by the OpenAI Prompt
Caching system to identify and reuse cached prompt segments.
(default: :obj:`str(uuid.uuid4())`)
extra_headers: Optional[Dict[str, str]]: Extra headers to use for the
model. (default: :obj:`None`)
"""
Expand All @@ -124,6 +128,7 @@ class ChatGPTConfig(BaseConfig):
] = None
reasoning_effort: Optional[str] = None
parallel_tool_calls: Optional[bool] = None
prompt_cache_key: Optional[str] = str(uuid.uuid4())
extra_headers: Optional[Dict[str, str]] = None


Expand Down
Loading
Loading