You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm creating an application with ChatGPT and I saw your project. My project for university is to create a simple English teacher that speaks with the user. To do that, I understood, I have to pass the instruction to ChatGPT like
varrequest=new CreateAssistantRequest(Model.GPT4o);Assistant=await ChatGPTClient.AssistantsEndpoint.CreateAssistantAsync(new CreateAssistantRequest(
name:$"English Teacher",
instructions:$"You are a personal English Teacher. Help me learn English by interacting with me "+"based on my questions and interests.",
model: Model.GPT4o));
Looking at your code, I didn't understand if and where I can add these instructions. Can you point me in the right direction?
I really appreciate any help you can provide.
Enrico
The text was updated successfully, but these errors were encountered:
Hi @erossini, first of all, thank you for your interest in my project. I've updated the project to Chat Completion, including the current model for both requests and responses. To add instructions for the assistant bot, you'll need to do so in the system role's content, located in OpenAIService.cs. For modifying the tokens, you can adjust them in the Usage class found in CompletionResponse.cs I've included the code where you can change these parameters. Let me know if you encounter any errors so I can improve the code. Thanks!
publicasyncTask<string>AskQuestion(stringquery){varcompletion=new CompletionRequest
{Model="gpt-4o-mini",Messages=newList<MessageRequest>{new MessageRequest
{Role="system",Content="You are a helpful assistant."},new MessageRequest
{Role="user",Content=query}}};// ...}
I'm creating an application with ChatGPT and I saw your project. My project for university is to create a simple English teacher that speaks with the user. To do that, I understood, I have to pass the
instruction
to ChatGPT likeLooking at your code, I didn't understand if and where I can add these instructions. Can you point me in the right direction?
I really appreciate any help you can provide.
Enrico
The text was updated successfully, but these errors were encountered: