Skip to content
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

[Cookbook] Simple Function calling example with Mixtral-8x7B #748

Merged
merged 5 commits into from
Jan 4, 2024
Merged

Conversation

Simply extend the OpenAIInference modelparser and change the api key and base_url to point to anyscale.

Added utility classes for all the supported models for Anyscale Endpoints: https://docs.endpoints.anyscale.com/category/supported-models
@saqadri
Copy link
Contributor Author

saqadri commented Jan 4, 2024

Test Plan:
New function calling notebook:

function_calling.mov

Add a ModelParser for Anyscale Endpoints
Clone the Getting Started cookbook and adapt it for Anyscale.
Next up we will also add a cookbook for function calling using Anyscale.
Along with some fixes to function calling using OpenAI and Anyscale modelparsers
@saqadri saqadri merged commit 22fa4cf into main Jan 4, 2024
4 checks passed
saqadri added a commit that referenced this pull request Jan 4, 2024
… and non-streaming (#752)

[bug] Ensure that Output is constructed consistently across streaming
and non-streaming

Currently the openai modelparser calls `build_output_data` to properly
construct the response from the inference endpoint into an AIConfig
OutputData type.

However, it only does this when stream = False. This change adds the
same logic to stream = True (and also ensures that the metadata is set
consistently and in a loss-less way.

Also updated the same logic for Anyscale Endpoint model parser.

---
Stack created with [Sapling](https://sapling-scm.com). Best reviewed
with
[ReviewStack](https://reviewstack.dev/lastmile-ai/aiconfig/pull/752).
* __->__ #752
* #748
* #746
* #745
* #743
* #730
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