Skip to content

Commit

Permalink
✨ Add metadata support to OpenAIChat (#2146)
Browse files Browse the repository at this point in the history
![image](https://github.com/user-attachments/assets/8afc75cd-53ff-4540-a1ad-2d4b598fa6ad)


## Changes 🔄
Add metadata parameter to OpenAIChat's request_params

- #2145
  • Loading branch information
Sunwood-ai-labs authored Feb 17, 2025
1 parent 4d08521 commit a60e94e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libs/agno/agno/models/openai/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ def request_kwargs(self) -> Dict[str, Any]:
"top_p": self.top_p,
"extra_headers": self.extra_headers,
"extra_query": self.extra_query,
"metadata": self.metadata
}
# Filter out None values
request_params = {k: v for k, v in base_params.items() if v is not None}
Expand Down

0 comments on commit a60e94e

Please # to comment.