-
Notifications
You must be signed in to change notification settings - Fork 80
LCORE-1583: Allowed reasoning and max_output_tokens attributes #1483
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -165,13 +165,9 @@ async def responses_endpoint_handler( | |
| if responses_request.reasoning is not None: | ||
| logger.warning("reasoning is not yet supported in LCORE and will be ignored") | ||
| responses_request.reasoning = None | ||
| if responses_request.max_output_tokens is not None: | ||
| logger.warning( | ||
| "max_output_tokens is not yet supported in LCORE and will be ignored" | ||
| ) | ||
| responses_request.max_output_tokens = None | ||
|
|
||
| responses_request = responses_request.model_copy(deep=True) | ||
|
|
||
|
Comment on lines
165
to
+170
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do not strip Line 165-Line 167 still nullifies ✅ Suggested fix- # Known LLS bug: https://redhat.atlassian.net/browse/LCORE-1583
- if responses_request.reasoning is not None:
- logger.warning("reasoning is not yet supported in LCORE and will be ignored")
- responses_request.reasoning = None
-
- responses_request = responses_request.model_copy(deep=True)
+ responses_request = responses_request.model_copy(deep=True)As per coding guidelines "Avoid in-place parameter modification anti-patterns: return new data structures instead of modifying parameters". 🤖 Prompt for AI Agents |
||
| check_configuration_loaded(configuration) | ||
| responses_request.instructions = get_system_prompt( | ||
| responses_request.instructions, field_name="instructions" | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,23 +1 @@ | ||
| features/faiss.feature | ||
| features/inline_rag.feature | ||
| features/smoketests.feature | ||
| features/authorized_noop.feature | ||
| features/authorized_noop_token.feature | ||
| features/authorized_rh_identity.feature | ||
| features/rbac.feature | ||
| features/conversations.feature | ||
| features/conversation_cache_v2.feature | ||
| features/feedback.feature | ||
| features/health.feature | ||
| features/info.feature | ||
| features/responses.feature | ||
| features/responses_streaming.feature | ||
| features/query.feature | ||
| features/rlsapi_v1.feature | ||
| features/rlsapi_v1_errors.feature | ||
| features/streaming_query.feature | ||
| features/rest_api.feature | ||
| features/models.feature | ||
| features/proxy.feature | ||
| features/tls.feature | ||
| features/mcp.feature |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove duplicated
use_as_library_clientkey (conflicting values).This map defines
use_as_library_clienttwice (falsethentrue). It is ambiguous, fails lint, and parser behavior can differ. Keep only one value.Suggested fix
📝 Committable suggestion
🧰 Tools
🪛 YAMLlint (1.38.0)
[error] 15-15: duplication of key "use_as_library_client" in mapping
(key-duplicates)
🤖 Prompt for AI Agents