Comments (3)
Verified the assistant working with following model versions:
- 0613
- 1106 (it has duplicate calls issue #36 )
Doesn't work with
- 0301
from azure-functions-openai-extension.
The issue is reproducible directly with console app of Azure OpenAI samples, linked issue - Azure/azure-sdk-for-net#43964
from azure-functions-openai-extension.
This is an unfortunate artifact of model version naming and GA defaulting scheme; per the AOAI models documentation, -0301 is the oldest model version still available and will be retired no later than August 1st.
That version of the model is older than either tool or function calling features, which is why these odd invocation messages show up in the text.
To get things working, please update to a newer version: -0125 is the latest, and either -0613 or -1106 also support tool-calling functionality well (parallel tool calling first became available with 1106)
To demonstrate the delta in an SDK-independent way, here are a couple of contrasting service requests using curl:
curl
-l ${AOAI_ENDPOINT}/openai/deployments/gpt-35-turbo-0301/chat/completions?api-version=2024-04-01-preview
-H "Content-Type: application/json"
-H "api-key: $AOAI_API_KEY"
-d '{
"messages": [
{ "role": "system", "content": "call provided function tools when needed" },
{ "role": "user", "content": "what is my favorite color?" }
],
"tools": [{
"type": "function",
"function": { "name": "get_favorite_color", "description": "gets the favorite color of the user" }
}]
}'
{"choices":[…,"finish_reason":"stop",…,"message":{"content":"I'm sorry, but as an AI language model, I don't have access to personal information such as your favorite color. Maybe you can tell me what it is?","role":"assistant"}}],…}
Versus:
curl
-l ${AOAI_ENDPOINT}/openai/deployments/gpt-35-turbo-0613/chat/completions?api-version=2024-04-01-preview
-H "Content-Type: application/json"
-H "api-key: $AOAI_API_KEY"
-d '{
"messages": [
{ "role": "system", "content": "call provided function tools when needed" },
{ "role": "user", "content": "what is my favorite color?" }
],
"tools": [{
"type": "function",
"function": { "name": "get_favorite_color", "description": "gets the favorite color of the user" }
}]
}'
{"choices":[…,"finish_reason":"tool_calls",…,"message":{"content":null,"role":"assistant","tool_calls":[{"function":{"arguments":"{}","name":"get_favorite_color"},"id":"call_6mQPoeZbmpUnJfEwofFznfBb","type":"function"}]}}],…}
from azure-functions-openai-extension.
Related Issues (17)
- Rename "chat bots" to "assistants" HOT 2
- TotalTokens Count after initialization should count instructions tokens. HOT 2
- ASP.NET WhoIs example should use IActionResult HOT 1
- Add support and samples for URL based input types for Embeddings Binding
- Making small changes to a client project using extension leads to errors HOT 2
- Cannot use semantic search bindings in .NET 8 HOT 4
- dotnet isolated sample creation with http trigger template doesn't return any response and runs until time out. HOT 2
- [BUG] Assistant Functions - GET assistants call has too many function calls in 1106 model version of GPT HOT 2
- Readme for assistants should include creation of testdb database, my-todos container, and id for partition key HOT 1
- Remove ability to use Azure OpenAI API keys HOT 1
- [Bug] Semantic Search with Kusto returns unexpected match
- Action required: migrate or opt-out of migration to GitHub inside Microsoft HOT 2
- Feature: Parallel function-calling for AI Assistants
- [Bug] Example AssistantSample Skill (AddToDo) repetitively executes HOT 3
- [Bug] Cannot start function with Python HOT 2
- Dockerfile for Python functions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-functions-openai-extension.