-
Notifications
You must be signed in to change notification settings - Fork 76
LCORE-1285: update llama stack to 0.5.0 #1112
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
2e001ab
5d62e33
11e8a4a
5ff72cd
de20d7a
60efb35
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 |
|---|---|---|
|
|
@@ -2,7 +2,7 @@ | |
|
|
||
| # Minimal and maximal supported Llama Stack version | ||
| MINIMAL_SUPPORTED_LLAMA_STACK_VERSION = "0.2.17" | ||
| MAXIMAL_SUPPORTED_LLAMA_STACK_VERSION = "0.4.3" | ||
| MAXIMAL_SUPPORTED_LLAMA_STACK_VERSION = "0.5.0" | ||
|
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. 0.5.1 is already out |
||
|
|
||
| UNABLE_TO_PROCESS_RESPONSE = "Unable to process this request" | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1079,6 +1079,9 @@ def _extract_text_from_content( | |
|
|
||
| text_fragments: list[str] = [] | ||
| for part in content: | ||
| if isinstance(part, str): | ||
|
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. This is not necessary. Function extracts text parts from OpenResponses input/output which is either plain string or sequence of response items i.e., never sequence of plain strings. |
||
| text_fragments.append(part.strip()) | ||
| continue | ||
|
Comment on lines
+1082
to
+1084
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. Avoid appending empty fragments from whitespace-only string parts. Line 1083 appends Suggested fix- if isinstance(part, str):
- text_fragments.append(part.strip())
+ if isinstance(part, str):
+ stripped_part = part.strip()
+ if stripped_part:
+ text_fragments.append(stripped_part)
continue🤖 Prompt for AI Agents |
||
| if part.type == "input_text": | ||
| input_text_part = cast(InputTextPart, part) | ||
| if input_text_part.text: | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.