8000 Update imodel by ohdearquant · Pull Request #539 · khive-ai/lionagi · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Update imodel #539

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

Merged
merged 6 commits into from
Jan 20, 2025
Merged

Update imodel #539

merged 6 commits into from
Jan 20, 2025

Conversation

ohdearquant
Copy link
Collaborator
@ohdearquant ohdearquant commented Jan 20, 2025

Pull Request Description

Update iModel to support request_options and Perplexity integration (#539)

What's Changed:

  • EndpointConfig now has a request_options field to store an associated Pydantic model for request parameters.
  • EndPoint property request_options is exposed, making it easy to retrieve a typed request model for each endpoint.
  • iModel can now retrieve the endpoint’s request_options (if any) via a new request_options property.
  • Perplexity ChatCompletions integration added:
    • A new PerplexityChatCompletionRequest Pydantic model for constructing requests.
    • A new config in CHAT_COMPLETION_CONFIG that references PerplexityChatCompletionRequest.
  • Various minor updates to ReAct and branch code to handle new interpretation arguments.
  • Version bumped from 0.8.4 to 0.8.5.

Why This Is Important:

  • These changes unify how endpoints handle typed request payloads.
  • Allows advanced features like structured requests for Perplexity’s API.
  • Makes it simpler for calling code to discover and populate endpoint-specific fields.

How to Test:

  1. Spin up a dev environment; run existing integration tests to ensure backward-compat.
  2. Use a sample iModel instantiation pointing to perplexity + chat/completions and fill out the PerplexityChatCompletionRequest.
  3. Confirm that request_options on the EndPoint is accessible and works with the iModel.

No known backward-incompatibilities. Existing endpoints that lack request_options will function as before.

@ohdearquant ohdearquant merged commit 30c7b14 into main Jan 20, 2025
5 checks passed
@ohdearquant ohdearquant deleted the update-imodel branch January 20, 2025 17:48
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.

1 participant
0