-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #61 from pavel-zhur/feature/image-traces
Feature/image traces
- Loading branch information
Showing
9 changed files
with
256 additions
and
54 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
...Common/OneShelf.Common.OpenAi/Models/Memory/ChatBotMemoryPointWithDeserializableTraces.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace OneShelf.Common.OpenAi.Models.Memory; | ||
|
||
public class ChatBotMemoryPointWithDeserializableTraces : ChatBotMemoryPoint | ||
{ | ||
public List<string> ImageTraces { get; init; } = new(); | ||
|
||
public List<string> ImageUrlTraces { get; init; } = new(); | ||
} |
6 changes: 1 addition & 5 deletions
6
OneShelf.Common/OneShelf.Common.OpenAi/Models/Memory/ChatBotMemoryPointWithTraces.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,6 @@ | ||
namespace OneShelf.Common.OpenAi.Models.Memory; | ||
|
||
public class ChatBotMemoryPointWithTraces : ChatBotMemoryPoint | ||
public class ChatBotMemoryPointWithTraces : ChatBotMemoryPointWithDeserializableTraces | ||
{ | ||
public List<MemoryPointTrace> Traces { get; init; } = new(); | ||
|
||
public List<string> ImageTraces { get; init; } = new(); | ||
|
||
public List<string> ImageUrlTraces { get; init; } = new(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace OneShelf.Common.OpenAi.Models; | ||
|
||
public class ValueHolder<T>(T value = default) | ||
where T : struct | ||
{ | ||
public T Value { get; set; } = value; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.