Files
zed/crates
ZhangJun 7091c70a1e open_ai: Trim newline before "data:" prefix and account for the possibility of no space after ":" (#37644)
I'am using an openai compatible model, but got nothing in agent thread
panel, and Zed log has "Model generated an empty summary" line.

I add one log to open_ai.rs:
<img width="2454" height="626" alt="图片"
src="https://github.com/user-attachments/assets/85354c7d-a0cc-4bba-86fd-2a640038a13e"
/>

and got:

<img width="3456" height="278" alt="图片"
src="https://github.com/user-attachments/assets/7746aedd-5d76-44b5-90f2-e129a1507178"
/>

It appear that `let line = line.strip_prefix("data: ")?;` can not handle
correctly.

Release Notes:

- N/A

---------

Co-authored-by: Ben Brandt <benjamin.j.brandt@gmail.com>
2025-09-08 22:01:55 +02:00
..
2025-09-08 14:19:41 -04:00
2025-09-03 22:10:14 +00:00
2025-09-08 14:19:41 -04:00
2025-09-08 14:19:41 -04:00
2025-09-08 14:19:41 -04:00
2025-08-13 13:25:52 -06:00
2025-04-02 13:26:34 -07:00
2025-09-03 22:10:14 +00:00
2025-09-06 00:27:14 +02:00
2025-08-19 20:33:44 +00:00
2025-07-17 14:25:55 +00:00
2025-07-08 14:34:57 +00:00
2025-09-08 14:19:41 -04:00
2025-09-08 14:19:41 -04:00
2025-09-08 14:19:41 -04:00
2025-04-02 13:26:34 -07:00
2025-09-08 08:48:47 -06:00