Skip to content

Docs first commit (code to follow)#15

Closed
AngelosP wants to merge 204 commits intobterlson:mainfrom
joseharriaga:angelpe-docs-first-commit
Closed

Docs first commit (code to follow)#15
AngelosP wants to merge 204 commits intobterlson:mainfrom
joseharriaga:angelpe-docs-first-commit

Conversation

@AngelosP
Copy link
Copy Markdown

@AngelosP AngelosP commented Sep 5, 2024

Committing what we have so far, which is all of the API Reference and everything about Assistants. Jonathan is finishing the guides and we'll be done. Once Jonathan is done, I'll move over the accompanying code as well.

joseharriaga and others added 30 commits February 6, 2024 14:59
…it Update-ClietModel.ps1 script to System.ClientModel 1.1.0-alpha.20240227.1
- Fix issue in AssistantClient where `SubmitToolOutputsAsync` was not returning a `ThreadRun` as it should.
- Add missing async sample for function calling
- Clean up function calling samples to make them more genuine
The objective is to eventually stop depending on these scripts and remove them entirely. With this in mind, I refactored the scripts to split them into smaller parts so that it's easier to remove them incrementally.
* Exposed missing protocol methods publicly
* Removed protocol methods that use multipart/form-data for now (`TranscribeAudio`, `TranslateAudio`, `UploadFile`, `GenerateImageEdit`, and `GenerateImageVariation`)
* Removed `[EditorBrowsable(EditorBrowsableState.Never)]` attribute from existing protocol methods that do not have a convenience method counterpart
* Renamed `RequestOptions` parameter from "context" to "options" in existing protocol methods
* Added missing `async` keyword to existing protocol methods when applicable (also `await` and `.ConfigureAwait(false)`)
* Added doc comments to protocol methods
* Created the `FineTuningClient` to organize the library in a way that aligns more closely to OpenAI's REST API and documentation
* Made a small fix to the fine-tuning TypeSpec (the `limit` query parameter should be defined as an `int32`)
Implement support for image edits and variations as convenience methods that do multipart/form-data.
Making sure that the README is up-to-date with the latest samples.
Due to our codegen workarounds, we cannot have a method with the following signature in the custom public `OpenAIClient` class:

```csharp
public FineTuningClient GetFineTuningClient()
```

This is because we need codegen to generate a different method that happens to have this same signature in the generated internal `OpenAIClient` class. Because making the generated `OpenAIClient` class internal is part of post-codegen processing, codegen has no way to know that these two are not the same class, so it skips generating the method thinking it has been customized instead. 

For now, we rename the `FineTuningClient` to `FineTuningManagementClient` to avoid this conflict. We will be able to fix it once we have codegen customizations available.
trrwilson and others added 27 commits August 23, 2024 16:39
Renamed `AudioClient`'s `GenerateSpeechFromText` methods to simply `GenerateSpeech`.
…rties (#208)

Use `AssertNotFrozen()` in the setters of `OpenAIClientOptions` properties to help users understand that setting these properties after the client has been instantiated has no effect on it.
* add roger's fix and a test for options bug

* changelog
…ion pattern (#197)

Move service methods for paginated endpoints to use SCM based pagination pattern
…222)

* reflect 2.0.0-beta.10

* fix changelog

* touchup changelog
Co-authored-by: ShivangiReja <shivangi.reja@microsoft.com>
…s namespace (#229)

Add Experimental attribute to all public APIs in the OpenAI.Assistants namespace
…res namespace (#231)

Add Experimental attribute to all public APIs in the OpenAI.VectorStores namespace
…le_search) (#236)

Changes were made via the ingestion tool.
- The application of the `x-oaiTypeLabel = map` attribute now results in otherwise unspecified types being `Record<unknown>` instead of `Record<object>`.
- `metadata`, a known `Record<string>` and the reason why the rule was the way it was, is special-cased with a straightforward, pattern-checked replacement
- Repro test case included for before/after with `file_search`
…238)

This is the same issue that we saw previously with `ChatMessage`'s serialization in unity/mono/etc.

See: dotnet/runtime#103365

See: #138
- Refactors the code to bring the directory structure in sync with what we have in the Azure repo
- Updates the Azure OpenAI code with all changes from the Azure repo
- Brings over the Azure OpenAI test suite to allow for full testing in this repo (including support for recording/playback of requests)
- Fixes a regression introduced with the latest FineTuningClient pagination changes

Co-authored-by: Travis Wilson <travisw@microsoft.com>
* Renamed `ChatMessageContentPart`'s `CreateTextMessageContentPart` factory method to `CreateTextPart`.
* Renamed `ChatMessageContentPart`'s `CreateImageMessageContentPart` factory method to `CreateImagePart`.
* Renamed `ChatMessageContentPart`'s `CreateRefusalMessageContentPart` factory method to `CreateRefusalPart`.
* Renamed `ImageChatMessageContentPartDetail` to `ChatImageDetailLevel`.
* Removed `ChatMessageContentPart`'s `ToString` overload. It does not receive a lot of usage, and it can also return `null` against the `ToString` guidelines.
* Added better doc comments.
…everything about Assistants. Jonathan is finishing the guides and we'll be done.
@AngelosP AngelosP closed this Sep 11, 2024
@AngelosP
Copy link
Copy Markdown
Author

Apologies, I did not mean to open this PR.

@AngelosP AngelosP deleted the angelpe-docs-first-commit branch January 23, 2025 01:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants