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

Support Azure OpenAI provider #327

Merged
merged 3 commits into from
Sep 3, 2024
Merged

Support Azure OpenAI provider #327

merged 3 commits into from
Sep 3, 2024

Conversation

SzilvasiPeter
Copy link
Contributor

The PR introduce the Azure OpenAI provider as an additional LLM.

Reference to the #13 issue.

Copy link

vercel bot commented Sep 2, 2024

@SzilvasiPeter is attempting to deploy a commit to the morphic Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

vercel bot commented Sep 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
morphic ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 3, 2024 7:51am

Copy link
Owner

@miurla miurla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SzilvasiPeter Thank you for sending the PR.

Deployment to Vercel was failing due to an error. The cause might be different type definitions of LanguageModelV1 being referenced across packages.

I've merged a PR into morphic's main branch that updates the ai sdk to the latest version: #328. Please merge this change. It should resolve the error. You can also verify locally using the bun run build command.

Build logs

Failed to compile.
./lib/agents/inquire.tsx:16:5
Type error: Type 'OllamaChatLanguageModel | GoogleGenerativeAILanguageModel | AnthropicMessagesLanguageModel | LanguageModelV1 | OpenAIChatLanguageModel' is not assignable to type 'LanguageModelV1'.
  14 |   let finalInquiry: PartialInquiry = {}
  15 |   await streamObject({
> 16 |     model: getModel(),
     |     ^
  17 |     system: `As a professional web researcher, your role is to deepen your understanding of the user's input by conducting further inquiries when necessary.
  18 |     After receiving an initial response from the user, carefully assess whether additional questions are absolutely essential to provide a comprehensive and accurate answer. Only proceed with further inquiries if the available information is insufficient or ambiguous.
  19 |
error: script "build" exited with code 1
Error: Command "bun run build" exited with 1

#327 (comment)

Copy link
Owner

@miurla miurla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution! ✨

@miurla miurla merged commit 8d357ac into miurla:main Sep 3, 2024
1 check passed
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.

2 participants