-
-
Notifications
You must be signed in to change notification settings - Fork 148
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
thread messages and runs #171
thread messages and runs #171
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.
- Combine the namespaces and remove duplicate classes.
- Ensure all types are immutable and don't contain pubic setters.
good comments, will do soon |
@@ -1,12 +1,27 @@ | |||
using System.Text.Json.Serialization; | |||
using OpenAI.Chat; | |||
using OpenAI.Extensions; | |||
|
|||
namespace OpenAI.Assistants | |||
{ | |||
public sealed class AssistantTool |
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.
Can we use the existing Tool type?
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.
https://github.com/openai/openai-openapi/blob/master/openapi.yaml#L7785 not sure why but they have separate type for this one, so I'd better stick to separate type too
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.
Only thing that matters is if the fields are different I guess.
No matter, I'll validate later
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.
I'd like to remove the duplicate types and remove repetitive duplicate code structures.
can you elaborate? |
abf854c
to
66002ed
Compare
@khoroshevj all good here? |
Just FYI I might do some more refactoring before release |
ok |
RageAgainstThePixel/com.openai.unity#128