Comments (10)
Hi @ayrtondenner, that definitely is a use case that we'd like to support.
I will look into it, but if someone wants to try implementing this, feel free to comment here. Two things I think we will need:
- Support for Azure OpenAI in code/notebook
- Support for Azure OpenAI in Playground
Just curious - is your primary use case within in the playground or within a notebook?
from prompttools.
Hi @NivekT , thanks for the answer.
In our case, we are looking to use prompttools via code, since our wish is to integrate it with an automatic pipeline to test our prompts before putting into production. So the idea here is to test a new prompt and check if it will break any known chat case.
from prompttools.
@ayrtondenner We have updated our OpenAICompletionExperiment
API to support Azure. Here is a code example.
Let us know how it is working for you. Happy to make further changes if you experience any issue. Feel free to open a PR to make changes as well.
I will follow up and update the ChatExperiment as well. If there is interest to support Azure within the playground, please comment and let us know.
from prompttools.
@ayrtondenner I can confirm that we have added support for Azure in both chat and text completion. Let me know if it is working for you. We would also love to chat about your use cases.
from prompttools.
Is that already added in the pip library? I just tried it in a new Colab notebook but it didn't work:
TypeError: OpenAICompletionExperiment.__init__() got an unexpected keyword argument 'azure_openai_service_configs'
from prompttools.
Hi @ayrtondenner, we have not pushed a new package but we will do that today. In the meantime, it is available if you install from source by cloning the GitHub repo.
from prompttools.
@ayrtondenner We have pushed a new package. Let us know if it works for you!
from prompttools.
I got the following new error:
from prompttools import utils
AttributeError Traceback (most recent call last)
[<ipython-input-4-aab89cdcb7ec>](https://localhost:8080/#) in <cell line: 4>()
2 from prompttools.experiment import OpenAIChatExperiment
3
----> 4 from prompttools import utils
9 frames
[/usr/local/lib/python3.10/dist-packages/numpy/__init__.py](https://localhost:8080/#) in __getattr__(attr)
309 return val
310
--> 311 if attr in __future_scalars__:
312 # And future warnings for those that will change, but also give
313 # the AttributeError
AttributeError: module 'numpy' has no attribute '_no_nep50_warning'
from prompttools.
Thanks for flagging that!
At a quick glance, I can't tell if it an issue with our library. Do you have more information? Are you running on Colab such that you can provide a reproducible script?
It may be a numpy
issue similar to this, can you update your numpy
package? You may need a version > 1.21 .
As a workaround, you may be able to import the specific utils
function that you need, rather than the whole submodule.
from prompttools.
Hi @ayrtondenner, since this feature has been added. I will close this for now. Don't hesitate to comment or reach out if anything is not working for you!
from prompttools.
Related Issues (20)
- GoogleVertexChatExperiment.ipynb notebook does not work HOT 1
- It can't load with llama_load_model_from_file: failed to load model HOT 1
- Playground can't load openai experiment HOT 1
- ModuleNotFoundError: Package `llama-cpp-python` is required to be installed to use this experiment HOT 10
- Issue with HuggingFaceHubExperiment: Unable to Use Models Other Than gpt2 HOT 6
- Support for OpenAI Assistants API HOT 1
- Support for OpenAI Moderation API HOT 1
- Add an experiment for OpenAI Image Generation API
- Add support for Microsoft Semantic-Kernel HOT 3
- chat model and not supported in the v1/completions endpoint HOT 5
- AzureOpenAIServiceExperiment notebook: TypeError: Missing required arguments; Expected either ('model' and 'prompt') or ('model', 'prompt' and 'stream') arguments to be given HOT 3
- OpenAI Chat Experiment Example dependency issue fix HOT 1
- AttributeError: module 'openai' has no attribute 'types'
- Deprecation error : st.experimental_get_query_params and st.experimental_set_query_params will be removed after 2024-04-11
- Missing requirements - streamlit
- Deprecation warnings
- SQL Validator
- Support for Google Vertex AI HOT 1
- Error when running promptools HOT 1
- Example in README doesn't work HOT 1
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 prompttools.