branch: externals/llm
commit ff6b2e0425bc903d61b63b6ae3d8b0871482c0c1
Author: Andrew Hyatt <[email protected]>
Commit: GitHub <[email protected]>
Handle string keys in parameter conversion for Open AI (#214)
For compatibility, we'll keep the ability for now to send symbols as
non-standard-params.
Fixes https://github.com/ahyatt/llm/issues/212
---
NEWS.org | 1 +
llm-openai.el | 4 +++-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/NEWS.org b/NEWS.org
index ea822fb4aa..6233d33576 100644
--- a/NEWS.org
+++ b/NEWS.org
@@ -1,6 +1,7 @@
* Version 0.27.3
- Add reasoning output for Gemini.
- Add Claude 4.5 to support models, fix model matching for other Claude models.
+- Fix Open AI issue in using =non-stardard-params=.
* Version 0.27.2
- Add JSON response capabilities to Gemini, which had a non-standard API.
- Add Claude 4.1 to supported models
diff --git a/llm-openai.el b/llm-openai.el
index 9d8f98dee0..80853818af 100644
--- a/llm-openai.el
+++ b/llm-openai.el
@@ -279,7 +279,9 @@ FCS is a list of `llm-provider-utils-tool-use' structs."
(val (cdr param)))
(setq request-plist
(plist-put request-plist
- (if (keywordp key) key (intern (concat ":" (symbol-name
key))))
+ (if (keywordp key) key (intern (concat ":" (if (symbolp
key)
+
(symbol-name key)
+ key))))
val)))))
(cl-defmethod llm-provider-chat-request ((provider llm-openai) prompt
streaming)