Azure AI Studio View Code doesn't compile
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Inizia da Chat Playground di Azure AI Studio e dal relativo punto di ingresso View Code, quindi confronta l’esempio generato con l’API beta12 di Azure.AI.OpenAI, in particolare ChatMessage e ChatRequestMessage. Il lavoro è completato quando l’esempio C# generato attualmente viene compilato con il pacchetto beta più recente e la relativa versione documentata.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
I don't know if this is the correct place to report this, but I was trying to test Chat Completions since GPT35 doesn't support completions. When you click view code, you are given this code
Response<ChatCompletions> responseWithoutStream = await client.GetChatCompletionsAsync(
"GPT35",
new ChatCompletionsOptions()
{
Messages =
{
new ChatMessage(ChatRole.System, @"You are an AI assistant that helps people find information."),
},
Temperature = (float)0.7,
MaxTokens = 800,
NucleusSamplingFactor = (float)0.95,
FrequencyPenalty = 0,
PresencePenalty = 0,
});
ChatCompletions response = responseWithoutStream.Value;
ChatMessage does not exist. I searched and found ChatRequestMessage, is that what this is supposed to be?
Thanks
Please provide us with the following information:
This issue is for a: (mark with an x)
- [ x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)
Minimal steps to reproduce
- Go to Azure AI Studio - Chat Playground.
- Click View Code - The code sample given doesn't compile (the NuGet package is added and everything else works - meaning all other references are known except ChatMessage class.
I just noticed I have beta12 installed, and the code expects beta5. My guess is the code should be updated if this class ChatMessage did not make it to beta12.
Any log messages given by the failure
Expected/desired behavior
View Code should compile with the latest betas if you want people to be up to date on your current code base.
OS and Version?
Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)
I have Windows 11. You should probably update your bug report to list MS latest Windows offering.
Versions
As mentioned above, I have Azure.AI.OpenAI beta12 installed. This is probably different in beta5
Mention any other details that might be useful
I will try beta5 and see if that compiles. It is just a little frustrating to someone trying to learn this when the sample code doesn't compile.
Thanks! We'll be in touch soon.
- Lingua principale
- Jupyter Notebook
- Stelle
- 1.4k
- Fork
- 455
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Azure-Samples/openai
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 42/100
Azure-Samples/openai#180 · 1 commento ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
Azure-Samples/openai#179 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
Azure-Samples/openai#177 · 1 commento ·
-
README.mdAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
Azure-Samples/openai#175 ·
-
how to download the files generated by Azure OpenAi Assistant Code Interpreter in streaming modeAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 32/100
Azure-Samples/openai#174 ·
Tutte le issue di Azure-Samples/openai
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
a2aproject/a2a-java#1275 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
darktable-org/darktable#22939 ·
I maintainer di solito rispondono entro 1 giorno
-
ready-for-agent
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
LucasSantana-Dev/Lucky#2951 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
status: waiting-for-triage type: bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
spring-projects/spring-integration#11654 ·
I maintainer di solito rispondono entro 1 giorno