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

87 Коммитов

Автор SHA1 Сообщение Дата
Richard Park f36591725a
[azopenai] Fixing incorrect type for MongoDB auth (#23620)
Minor diff, MongoDB authentication only supports a specific auth methods, not the same range as all the other OYD providers.
2024-10-22 15:17:31 -07:00
Wes Haggard ac22295fff
Switch to TME test subscription (#23570) 2024-10-14 16:54:41 -07:00
Azure SDK Bot a584fdb871
Increment package version after release of ai/azopenaiextensions (#23583) 2024-10-14 20:05:33 +00:00
Azure SDK Bot 694d7815e1
Increment package version after release of ai/azopenai (#23584) 2024-10-14 20:05:20 +00:00
Richard Park d112082fa6
[azopenaiextensions] Pushing release date to Monday (#23565) 2024-10-11 11:57:52 -07:00
Richard Park 9522165361
[azopenai] 2024-08-01-preview generation (#23554) 2024-10-11 11:26:46 -07:00
Richard Park 8759ee622d
[azopenaiextensions] Prepping for release tomorrow (#23551)
* Prepping for release tomorrow
* Updating with required changelog section.
* Updating to the 2024-08-01-preview API version.
* Bump release date to probable Thursday release.
* Skip some tests if we're not doing code generation.
* Updating dependencies.
2024-10-09 19:17:41 -07:00
Richard Park 109f5f85bf
[azopenaiextensions] Of course, the streaming version can throttle as well. (#23544)
* Of course, the streaming version can throttle as well.
* The listing API depends on the "after this assistant" ID existing. I was just paging over the list of assistants randomly, and that is hazardous - now I always start with a known assistant ID (my own).
2024-10-04 15:16:20 -07:00
Richard Park 910af976fc
[azopenaiextensions] Fixing CI (#23522)
* Adding in the same throttling checks that we have in OpenAI, since it's the same underlying reosurces that are oversubscribed
* Updating so our code compiles under the latest alpha from OpenAI
* Stop examples from running
2024-10-02 16:13:56 -07:00
Richard Park 2bc70e05af
[azopenai] Expand the error checking to also check when the underlying OYD resource is throttling us. (#23510) 2024-09-26 13:55:22 -07:00
Richard Park 07eaf8f0da
[azopenai] Fixing issue where content filtering being non-deterministic is making tests fail. (#23490)
* Fixing issue where content filtering being non-deterministic is making our tests flaky.
* Allowing throttling in another oversubscribed test.
2024-09-25 20:15:32 +00:00
Richard Park 01c6a8fc3a
[azopenaiextensions] Initial package creation (#23462) 2024-09-24 14:35:24 -07:00
Gerardo Lecaros 35590ee0de
[azopenaiassistants] Updates for 2024-07-01 (#23360) 2024-09-10 14:17:44 -07:00
Gerardo Lecaros cdf0177fb9
[azopenai] Updates for 2024-07-01 (#23362)
* Regenerated to accomodate the latest API version (2024-07-01-preview), which adds in new batching and file APIs.

* Updated help text for the function parameters.

* Tests were literally doing nothing and weren't needed - we create clients all over the place using all the constructors.

* Remove empty section.

* Upload files works, and the other routes related to it _should_ work. Still need to test some more.

* Fixing a bug where I didn't need to pass in a pointer anymore.

* Very basic test for batches. The timing of the API makes it hard for us to test normally.

* Updated to handle an anonymous type

* Using latest commit from PR.

* updates for merged spec.

* fixed generation

* removing orphaned model

* updated recordings

* skipping test

* reducing coverage until we can reenable file tests.

* added comment about workaround

* removing orphaned type

* updated changelog

---------

Co-authored-by: Richard Park <ripark@microsoft.com>
2024-09-10 18:47:12 +00:00
Ben Broderick Phillips 3e1a752e76
Incorporate common sub config changes to live testing (#23240)
* Incorporate common sub config changes to live testing

* Remove federated auth field from sdk yaml files

* Default federated auth mode to true in pipeline templates

* Remove secret based sub configs from yaml template

* Fix fed auth defaults for ci testing

* Fix missing service connection in overridden cloud configs

* Add missing file paths parameters
2024-08-30 16:41:24 -04:00
Azure SDK Bot 0af9ed9515
Increment package version after release of ai/azopenai (#23330) 2024-08-14 14:14:05 -07:00
Richard Park 76bd6fe866
[azopenai] prepare for release of bugfix (#23324)
We got a community contribution to plumb the insecure flag through the library and it didn't get released last time.

Fixes #23313
2024-08-14 10:17:31 -07:00
Charles Lowell c444f344a9
Use sdk/internal credential factory in azopenai tests (#23263) 2024-07-31 16:25:36 +00:00
Richard Park d9cf9393de
[azopenai] Plumb `InsecureAllowCredentialWithHTTP` through every client constructor (#23233)
Extending client to also allow insecure auth on all the client constructors using InsecureAllowCredentialWithHTTP.
2024-07-23 00:32:50 +00:00
Charles Lowell fe87e2d52c Upgrade dependencies [azp skip] 2024-07-17 15:56:28 +00:00
Azure SDK Bot 6746c6984a
Increment package version after release of ai/azopenaiassistants (#22862) 2024-07-16 22:07:23 +00:00
Utkarsh Mehta 5df73f947f
[azopenai]: Update custom_client.go to enable insecure credential with HTTP (#23188)
Update custom_client.go to enable insecure credential with HTTP
2024-07-16 11:26:37 -07:00
Richard Park 689ec06230
[azopenai] Updating to use the rawjson-as-bytes config option. No code changes. (#23167)
Updating to use the rawjson-as-bytes config option. It doesn't change anything in our client, as it is today, because we've properly typed all 'any' fields.

Also, made Charles a CODEOWNER for this folder.

Fixes #21009
2024-07-08 13:10:50 -07:00
Charles Lowell 997700eb1f Upgrade dependencies [azp skip] 2024-07-03 14:11:16 -04:00
Charles Lowell 67790b2213
Upgrade braces dependency (#23143) 2024-07-02 10:39:32 -07:00
Richard Park 1798e120b4
[azopenaiassistants] Updated changelog, added in examples for more complex scenarios. (#23106)
* Updated changelog, added in examples for more complex scenarios.
* Noticed I was using context.Background() sometimes in examples, but it should always be context.TODO()
2024-06-25 11:45:09 -07:00
Richard Park e5090735b3
[azopenaiassistants] Adding in streaming support for Assistants V2. (#23093)
Adding in streaming support for all the Assistants endpoints.

Fixes #22293
2024-06-24 10:10:02 -07:00
Charles Lowell f4a7dc6c0d Upgrade dependencies [azp skip] 2024-06-17 14:01:12 -04:00
Richard Park 72dd8fa877
[azopenaiassistants] Regenerating to work with the new assistants v2 (beta) endpoint (#23043)
This is the base v2 support without streaming.

Streaming and some customer facing examples will come in the next PR.
2024-06-14 13:56:42 -07:00
Azure SDK Bot 26b21e7272
Increment package version after release of ai/azopenai (#23044) 2024-06-11 23:01:26 +00:00
Gerardo Lecaros e19bd1ba63
[azopenai] Updating changelog for new release. (#23042)
Also, fixing samples to use the new 'log and return' style so we don't keep hitting lint errors.
2024-06-11 14:45:52 -07:00
Gerardo Lecaros 5eb479f45a
[azopenai] Updating hash to merged PR. (#22998) 2024-06-05 15:08:29 -07:00
Richard Park 5c786c2f3a
[azopenai] Updating API version `2024-05-01` (#22967)
Also got to fix some of my recordings so our test percentages aren't abysmal
2024-06-04 11:50:56 -07:00
Richard Park 1f66504730
[azopenaiassistants] Fixing readme to point to azopenaiassistants
Links were stale and pointed to azopenai, not azopenaiassistants.
2024-05-21 20:57:41 +00:00
Charles Lowell c99558aa66 Upgrade test proxy, broken tests run only in live and recording modes
[azp skip]
2024-05-08 17:24:07 -07:00
Richard Park d8524a7ba8
[azopenai] Bump version for breaking change that Joel pointed out (#22847)
* Bump version for breaking change that Joel pointed out!
* go get -u all
* Change date to TBD - we're still discussing when the final spec changes are going to be in.
2024-05-06 12:26:42 -07:00
Richard Park 113f7caa0b
[azopenaiassistants] Fixing bug where the ThreadRun.RequiredAction was deserialized incorrectly (#22834)
Fixing bug where the ThreadRun.RequiredAction was deserialized incorrectly, making it impossible to actually resubmit a tool output.

Fixes #22767
2024-05-04 03:56:46 +00:00
Gerardo Lecaros da3b7a19d8
Update Azure OpenAI to 2024-04-01-preview. (#22798)
Update Azure OpenAI to 2024-04-01-preview.
* Fixing some more common throttled areas.
2024-05-03 18:42:09 -07:00
Charles Lowell c23d0097f9
Upgrade all dependencies (#22835) 2024-05-03 11:52:51 -07:00
Richard Park 86bd201626
[azopenaiassistants] Adding in an example that shows how to use the code interpreter (#22819)
* Adding in a specific example that uses the code interpreter and renaming the old file now that we have more than one full file example.
* go get -u and updating the example file so it'll render as an entire file, not just a function or segment of code.
2024-05-02 15:17:56 -07:00
Richard Park 002caa1b07
[azopenai] Make sure all the examples are runnable. (#22770)
Originally: Make sure all the examples are runnable.

Then, lots of miscellany as quite a few test/CI related things came in at once:
* Account for oversubscribed resources for audio and visual (again)
* Fix to no longer require godotenv (just load through VSCode's test feature).
* go get -u and go mod tidy
* Skipping tests that are breaking because of sanitization of the ID field.
2024-05-02 07:53:20 -07:00
Richard Park a0f9b026ec
[azopenai] A rather large, but needed, cleanup of the tests. (#22707)
It was getting difficult to tell what was and wasn't covered and also correlate tests to models, which can sometimes come with differing behavior.

So in this PR I:
- Moved things that don't need to be env vars (ie: non-secrets) to just be constants in the code - this includes model names and generic server identifiers for regions that we use to coordinate new feature development.
- Consolidated all of the setting of endpoint and models into one spot to make it simpler to double-check.
- Consolidated tests that tested the same thing into sub-tests with OpenAI or AzureOpenAI names.
  - If a function was only called by one test moved it into the test as an anonymous func

Also, I added in a test for logit_probs and logprobs/toplogprobs.
2024-04-17 15:19:32 -07:00
Charles Lowell 98dfe3495d
Upgrade modules to sdk/internal v1.6.0 (#22752) 2024-04-16 17:05:34 -07:00
Richard Park 18e40d0915
[azopenai] Switch EventReader from using bufio.Scanner to bufio.Reader (#22703)
bufio.Scanner has an implicit max size for it's internal buffer but SSE has no restriction on how large chunks can be.

We need to allow for arbitrarily large chunks and, luckily, bufio.Reader can already handle that.
2024-04-05 13:53:56 -07:00
Azure SDK Bot c602eb36a3
Increment package version after release of ai/azopenai (#22684) 2024-04-03 14:50:14 -07:00
Richard Park e978d516f9
[azopenai] Updating doc comments based on feedback from an issue, as well as previous PR feedback. (#22642)
Updating doc comments based on feedback from an issue, as well as previous PR feedback. Also, the rev we regen'd from brings in the `ChatCompletions.Model` field that had previously been omitted.

Fixes #22642
Fixes #22664
2024-04-02 15:21:56 -07:00
Rick Winter 85bd16b78b
Update README.md (#22633)
Fix broken link
2024-03-25 16:41:49 +00:00
Richard Park 094bc1bfa4
[azopenai] Adding in support for the latest preview: 2024-03-01 (#22603)
- Adds in the Dimensions parameter for Embeddings, allowing greater control over the size of the returned embeddings slice.
- Allow controlling the format the embeddings come back as, avoiding potential deserialization errors due to JSON deserialization.

Fixes #22483
2024-03-21 10:38:24 -07:00
Scott Beddall (from Dev Box) 88d8a7ebb5 * update ci.yml for azcosmos to _pass_ the injected stage rather than calling it directly
* touch every ci.yml to swap them from stages to extends. ***NO_CI***
2024-03-15 11:17:06 -07:00
Charles Lowell e3b93574fc
Add copyright header to bicep files (#22576) 2024-03-12 08:36:51 -07:00