Azure.AI.OpenAI.ChatCompletions error
还没有人认领这个 Issue。
评估
调研方向
从堆栈跟踪中指定的入口点 OpenAIInferenceBackend.GetChatResponseAsync 开始,检查 Azure.AI.OpenAI 程序集和 OpenAI 密钥的初始化方式。重现 Blazor Server 请求,并验证使用的是现有的密钥设置,且不会出现 ChatCompletions TypeLoadException。
由索引模型根据 Issue 内容生成。
描述
There is separate initialization for the Open AI key, etc. It should be able to utilize the existing ones in bigger project.
Integrating Blazor server I'm receiving the following error
fail: Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware[1]
An unhandled exception has occurred while executing the request.
System.TypeLoadException: Could not load type 'Azure.AI.OpenAI.ChatCompletions' from assembly 'Azure.AI.OpenAI, Version=2.0.0.0, Culture=neutral, PublicKeyToken=92742159e12e44c8'.
at SmartComponents.Inference.OpenAI.OpenAIInferenceBackend.GetChatResponseAsync(ChatParameters options)
at SmartComponents.Inference.SmartTextAreaInference.GetInsertionSuggestionAsync(IInferenceBackend inference, SmartTextAreaConfig config, String textBefore, String textAfter)
at Microsoft.AspNetCore.Builder.SmartComponentsServiceCollectionExtensions.AttachSmartComponentsEndpointsStartupFilter.<>c__DisplayClass0_1.<b__3>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Http.RequestDelegateFactory.ExecuteTaskResult[T](Task`1 task, HttpContext httpContext)
at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddlewareImpl.Invoke(HttpContext context)
- 主要语言
- C#
- 星标
- 510
- 派生
- 61
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
dotnet/smartcomponents 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 55/100
dotnet/smartcomponents#51 ·
-
难度 4/5 3-5 天 新手友好度 45/100
dotnet/smartcomponents#50 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 35/100
dotnet/smartcomponents#49 ·
-
难度 2/5 1-3 小时 新手友好度 42/100
dotnet/smartcomponents#48 · 1 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 25/100
dotnet/smartcomponents#47 · 1 条评论 ·
查看 dotnet/smartcomponents 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 77/100
维护者通常 1 天内回复
-
enhancement no-stack-trace
难度 2/5 1-3 小时 新手友好度 66/100
greenshot/greenshot#1618 · 3 条评论 ·
维护者通常 1 天内回复
-
squad/utforming status/triage
难度 2/5 1-3 小时 新手友好度 78/100
Altinn/altinn-studio#21565 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 67/100
Tyrrrz/YoutubeDownloader#912 ·
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复