Граф коммитов

87 Коммитов

Автор SHA1 Сообщение Дата
Azure SDK Bot f9f2254e02
Increment package version after release of ai/azopenai (#22524) 2024-03-05 15:14:00 -08:00
Azure SDK Bot d6cba995d2
Increment package version after release of ai/azopenaiassistants (#22525) 2024-03-05 15:09:31 -08:00
Richard Park bc4f15f7e8
[azopenaiassistants] Azure OpenAI assistants (#22369)
First release of OpenAI assistants - compatible with both OpenAI and Azure OpenAI.
2024-03-05 10:43:14 -08:00
Richard Park 465e3a20bf
[azopenai] Updating for the 2024-02-15-preview (#22447)
Generating based off the latest preview surface (2024-02-15).

TTS is the big feature for this revision and there have been some minor renames for some of the BYOD options.

Fixes #22444
2024-03-04 20:33:06 -08:00
Richard Park 1b38aef556
[azopenai] Adding in an example for gpt-4-vision. (#22439)
Fixes #22436
2024-02-22 13:20:15 -08:00
Rick Winter 45f24aaade
Update package dependencies (#22337)
* Update package dependencies

* mod tidy on test package
2024-02-02 12:04:08 -08:00
xuanming.zhang 176ab71947
[azopenai] Implement UnmarshalJSON method for custom types (#22133)
A UnmarshalJSON method has been added to the ChatCompletionsToolChoice and ChatRequestUserMessageContent structs. These implementations allow the structs to satisfy the json.Unmarshaller interface, enabling them to decode JSON directly into their respective types.
2024-01-17 10:27:43 -08:00
Richard Park c7abe2deb6
[azopenai] Update changelog for release. (#22215) 2024-01-09 10:22:50 -08:00
Richard Park ecdb3a6d05
[azopenai] Fixing issue where you can't use whisper with m4a files. (#22210)
Fixing issue where you can't use whisper with m4a files.

* It's one of the formats that doesn't seem to be recognized without an explicit file extension, which you can pass via Filename
* My tests were too heavily dependent on implementation details of the models. Changing this out to check that things are working correctly without checking the exact contents of the response.
* Also, rerecorded tests since we're doing multiple audio tests as well.

Fixes #22195
2024-01-08 16:35:11 -08:00
Felix 3ba68177f3
update source link to new azopenai location (#22208)
* link current instead of depricated path

* remove newline at end of file
2024-01-05 08:06:42 -08:00
Azure SDK Bot 8c72917dac
Increment package version after release of ai/azopenai (#22126) 2024-01-04 09:51:33 -08:00
Richard Park ed5bc4ba7e
[azopenai] Re-enable the tests for vision and expand it to include Azure. (#22130)
- Do proper test recordings for audio so we can enable those.
- Bring back vision, and also target Azure.

Overall, this brings our test coverage back up to 32% from 24%.

Fixes #21598
2023-12-13 11:19:56 -08:00
Richard Park b1a2f3d477
[azopenai] Updating to the latest azcore to allow for supporting smaller time increments with retry-after-ms (#22125) 2023-12-11 19:23:02 +00:00
Richard Park 24e7b76e7d
[azopenai] Fixing some issues with incorrect/incomplete types in generation (#22119)
Fixes:
- ToolChoice was unmodeled.
- ResponseFormat for ChatCompletions wasn't settable using the swagger as we had it (it's an object, not a string)
2023-12-08 15:45:22 -08:00
Richard Park 423e02bf9e
[azopenai] Updating to the latest 2023-12-01 API (#22081)
Generating based on the latest swagger for the 2023-12-01 API:

- Chat message types for requests and responses are now different, with fields that are relevant to each more clearly called out. For instance, fields relevant to only assistant type messages (like tools) are separated properly.
- Strong types for OYD (ie, bring your own data) scenarios, instead of a `any` parameter.
- General updates to just expose new features for models like Dall-E

Also, improved the tests a bit to handle the fact that we're often going to several different Azure OpenAI instances for different models, developing features, etc...
2023-12-07 12:33:38 -08:00
Ben Broderick Phillips 6da3b752a2
Update data plane libraries to use latest recording framework (#21874) 2023-11-03 14:42:12 -04:00
Richard Park 37c2ec93b5
[azopenai] Update to latest .tsp (#21743)
They did a refactor and it removed an unused type.
2023-10-23 14:10:33 -07:00
Richard Park edaa487e4b
[azopenai] Increasing test time to account for longer/slower API calls. (#21790)
Changing out our strategy a bit here. Some calls take a bit or, when they 429, they return a "retry-after" header that can be up to a minute long. 

- I've removed the automatic "retry 60 times" policy for OpenAI. This might have to come back, but I'd like to see how well our runs do without it on.
- I've added in a more retries for the whisper tests.
- I've increased the overall time for the CI/Live test jobs to be 30m, instead of 10m, which they are by default.
2023-10-19 13:14:58 -07:00
Richard Park b7857982fc
[azopenai] Updating to use KeyCredential (#21726)
- Updating to use the common azcore.KeyCredential instead of a custom KeyCredential type.
- Fixing more OpenAI tests to allow for throttling, and to skip the test.

Fixes https://github.com/Azure/azure-sdk-for-go/issues/21529
2023-10-10 14:41:02 -07:00
Ben Broderick Phillips 0c853d206f
Use subscription configuration variables for openai live tests (#21287)
* Use subscription configuration variables for openai live tests

* Add bicep file

* add bicep comment
2023-10-03 18:14:09 -04:00
Richard Park a50bf6de8d
[azopenai] Adding in a contributors guide, some documentation to explain how bits fit together. (#21609)
Fixes https://github.com/Azure/azure-sdk-for-go/issues/21560
2023-09-28 13:15:15 -07:00
Richard Park 295240941c
[azopenai] Fixing unused variable in example. (#21634)
Fixes #21629
2023-09-28 10:43:16 -07:00
Richard Park 8f9adecf86
[azopenai] Be more resilient to messages coming back with just content filtering… (#21625)
Add in better code to handle fields being optional.
2023-09-27 17:31:22 -07:00
Azure SDK Bot 0d8df349ea
Increment package version after release of ai/azopenai (#21623) 2023-09-26 13:52:29 -07:00
Richard Park aeca1e7035
[azopenai] prep release (#21612) 2023-09-26 11:49:01 -07:00
Richard Park 0a1ed1862e
[azopenai] Add in whisper (audio transcription and translation) support (#21599)
- Support whisper/audio APIs + example
-  Fix issue with prompt_annotations being renamed to prompt_filter_results (but could be either).
2023-09-21 18:06:33 -07:00
Azure SDK Bot e4b5aef6fb
Increment package version after release of ai/azopenai (#21456) 2023-08-28 15:01:05 -07:00
Richard Park ae18cb40ae
[azopenai] Adding in support for using Azure Chat Extensions with external data sources (#21426)
Adding in support for chat extensions which allow you (in Azure OpenAI) to use your own data from a Cognitive Search index.

Also, updated the example files to use the `context.TODO()` consistently, and to use our new "comment + panic" in testable examples.

Fixes #21373
2023-08-28 18:42:22 +00:00
Richard Park 59af847ddb
[azopenai] Add test for different formats in chat completions streaming (#21374)
Also, updating CODEOWNERS to add @jhendrixMSFT to the ai folder.
2023-08-15 18:54:54 +00:00
Richard Park e70b7e9040
[azopenai] If the scanner reaches the end of stream and we haven't gotten the '[done]' token then return an error instead of silently failing. (#21323)
Also:
- Fixing casing of error message - shouldn't have a leading uppercase letter.
- Fixing misspelled comment
2023-08-08 10:09:17 -07:00
Richard Park 40601219a5
[azopenai] Make sure we defer close the eventreader in our examples. (#21312) 2023-08-02 12:36:44 -07:00
Joel Hendrix 4766d8bc0d
Don't swallow error on Close() (#21304)
Return the result of reader.Close() to the caller.
2023-08-01 17:32:57 -07:00
Richard Park 91847b5ad2
[azopenai] Enabling live testing (#21276)
Adds in a ci.yml with live testing enabled and re-recordings since we moved to `ai` instead of `cognitiveservices`.
2023-07-28 17:58:03 +00:00
Richard Park 0b385728d1
[azopenai] Rename the DeploymentID field to Deployment to match other Azure OpenAI packages (#21284) 2023-07-28 10:33:29 -07:00
Azure SDK Bot 53a0a41561
Increment package version after release of ai/azopenai (#21272) 2023-07-27 00:25:35 +00:00
Richard Park 613d6a2a56
[azopenai] Update changelog to reflect new spot. (#21271) 2023-07-26 21:24:49 +00:00
Richard Park 140a57a605
[azopenai] Move azopenai from `cognitiveservices/azopenai` to `ai/azopenai` (#21264)
Part of the fix for #21260.

- Moved the code (to preserve history) into `ai/azopenai`
- Marked `cognitiveservices/azopenai`, prepping to release one last release to deprecate it.

We still need to submit an issue to de-list `cognitiveservices/azopenai` but I believe this takes care of our end.
2023-07-26 18:08:02 +00:00