Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Fixes to the last_user_block method#1076

Closed
jhrozek wants to merge 29 commits intostacklok:mainfrom
jhrozek:last_user_msg
Closed

Fixes to the last_user_block method#1076
jhrozek wants to merge 29 commits intostacklok:mainfrom
jhrozek:last_user_msg

Conversation

@jhrozek
Copy link
Copy Markdown
Contributor

@jhrozek jhrozek commented Feb 17, 2025

I had to temporarily disable the OpenInterpreter case and the Aider case while I test those two clients specifically.

blkt and others added 29 commits February 17, 2025 12:40
These are necessary to fully decouple pipeline steps from message
representation.
Also, message/content/text interface to be used throughout the
pipeline.
…tacklok#1026)

In case the message is just a text and not a MessageContent, we need to
set self.content. Otherwise, the method will be called on MessageContent
which is already implemented.
* copilot: Normalize into OpenAI types

* copilot: Use native OpenAI types when parsing SSE stream

* copilot: Streaming normalizer no longer needed
Additionally, more fixes to pipeline steps.
This allows using the openai types without normalizers.
Also, moved openai typed and generators in their own module, and, last
but not least, restored the typewriter-effect!
Also, fixing default streaming behaviour for Ollama requests.
For good, hopefully...
…ypes (stacklok#1040)

* Default the function literal, copilot doesn't set it

* return in get_text in ChoiceDelta

* tool_calls is a valid stop reason for copilot

* Add set_text to openAI tool message
* Fix typo

* Rely on redacted_secrets_count to detect if this was the first message
@jhrozek jhrozek closed this Feb 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants