-
Notifications
You must be signed in to change notification settings - Fork 18
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
Add llm #187
Add llm #187
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests are failing here.
Otherwise, the PR looks good to me; feel free to merge once CI is fixed.
Signed-off-by: karthik2804 <[email protected]>
Signed-off-by: karthik2804 <[email protected]>
Signed-off-by: karthik2804 <[email protected]>
Signed-off-by: karthik2804 <[email protected]>
Signed-off-by: karthik2804 <[email protected]>
Signed-off-by: karthik2804 <[email protected]>
Signed-off-by: karthik2804 <[email protected]>
157d553
to
d3d447e
Compare
top_p: f32, | ||
} | ||
|
||
fn llm_inference_with_options(context: &Context, _this: &Value, args: &[Value]) -> Result<Value> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we sure we want this? We do this in Rust because Rust doesn't have optional args, but in JS it feels much more idiomatic to just have one function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seeing now that the JS code differentiates these two functions. We should clean this up in a follow-up PR.
Signed-off-by: karthik2804 <[email protected]>
This add support in the JS SDK for the
Llm
interface in reference to the Spin PR fermyon/spin#1731