Skip to content

pi_llm: LiteLLM stream, tools, credentials, errors - #28

Merged
maozhen520 merged 1 commit into
masterfrom
implement/20-pi-llm
Jul 21, 2026
Merged

pi_llm: LiteLLM stream, tools, credentials, errors#28
maozhen520 merged 1 commit into
masterfrom
implement/20-pi-llm

Conversation

@maozhen520

Copy link
Copy Markdown
Owner

Summary

  • Public stream / complete over LiteLLM OpenAI Chat Completions (acompletion, modern tools/tool_choice)
  • Incremental TextDelta for UI; TurnFinished only after tool_calls are fully assembled
  • Credentials: env-first then ~/.pi/agent/auth.json; capability probes; LLMError + ErrorKind

Closes #20

Test plan

  • uv run pytest packages/pi_llm/tests
  • uv run ruff check . && uv run ty check
  • CI green on this PR

Made with Cursor

Stream and complete turns with assembled tool calls, env-then-auth.json credentials, capability probes, and OpenAI-shaped errors — all covered by fixture tests (#20).

Co-authored-by: Cursor <cursoragent@cursor.com>
@maozhen520
maozhen520 merged commit 9965485 into master Jul 21, 2026
@maozhen520
maozhen520 deleted the implement/20-pi-llm branch July 21, 2026 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pi_llm: LiteLLM stream, tools assemble, credentials, errors

1 participant